2025-04-18 15:55:33,919 - sqlalchemy.engine.Engine - INFO - [cached since 9.195s ago] ('db9f2de2-6091-4392-9af1-a0c7598ff83a', 1, '{"success": true, "message": "打印成功", "output": {"message": ["1fd9701b-86cd-4eb4-99e3-90d2537f81d3"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '1fd9701b-86cd-4eb4-99e3-90d2537f81d3', datetime.datetime(2025, 4, 18, 15, 55, 33, 918254), datetime.datetime(2025, 4, 18, 15, 55, 33, 918254), 0)
2025-04-18 15:55:33,929 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:33,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:33,942 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:33,943 - sqlalchemy.engine.Engine - INFO - [cached since 9.273s ago] ('c1878bb9-b08f-4b1d-8de9-f0267a4c79dd',)
2025-04-18 15:55:33,945 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 15:55:33,946 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 15:55:33,946 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:33,947 - sqlalchemy.engine.Engine - INFO - [cached since 9.209s ago] (datetime.datetime(2025, 4, 18, 15, 55, 33, 946365), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 15, 55, 33, 946365), 'c1878bb9-b08f-4b1d-8de9-f0267a4c79dd')
2025-04-18 15:55:33,950 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:33,964 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:33,965 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 15:55:33,966 - sqlalchemy.engine.Engine - INFO - [cached since 9.241s ago] ('5f4002d8-a50f-47f0-8be3-8ec41361a29e', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["1fd9701b-86cd-4eb4-99e3-90d2537f81d3"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '1fd9701b-86cd-4eb4-99e3-90d2537f81d3', datetime.datetime(2025, 4, 18, 15, 55, 33, 965348), datetime.datetime(2025, 4, 18, 15, 55, 33, 965348), 0)
2025-04-18 15:55:33,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:33,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:33,983 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:33,984 - sqlalchemy.engine.Engine - INFO - [cached since 9.315s ago] ('f6e2a5d2-7a34-42d8-9be1-3ce71f7895c5',)
2025-04-18 15:55:33,986 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 15:55:33,987 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 15:55:33,988 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:33,990 - sqlalchemy.engine.Engine - INFO - [cached since 9.251s ago] (datetime.datetime(2025, 4, 18, 15, 55, 33, 988071), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 15, 55, 33, 988071), 'f6e2a5d2-7a34-42d8-9be1-3ce71f7895c5')
2025-04-18 15:55:33,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:34,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:34,002 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:34,004 - sqlalchemy.engine.Engine - INFO - [cached since 9.234s ago] (datetime.datetime(2025, 4, 18, 15, 55, 34, 65), '任务执行成功', 1000, 178, datetime.datetime(2025, 4, 18, 15, 55, 34, 2065), '1fd9701b-86cd-4eb4-99e3-90d2537f81d3')
2025-04-18 15:55:34,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:34,013 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: 1fd9701b-86cd-4eb4-99e3-90d2537f81d3, 结果: True
2025-04-18 15:55:36,841 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:36,842 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 15:55:36,844 - sqlalchemy.engine.Engine - INFO - [cached since 12.26s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 15:55:36,847 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 15:55:36,847 - sqlalchemy.engine.Engine - INFO - [cached since 12.26s ago] ('0343e719-7e0a-4365-be16-7181d80cf951', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 15, 55, 36, 847858), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 15, 55, 36, 847858), datetime.datetime(2025, 4, 18, 15, 55, 36, 847858), 0)
2025-04-18 15:55:36,850 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:36,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:36,970 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:36,971 - sqlalchemy.engine.Engine - INFO - [cached since 12.35s ago] ('0343e719-7e0a-4365-be16-7181d80cf951',)
2025-04-18 15:55:36,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:36,976 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 15:55:36,977 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: 0343e719-7e0a-4365-be16-7181d80cf951, 优先级: 1
2025-04-18 15:55:36,978 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:36,982 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:36,983 - sqlalchemy.engine.Engine - INFO - [cached since 12.36s ago] ('0343e719-7e0a-4365-be16-7181d80cf951',)
2025-04-18 15:55:36,985 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 15:55:36,986 - sqlalchemy.engine.Engine - INFO - [cached since 12.4s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 15:55:36,990 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:36,991 - sqlalchemy.engine.Engine - INFO - [cached since 12.36s ago] (datetime.datetime(2025, 4, 18, 15, 55, 36, 990598), datetime.datetime(2025, 4, 18, 15, 55, 36, 990598), '0343e719-7e0a-4365-be16-7181d80cf951')
2025-04-18 15:55:37,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,034 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,035 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:37,036 - sqlalchemy.engine.Engine - INFO - [cached since 12.39s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 15, 55, 37, 35377), '0343e719-7e0a-4365-be16-7181d80cf951')
2025-04-18 15:55:37,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,048 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 15:55:37,048 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,051 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 15:55:37,051 - sqlalchemy.engine.Engine - INFO - [cached since 12.4s ago] ('c483757a-f175-4805-ae13-43dbf040240e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0343e719-7e0a-4365-be16-7181d80cf951', datetime.datetime(2025, 4, 18, 15, 55, 37, 48982), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 15, 55, 37, 51436), datetime.datetime(2025, 4, 18, 15, 55, 37, 51436), 0)
2025-04-18 15:55:37,052 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,074 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,075 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:37,075 - sqlalchemy.engine.Engine - INFO - [cached since 12.4s ago] ('c483757a-f175-4805-ae13-43dbf040240e',)
2025-04-18 15:55:37,079 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 15:55:37,080 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 15:55:37,080 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:37,081 - sqlalchemy.engine.Engine - INFO - [cached since 12.41s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 15, 55, 37, 80177), 'c483757a-f175-4805-ae13-43dbf040240e')
2025-04-18 15:55:37,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,100 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 15:55:37,100 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 15:55:37,100 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 15:55:37,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,103 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 15:55:37,103 - sqlalchemy.engine.Engine - INFO - [cached since 12.45s ago] ('b178fa7a-2a4c-48c2-9be3-a8ce5bd274ba', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0343e719-7e0a-4365-be16-7181d80cf951', datetime.datetime(2025, 4, 18, 15, 55, 37, 101954), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 15, 55, 37, 103020), datetime.datetime(2025, 4, 18, 15, 55, 37, 103020), 0)
2025-04-18 15:55:37,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,117 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b178fa7a-2a4c-48c2-9be3-a8ce5bd274ba
2025-04-18 15:55:37,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,118 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:37,118 - sqlalchemy.engine.Engine - INFO - [cached since 12.45s ago] ('b178fa7a-2a4c-48c2-9be3-a8ce5bd274ba',)
2025-04-18 15:55:37,119 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 15:55:37,121 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 15:55:37,124 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:37,124 - sqlalchemy.engine.Engine - INFO - [cached since 12.45s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 15, 55, 37, 124868), 'b178fa7a-2a4c-48c2-9be3-a8ce5bd274ba')
2025-04-18 15:55:37,127 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,141 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 15:55:37,148 - sqlalchemy.engine.Engine - INFO - [cached since 12.43s ago] ('0343e719-7e0a-4365-be16-7181d80cf951',)
2025-04-18 15:55:37,148 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 0343e719-7e0a-4365-be16-7181d80cf951
2025-04-18 15:55:37,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,149 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 15:55:37,149 - services.execution.handlers.foundation - INFO - 任务 0343e719-7e0a-4365-be16-7181d80cf951 打印: ['0343e719-7e0a-4365-be16-7181d80cf951']
2025-04-18 15:55:37,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,151 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 15:55:37,151 - sqlalchemy.engine.Engine - INFO - [cached since 12.43s ago] ('ae10ddbb-4e70-4bbc-9fe3-560482423665', 1, '{"success": true, "message": "打印成功", "output": {"message": ["0343e719-7e0a-4365-be16-7181d80cf951"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0343e719-7e0a-4365-be16-7181d80cf951', datetime.datetime(2025, 4, 18, 15, 55, 37, 151875), datetime.datetime(2025, 4, 18, 15, 55, 37, 151875), 0)
2025-04-18 15:55:37,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,162 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:37,162 - sqlalchemy.engine.Engine - INFO - [cached since 12.49s ago] ('b178fa7a-2a4c-48c2-9be3-a8ce5bd274ba',)
2025-04-18 15:55:37,163 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 15:55:37,164 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 15:55:37,165 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:37,165 - sqlalchemy.engine.Engine - INFO - [cached since 12.43s ago] (datetime.datetime(2025, 4, 18, 15, 55, 37, 164870), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 15, 55, 37, 165872), 'b178fa7a-2a4c-48c2-9be3-a8ce5bd274ba')
2025-04-18 15:55:37,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,180 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 15:55:37,180 - sqlalchemy.engine.Engine - INFO - [cached since 12.46s ago] ('c43267ee-d61c-408e-95c1-530486857faa', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["0343e719-7e0a-4365-be16-7181d80cf951"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0343e719-7e0a-4365-be16-7181d80cf951', datetime.datetime(2025, 4, 18, 15, 55, 37, 180888), datetime.datetime(2025, 4, 18, 15, 55, 37, 180888), 0)
2025-04-18 15:55:37,181 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,209 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:37,212 - sqlalchemy.engine.Engine - INFO - [cached since 12.54s ago] ('c483757a-f175-4805-ae13-43dbf040240e',)
2025-04-18 15:55:37,213 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 15:55:37,213 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 15:55:37,214 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:37,215 - sqlalchemy.engine.Engine - INFO - [cached since 12.48s ago] (datetime.datetime(2025, 4, 18, 15, 55, 37, 214452), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 15, 55, 37, 214452), 'c483757a-f175-4805-ae13-43dbf040240e')
2025-04-18 15:55:37,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:37,240 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:37,242 - sqlalchemy.engine.Engine - INFO - [cached since 12.47s ago] (datetime.datetime(2025, 4, 18, 15, 55, 37, 239383), '任务执行成功', 1000, 206, datetime.datetime(2025, 4, 18, 15, 55, 37, 240415), '0343e719-7e0a-4365-be16-7181d80cf951')
2025-04-18 15:55:37,246 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:37,252 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: 0343e719-7e0a-4365-be16-7181d80cf951, 结果: True
2025-04-18 15:55:39,972 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:39,976 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 15:55:39,977 - sqlalchemy.engine.Engine - INFO - [cached since 15.4s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 15:55:39,979 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 15:55:39,980 - sqlalchemy.engine.Engine - INFO - [cached since 15.39s ago] ('d455ca18-5d5c-43ea-aac7-0f744bbf966a', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 15, 55, 39, 978657), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 15, 55, 39, 979729), datetime.datetime(2025, 4, 18, 15, 55, 39, 979729), 0)
2025-04-18 15:55:39,982 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:39,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,000 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:40,000 - sqlalchemy.engine.Engine - INFO - [cached since 15.38s ago] ('d455ca18-5d5c-43ea-aac7-0f744bbf966a',)
2025-04-18 15:55:40,001 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,008 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 15:55:40,008 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: d455ca18-5d5c-43ea-aac7-0f744bbf966a, 优先级: 1
2025-04-18 15:55:40,008 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,010 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:40,010 - sqlalchemy.engine.Engine - INFO - [cached since 15.38s ago] ('d455ca18-5d5c-43ea-aac7-0f744bbf966a',)
2025-04-18 15:55:40,011 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 15:55:40,011 - sqlalchemy.engine.Engine - INFO - [cached since 15.43s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 15:55:40,012 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:40,012 - sqlalchemy.engine.Engine - INFO - [cached since 15.38s ago] (datetime.datetime(2025, 4, 18, 15, 55, 40, 12537), datetime.datetime(2025, 4, 18, 15, 55, 40, 12537), 'd455ca18-5d5c-43ea-aac7-0f744bbf966a')
2025-04-18 15:55:40,014 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,031 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:40,031 - sqlalchemy.engine.Engine - INFO - [cached since 15.39s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 15, 55, 40, 31649), 'd455ca18-5d5c-43ea-aac7-0f744bbf966a')
2025-04-18 15:55:40,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,043 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 15:55:40,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,044 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 15:55:40,044 - sqlalchemy.engine.Engine - INFO - [cached since 15.39s ago] ('5637c831-b2ef-4677-9fa3-cf1a99c9b3ff', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd455ca18-5d5c-43ea-aac7-0f744bbf966a', datetime.datetime(2025, 4, 18, 15, 55, 40, 43326), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 15, 55, 40, 44385), datetime.datetime(2025, 4, 18, 15, 55, 40, 44385), 0)
2025-04-18 15:55:40,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,061 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:40,061 - sqlalchemy.engine.Engine - INFO - [cached since 15.39s ago] ('5637c831-b2ef-4677-9fa3-cf1a99c9b3ff',)
2025-04-18 15:55:40,063 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 15:55:40,063 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 15:55:40,064 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:40,064 - sqlalchemy.engine.Engine - INFO - [cached since 15.39s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 15, 55, 40, 64633), '5637c831-b2ef-4677-9fa3-cf1a99c9b3ff')
2025-04-18 15:55:40,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,082 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 15:55:40,082 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 15:55:40,083 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 15:55:40,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,084 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 15:55:40,085 - sqlalchemy.engine.Engine - INFO - [cached since 15.43s ago] ('44fc073b-5e7c-47fc-be31-60a9f1a0014b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd455ca18-5d5c-43ea-aac7-0f744bbf966a', datetime.datetime(2025, 4, 18, 15, 55, 40, 83234), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 15, 55, 40, 84147), datetime.datetime(2025, 4, 18, 15, 55, 40, 84147), 0)
2025-04-18 15:55:40,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,101 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 44fc073b-5e7c-47fc-be31-60a9f1a0014b
2025-04-18 15:55:40,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,105 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:40,105 - sqlalchemy.engine.Engine - INFO - [cached since 15.43s ago] ('44fc073b-5e7c-47fc-be31-60a9f1a0014b',)
2025-04-18 15:55:40,106 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 15:55:40,107 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 15:55:40,107 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:40,108 - sqlalchemy.engine.Engine - INFO - [cached since 15.43s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 15, 55, 40, 107094), '44fc073b-5e7c-47fc-be31-60a9f1a0014b')
2025-04-18 15:55:40,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,125 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,126 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 15:55:40,127 - sqlalchemy.engine.Engine - INFO - [cached since 15.41s ago] ('d455ca18-5d5c-43ea-aac7-0f744bbf966a',)
2025-04-18 15:55:40,129 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: d455ca18-5d5c-43ea-aac7-0f744bbf966a
2025-04-18 15:55:40,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,131 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 15:55:40,131 - services.execution.handlers.foundation - INFO - 任务 d455ca18-5d5c-43ea-aac7-0f744bbf966a 打印: ['d455ca18-5d5c-43ea-aac7-0f744bbf966a']
2025-04-18 15:55:40,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,135 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 15:55:40,138 - sqlalchemy.engine.Engine - INFO - [cached since 15.41s ago] ('eb84706f-c8e0-4d27-b7b5-94001e889a4d', 1, '{"success": true, "message": "打印成功", "output": {"message": ["d455ca18-5d5c-43ea-aac7-0f744bbf966a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd455ca18-5d5c-43ea-aac7-0f744bbf966a', datetime.datetime(2025, 4, 18, 15, 55, 40, 135131), datetime.datetime(2025, 4, 18, 15, 55, 40, 135131), 0)
2025-04-18 15:55:40,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,148 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:40,148 - sqlalchemy.engine.Engine - INFO - [cached since 15.48s ago] ('44fc073b-5e7c-47fc-be31-60a9f1a0014b',)
2025-04-18 15:55:40,150 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 15:55:40,150 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 15:55:40,151 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:40,156 - sqlalchemy.engine.Engine - INFO - [cached since 15.42s ago] (datetime.datetime(2025, 4, 18, 15, 55, 40, 151809), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 15, 55, 40, 151809), '44fc073b-5e7c-47fc-be31-60a9f1a0014b')
2025-04-18 15:55:40,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,173 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 15:55:40,177 - sqlalchemy.engine.Engine - INFO - [cached since 15.45s ago] ('71a52696-be4d-44bf-9bc0-a17a7dc4ecf4', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["d455ca18-5d5c-43ea-aac7-0f744bbf966a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd455ca18-5d5c-43ea-aac7-0f744bbf966a', datetime.datetime(2025, 4, 18, 15, 55, 40, 173773), datetime.datetime(2025, 4, 18, 15, 55, 40, 173773), 0)
2025-04-18 15:55:40,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,191 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 15:55:40,193 - sqlalchemy.engine.Engine - INFO - [cached since 15.52s ago] ('5637c831-b2ef-4677-9fa3-cf1a99c9b3ff',)
2025-04-18 15:55:40,193 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 15:55:40,194 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 15:55:40,194 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 15:55:40,194 - sqlalchemy.engine.Engine - INFO - [cached since 15.46s ago] (datetime.datetime(2025, 4, 18, 15, 55, 40, 194702), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 15, 55, 40, 194702), '5637c831-b2ef-4677-9fa3-cf1a99c9b3ff')
2025-04-18 15:55:40,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 15:55:40,210 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 15:55:40,210 - sqlalchemy.engine.Engine - INFO - [cached since 15.44s ago] (datetime.datetime(2025, 4, 18, 15, 55, 40, 205424), '任务执行成功', 1000, 174, datetime.datetime(2025, 4, 18, 15, 55, 40, 210126), 'd455ca18-5d5c-43ea-aac7-0f744bbf966a')
2025-04-18 15:55:40,211 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 15:55:40,224 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: d455ca18-5d5c-43ea-aac7-0f744bbf966a, 结果: True
2025-04-18 15:55:42,839 - root - INFO - 应用程序关闭中...
2025-04-18 15:55:42,839 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 15:55:42,839 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 15:55:42,839 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 15:55:42,839 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 15:55:42,839 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 15:55:42,840 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 15:55:42,840 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 15:55:42,840 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 15:55:42,840 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 15:55:42,840 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 15:55:42,840 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 15:55:42,840 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 15:55:42,840 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 15:55:42,840 - root - INFO - 任务调度器已停止
2025-04-18 15:55:42,840 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 15:55:42,843 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 15:55:42,843 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 15:55:42,843 - data.session - INFO - 数据库连接已关闭
2025-04-18 16:01:30,529 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 16:01:30,529 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 16:01:31,522 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 16:01:31,522 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 16:01:31,606 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 16:01:31,667 - data.session - INFO - 正在初始化数据库...
2025-04-18 16:01:31,919 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 16:01:31,925 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 16:01:31,925 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,925 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 16:01:31,925 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,925 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 16:01:31,925 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:31,929 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 16:01:31,929 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,933 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 16:01:31,933 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,937 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 16:01:31,937 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,942 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 16:01:31,942 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,944 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 16:01:31,945 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,946 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 16:01:31,946 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,951 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 16:01:31,951 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,951 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 16:01:31,953 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,955 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 16:01:31,955 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,955 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 16:01:31,957 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,957 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 16:01:31,959 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:01:31,959 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:31,959 - data.session - INFO - 数据库表初始化完成
2025-04-18 16:01:32,421 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 16:01:32,421 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 16:01:32,421 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 16:01:32,422 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 16:01:32,422 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 16:01:32,422 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 16:01:32,424 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 16:01:32,424 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 16:01:32,424 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 16:01:32,424 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 16:01:32,424 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 16:01:32,429 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 16:01:32,429 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 16:01:32,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:32,449 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 16:01:32,449 - sqlalchemy.engine.Engine - INFO - [generated in 0.00189s] (1, 1)
2025-04-18 16:01:32,451 - services.execution.task_scheduler - INFO - 已加载 1 个定时任务
2025-04-18 16:01:32,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:32,454 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 16:01:32,454 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 16:01:33,421 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,422 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:01:33,422 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:01:33,426 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 16:01:33,426 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('496acb8d-c4f0-4539-9402-4f3848e07dcf', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 16, 1, 33, 424441), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 16, 1, 33, 424947), datetime.datetime(2025, 4, 18, 16, 1, 33, 424947), 0)
2025-04-18 16:01:33,428 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,665 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,668 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:33,669 - sqlalchemy.engine.Engine - INFO - [generated in 0.00089s] ('496acb8d-c4f0-4539-9402-4f3848e07dcf',)
2025-04-18 16:01:33,671 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,672 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 16:01:33,673 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: 496acb8d-c4f0-4539-9402-4f3848e07dcf, 优先级: 1
2025-04-18 16:01:33,673 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,674 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:33,674 - sqlalchemy.engine.Engine - INFO - [cached since 0.00573s ago] ('496acb8d-c4f0-4539-9402-4f3848e07dcf',)
2025-04-18 16:01:33,674 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:01:33,674 - sqlalchemy.engine.Engine - INFO - [cached since 0.2531s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:01:33,676 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:33,676 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (datetime.datetime(2025, 4, 18, 16, 1, 33, 676788), datetime.datetime(2025, 4, 18, 16, 1, 33, 676788), '496acb8d-c4f0-4539-9402-4f3848e07dcf')
2025-04-18 16:01:33,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,693 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:33,693 - sqlalchemy.engine.Engine - INFO - [generated in 0.00080s] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 16, 1, 33, 693008), '496acb8d-c4f0-4539-9402-4f3848e07dcf')
2025-04-18 16:01:33,693 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,701 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 16:01:33,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,705 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:01:33,705 - sqlalchemy.engine.Engine - INFO - [generated in 0.00135s] ('c2eeb36c-ec8d-4bab-9547-f200b95c8e1b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '496acb8d-c4f0-4539-9402-4f3848e07dcf', datetime.datetime(2025, 4, 18, 16, 1, 33, 701153), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 1, 33, 701153), datetime.datetime(2025, 4, 18, 16, 1, 33, 701153), 0)
2025-04-18 16:01:33,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,717 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,719 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:33,721 - sqlalchemy.engine.Engine - INFO - [generated in 0.00335s] ('c2eeb36c-ec8d-4bab-9547-f200b95c8e1b',)
2025-04-18 16:01:33,721 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:01:33,725 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:01:33,725 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:33,726 - sqlalchemy.engine.Engine - INFO - [generated in 0.00130s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 1, 33, 725617), 'c2eeb36c-ec8d-4bab-9547-f200b95c8e1b')
2025-04-18 16:01:33,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,734 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 16:01:33,738 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 16:01:33,738 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 16:01:33,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,742 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:01:33,746 - sqlalchemy.engine.Engine - INFO - [cached since 0.04208s ago] ('964a0694-9e93-4b76-9a55-9a30812f4452', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '496acb8d-c4f0-4539-9402-4f3848e07dcf', datetime.datetime(2025, 4, 18, 16, 1, 33, 738338), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 1, 33, 742466), datetime.datetime(2025, 4, 18, 16, 1, 33, 742466), 0)
2025-04-18 16:01:33,746 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,758 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 964a0694-9e93-4b76-9a55-9a30812f4452
2025-04-18 16:01:33,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,763 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:33,763 - sqlalchemy.engine.Engine - INFO - [cached since 0.04433s ago] ('964a0694-9e93-4b76-9a55-9a30812f4452',)
2025-04-18 16:01:33,765 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:01:33,765 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:01:33,767 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:33,769 - sqlalchemy.engine.Engine - INFO - [cached since 0.0438s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 1, 33, 767342), '964a0694-9e93-4b76-9a55-9a30812f4452')
2025-04-18 16:01:33,769 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,784 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 16:01:33,784 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] ('496acb8d-c4f0-4539-9402-4f3848e07dcf',)
2025-04-18 16:01:33,784 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 496acb8d-c4f0-4539-9402-4f3848e07dcf
2025-04-18 16:01:33,784 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,784 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 16:01:33,788 - services.execution.handlers.foundation - INFO - 任务 496acb8d-c4f0-4539-9402-4f3848e07dcf 打印: ['496acb8d-c4f0-4539-9402-4f3848e07dcf']
2025-04-18 16:01:33,788 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,792 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:01:33,792 - sqlalchemy.engine.Engine - INFO - [generated in 0.00136s] ('058336a3-99ea-46a6-bbba-462f1b3a9d74', 1, '{"success": true, "message": "打印成功", "output": {"message": ["496acb8d-c4f0-4539-9402-4f3848e07dcf"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '496acb8d-c4f0-4539-9402-4f3848e07dcf', datetime.datetime(2025, 4, 18, 16, 1, 33, 792542), datetime.datetime(2025, 4, 18, 16, 1, 33, 792542), 0)
2025-04-18 16:01:33,807 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,818 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:33,818 - sqlalchemy.engine.Engine - INFO - [cached since 0.09926s ago] ('964a0694-9e93-4b76-9a55-9a30812f4452',)
2025-04-18 16:01:33,818 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:01:33,818 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:01:33,822 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:33,822 - sqlalchemy.engine.Engine - INFO - [generated in 0.00115s] (datetime.datetime(2025, 4, 18, 16, 1, 33, 822376), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 1, 33, 822376), '964a0694-9e93-4b76-9a55-9a30812f4452')
2025-04-18 16:01:33,826 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,837 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,837 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:01:33,839 - sqlalchemy.engine.Engine - INFO - [cached since 0.04708s ago] ('b2aacadb-8b66-4fd1-be57-164cbc1013b9', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["496acb8d-c4f0-4539-9402-4f3848e07dcf"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '496acb8d-c4f0-4539-9402-4f3848e07dcf', datetime.datetime(2025, 4, 18, 16, 1, 33, 837002), datetime.datetime(2025, 4, 18, 16, 1, 33, 837002), 0)
2025-04-18 16:01:33,839 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,848 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,849 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:33,850 - sqlalchemy.engine.Engine - INFO - [cached since 0.1306s ago] ('c2eeb36c-ec8d-4bab-9547-f200b95c8e1b',)
2025-04-18 16:01:33,852 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:01:33,852 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:01:33,853 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:33,853 - sqlalchemy.engine.Engine - INFO - [cached since 0.02976s ago] (datetime.datetime(2025, 4, 18, 16, 1, 33, 853092), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 1, 33, 853092), 'c2eeb36c-ec8d-4bab-9547-f200b95c8e1b')
2025-04-18 16:01:33,853 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,860 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:33,864 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:33,864 - sqlalchemy.engine.Engine - INFO - [generated in 0.00112s] (datetime.datetime(2025, 4, 18, 16, 1, 33, 860887), '任务执行成功', 1000, 170, datetime.datetime(2025, 4, 18, 16, 1, 33, 864096), '496acb8d-c4f0-4539-9402-4f3848e07dcf')
2025-04-18 16:01:33,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:33,872 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: 496acb8d-c4f0-4539-9402-4f3848e07dcf, 结果: True
2025-04-18 16:01:36,690 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,694 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:01:36,694 - sqlalchemy.engine.Engine - INFO - [cached since 3.272s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:01:36,696 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 16:01:36,696 - sqlalchemy.engine.Engine - INFO - [cached since 3.271s ago] ('3c377140-18cf-40ce-9145-fb62a796e620', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 16, 1, 36, 696984), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 16, 1, 36, 696984), datetime.datetime(2025, 4, 18, 16, 1, 36, 696984), 0)
2025-04-18 16:01:36,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,735 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,735 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:36,735 - sqlalchemy.engine.Engine - INFO - [cached since 3.071s ago] ('3c377140-18cf-40ce-9145-fb62a796e620',)
2025-04-18 16:01:36,740 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,740 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 16:01:36,740 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: 3c377140-18cf-40ce-9145-fb62a796e620, 优先级: 1
2025-04-18 16:01:36,744 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,744 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:36,748 - sqlalchemy.engine.Engine - INFO - [cached since 3.08s ago] ('3c377140-18cf-40ce-9145-fb62a796e620',)
2025-04-18 16:01:36,748 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:01:36,748 - sqlalchemy.engine.Engine - INFO - [cached since 3.328s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:01:36,748 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:36,748 - sqlalchemy.engine.Engine - INFO - [cached since 3.074s ago] (datetime.datetime(2025, 4, 18, 16, 1, 36, 748609), datetime.datetime(2025, 4, 18, 16, 1, 36, 748609), '3c377140-18cf-40ce-9145-fb62a796e620')
2025-04-18 16:01:36,753 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,761 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:36,766 - sqlalchemy.engine.Engine - INFO - [cached since 3.073s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 16, 1, 36, 761894), '3c377140-18cf-40ce-9145-fb62a796e620')
2025-04-18 16:01:36,770 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,791 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 16:01:36,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,794 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:01:36,796 - sqlalchemy.engine.Engine - INFO - [cached since 3.091s ago] ('01a11115-f73f-4433-b3a7-b3604b25f46e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3c377140-18cf-40ce-9145-fb62a796e620', datetime.datetime(2025, 4, 18, 16, 1, 36, 791964), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 1, 36, 794776), datetime.datetime(2025, 4, 18, 16, 1, 36, 794776), 0)
2025-04-18 16:01:36,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,822 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,822 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:36,822 - sqlalchemy.engine.Engine - INFO - [cached since 3.104s ago] ('01a11115-f73f-4433-b3a7-b3604b25f46e',)
2025-04-18 16:01:36,822 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:01:36,826 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:01:36,826 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:36,826 - sqlalchemy.engine.Engine - INFO - [cached since 3.101s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 1, 36, 826566), '01a11115-f73f-4433-b3a7-b3604b25f46e')
2025-04-18 16:01:36,826 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,839 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 16:01:36,839 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 16:01:36,839 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 16:01:36,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,839 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:01:36,843 - sqlalchemy.engine.Engine - INFO - [cached since 3.139s ago] ('35a5862f-6aaf-4843-bcce-57746434cd99', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3c377140-18cf-40ce-9145-fb62a796e620', datetime.datetime(2025, 4, 18, 16, 1, 36, 839607), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 1, 36, 839607), datetime.datetime(2025, 4, 18, 16, 1, 36, 839607), 0)
2025-04-18 16:01:36,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,856 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 35a5862f-6aaf-4843-bcce-57746434cd99
2025-04-18 16:01:36,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,856 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:36,856 - sqlalchemy.engine.Engine - INFO - [cached since 3.139s ago] ('35a5862f-6aaf-4843-bcce-57746434cd99',)
2025-04-18 16:01:36,859 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:01:36,859 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:01:36,860 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:36,860 - sqlalchemy.engine.Engine - INFO - [cached since 3.137s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 1, 36, 860579), '35a5862f-6aaf-4843-bcce-57746434cd99')
2025-04-18 16:01:36,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,877 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 16:01:36,877 - sqlalchemy.engine.Engine - INFO - [cached since 3.093s ago] ('3c377140-18cf-40ce-9145-fb62a796e620',)
2025-04-18 16:01:36,877 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 3c377140-18cf-40ce-9145-fb62a796e620
2025-04-18 16:01:36,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,877 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 16:01:36,877 - services.execution.handlers.foundation - INFO - 任务 3c377140-18cf-40ce-9145-fb62a796e620 打印: ['3c377140-18cf-40ce-9145-fb62a796e620']
2025-04-18 16:01:36,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,884 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:01:36,884 - sqlalchemy.engine.Engine - INFO - [cached since 3.093s ago] ('e20abdb7-5c4e-4dc2-858a-e8d7b1f4f5de', 1, '{"success": true, "message": "打印成功", "output": {"message": ["3c377140-18cf-40ce-9145-fb62a796e620"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3c377140-18cf-40ce-9145-fb62a796e620', datetime.datetime(2025, 4, 18, 16, 1, 36, 884160), datetime.datetime(2025, 4, 18, 16, 1, 36, 884160), 0)
2025-04-18 16:01:36,885 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,891 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,893 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:36,893 - sqlalchemy.engine.Engine - INFO - [cached since 3.175s ago] ('35a5862f-6aaf-4843-bcce-57746434cd99',)
2025-04-18 16:01:36,895 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:01:36,895 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:01:36,895 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:36,895 - sqlalchemy.engine.Engine - INFO - [cached since 3.073s ago] (datetime.datetime(2025, 4, 18, 16, 1, 36, 895681), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 1, 36, 895681), '35a5862f-6aaf-4843-bcce-57746434cd99')
2025-04-18 16:01:36,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,906 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:01:36,906 - sqlalchemy.engine.Engine - INFO - [cached since 3.116s ago] ('a0165439-1693-4afb-879e-2f77f6f542f0', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["3c377140-18cf-40ce-9145-fb62a796e620"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3c377140-18cf-40ce-9145-fb62a796e620', datetime.datetime(2025, 4, 18, 16, 1, 36, 906801), datetime.datetime(2025, 4, 18, 16, 1, 36, 906801), 0)
2025-04-18 16:01:36,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,916 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,916 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:36,919 - sqlalchemy.engine.Engine - INFO - [cached since 3.2s ago] ('01a11115-f73f-4433-b3a7-b3604b25f46e',)
2025-04-18 16:01:36,920 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:01:36,920 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:01:36,920 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:36,920 - sqlalchemy.engine.Engine - INFO - [cached since 3.098s ago] (datetime.datetime(2025, 4, 18, 16, 1, 36, 920629), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 1, 36, 920629), '01a11115-f73f-4433-b3a7-b3604b25f46e')
2025-04-18 16:01:36,922 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,931 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:36,931 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:36,931 - sqlalchemy.engine.Engine - INFO - [cached since 3.069s ago] (datetime.datetime(2025, 4, 18, 16, 1, 36, 927217), '任务执行成功', 1000, 165, datetime.datetime(2025, 4, 18, 16, 1, 36, 931337), '3c377140-18cf-40ce-9145-fb62a796e620')
2025-04-18 16:01:36,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:36,939 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: 3c377140-18cf-40ce-9145-fb62a796e620, 结果: True
2025-04-18 16:01:38,075 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 16:01:38,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:38,075 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:01:38,075 - sqlalchemy.engine.Engine - INFO - [cached since 4.656s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:01:38,082 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-18 16:01:38,084 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0084秒
2025-04-18 16:01:39,766 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,766 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:01:39,766 - sqlalchemy.engine.Engine - INFO - [cached since 6.346s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:01:39,770 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 16:01:39,770 - sqlalchemy.engine.Engine - INFO - [cached since 6.346s ago] ('a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 16, 1, 39, 770794), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 16, 1, 39, 770794), datetime.datetime(2025, 4, 18, 16, 1, 39, 770794), 0)
2025-04-18 16:01:39,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,787 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,789 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:39,789 - sqlalchemy.engine.Engine - INFO - [cached since 6.121s ago] ('a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe',)
2025-04-18 16:01:39,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,793 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 16:01:39,793 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe, 优先级: 1
2025-04-18 16:01:39,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,793 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:39,793 - sqlalchemy.engine.Engine - INFO - [cached since 6.127s ago] ('a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe',)
2025-04-18 16:01:39,795 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:01:39,795 - sqlalchemy.engine.Engine - INFO - [cached since 6.376s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:01:39,800 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:39,800 - sqlalchemy.engine.Engine - INFO - [cached since 6.124s ago] (datetime.datetime(2025, 4, 18, 16, 1, 39, 800351), datetime.datetime(2025, 4, 18, 16, 1, 39, 800351), 'a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe')
2025-04-18 16:01:39,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,808 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:39,808 - sqlalchemy.engine.Engine - INFO - [cached since 6.119s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 16, 1, 39, 808854), 'a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe')
2025-04-18 16:01:39,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,820 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 16:01:39,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,820 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:01:39,825 - sqlalchemy.engine.Engine - INFO - [cached since 6.12s ago] ('e3dc7623-d7c9-4284-b968-1a565018d3a6', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe', datetime.datetime(2025, 4, 18, 16, 1, 39, 820610), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 1, 39, 820610), datetime.datetime(2025, 4, 18, 16, 1, 39, 820610), 0)
2025-04-18 16:01:39,825 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,833 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:39,833 - sqlalchemy.engine.Engine - INFO - [cached since 6.116s ago] ('e3dc7623-d7c9-4284-b968-1a565018d3a6',)
2025-04-18 16:01:39,833 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:01:39,833 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:01:39,837 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:39,838 - sqlalchemy.engine.Engine - INFO - [cached since 6.112s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 1, 39, 837502), 'e3dc7623-d7c9-4284-b968-1a565018d3a6')
2025-04-18 16:01:39,838 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,848 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 16:01:39,848 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 16:01:39,848 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 16:01:39,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,850 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:01:39,850 - sqlalchemy.engine.Engine - INFO - [cached since 6.146s ago] ('4655dae5-9463-4787-bf35-00226a243ad0', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe', datetime.datetime(2025, 4, 18, 16, 1, 39, 848163), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 1, 39, 850235), datetime.datetime(2025, 4, 18, 16, 1, 39, 850235), 0)
2025-04-18 16:01:39,850 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,854 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4655dae5-9463-4787-bf35-00226a243ad0
2025-04-18 16:01:39,861 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,861 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:39,863 - sqlalchemy.engine.Engine - INFO - [cached since 6.144s ago] ('4655dae5-9463-4787-bf35-00226a243ad0',)
2025-04-18 16:01:39,863 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:01:39,865 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:01:39,865 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:39,866 - sqlalchemy.engine.Engine - INFO - [cached since 6.14s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 1, 39, 865289), '4655dae5-9463-4787-bf35-00226a243ad0')
2025-04-18 16:01:39,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,876 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,876 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 16:01:39,876 - sqlalchemy.engine.Engine - INFO - [cached since 6.094s ago] ('a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe',)
2025-04-18 16:01:39,880 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe
2025-04-18 16:01:39,880 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,880 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 16:01:39,880 - services.execution.handlers.foundation - INFO - 任务 a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe 打印: ['a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe']
2025-04-18 16:01:39,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,888 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:01:39,888 - sqlalchemy.engine.Engine - INFO - [cached since 6.097s ago] ('a6a961ce-20f5-430a-a9bc-7af44dfc4e75', 1, '{"success": true, "message": "打印成功", "output": {"message": ["a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe', datetime.datetime(2025, 4, 18, 16, 1, 39, 888661), datetime.datetime(2025, 4, 18, 16, 1, 39, 888661), 0)
2025-04-18 16:01:39,888 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,892 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,892 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:39,901 - sqlalchemy.engine.Engine - INFO - [cached since 6.181s ago] ('4655dae5-9463-4787-bf35-00226a243ad0',)
2025-04-18 16:01:39,901 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:01:39,904 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:01:39,904 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:39,905 - sqlalchemy.engine.Engine - INFO - [cached since 6.082s ago] (datetime.datetime(2025, 4, 18, 16, 1, 39, 904571), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 1, 39, 904571), '4655dae5-9463-4787-bf35-00226a243ad0')
2025-04-18 16:01:39,905 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,918 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:01:39,922 - sqlalchemy.engine.Engine - INFO - [cached since 6.13s ago] ('c6536086-6bb7-49ac-a8f1-73526a5c6735', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe', datetime.datetime(2025, 4, 18, 16, 1, 39, 918488), datetime.datetime(2025, 4, 18, 16, 1, 39, 918488), 0)
2025-04-18 16:01:39,922 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,943 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:39,951 - sqlalchemy.engine.Engine - INFO - [cached since 6.233s ago] ('e3dc7623-d7c9-4284-b968-1a565018d3a6',)
2025-04-18 16:01:39,960 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:01:39,960 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:01:39,960 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:39,960 - sqlalchemy.engine.Engine - INFO - [cached since 6.138s ago] (datetime.datetime(2025, 4, 18, 16, 1, 39, 960443), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 1, 39, 960443), 'e3dc7623-d7c9-4284-b968-1a565018d3a6')
2025-04-18 16:01:39,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,973 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:39,973 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:39,973 - sqlalchemy.engine.Engine - INFO - [cached since 6.11s ago] (datetime.datetime(2025, 4, 18, 16, 1, 39, 969234), '任务执行成功', 1000, 160, datetime.datetime(2025, 4, 18, 16, 1, 39, 973669), 'a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe')
2025-04-18 16:01:39,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:39,985 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: a3e109ee-6ff2-4e58-a001-cd0cdcfe61fe, 结果: True
2025-04-18 16:01:42,809 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,809 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:01:42,812 - sqlalchemy.engine.Engine - INFO - [cached since 9.389s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:01:42,813 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 16:01:42,813 - sqlalchemy.engine.Engine - INFO - [cached since 9.389s ago] ('7e0641f0-1220-434d-948e-78780caf092c', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 16, 1, 42, 813600), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 16, 1, 42, 813600), datetime.datetime(2025, 4, 18, 16, 1, 42, 813600), 0)
2025-04-18 16:01:42,816 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:42,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,834 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:42,834 - sqlalchemy.engine.Engine - INFO - [cached since 9.166s ago] ('7e0641f0-1220-434d-948e-78780caf092c',)
2025-04-18 16:01:42,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:42,834 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 16:01:42,838 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: 7e0641f0-1220-434d-948e-78780caf092c, 优先级: 1
2025-04-18 16:01:42,838 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,838 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:42,838 - sqlalchemy.engine.Engine - INFO - [cached since 9.172s ago] ('7e0641f0-1220-434d-948e-78780caf092c',)
2025-04-18 16:01:42,842 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:01:42,842 - sqlalchemy.engine.Engine - INFO - [cached since 9.421s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:01:42,844 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:42,849 - sqlalchemy.engine.Engine - INFO - [cached since 9.172s ago] (datetime.datetime(2025, 4, 18, 16, 1, 42, 844536), datetime.datetime(2025, 4, 18, 16, 1, 42, 844536), '7e0641f0-1220-434d-948e-78780caf092c')
2025-04-18 16:01:42,851 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:42,867 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,867 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:42,872 - sqlalchemy.engine.Engine - INFO - [cached since 9.179s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 16, 1, 42, 867960), '7e0641f0-1220-434d-948e-78780caf092c')
2025-04-18 16:01:42,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:42,888 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 16:01:42,888 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,888 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:01:42,892 - sqlalchemy.engine.Engine - INFO - [cached since 9.188s ago] ('def9f0ef-5210-4336-9a34-e1dec457d655', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7e0641f0-1220-434d-948e-78780caf092c', datetime.datetime(2025, 4, 18, 16, 1, 42, 888510), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 1, 42, 888510), datetime.datetime(2025, 4, 18, 16, 1, 42, 888510), 0)
2025-04-18 16:01:42,893 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:42,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,909 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:42,909 - sqlalchemy.engine.Engine - INFO - [cached since 9.191s ago] ('def9f0ef-5210-4336-9a34-e1dec457d655',)
2025-04-18 16:01:42,909 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:01:42,914 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:01:42,914 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:42,914 - sqlalchemy.engine.Engine - INFO - [cached since 9.191s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 1, 42, 914942), 'def9f0ef-5210-4336-9a34-e1dec457d655')
2025-04-18 16:01:42,917 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:42,942 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 16:01:42,943 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 16:01:42,943 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 16:01:42,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,944 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:01:42,946 - sqlalchemy.engine.Engine - INFO - [cached since 9.244s ago] ('3bf3db1d-517e-40b3-b413-c83142aa18a2', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7e0641f0-1220-434d-948e-78780caf092c', datetime.datetime(2025, 4, 18, 16, 1, 42, 943549), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 1, 42, 944547), datetime.datetime(2025, 4, 18, 16, 1, 42, 944547), 0)
2025-04-18 16:01:42,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:42,955 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 3bf3db1d-517e-40b3-b413-c83142aa18a2
2025-04-18 16:01:42,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,963 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:42,963 - sqlalchemy.engine.Engine - INFO - [cached since 9.247s ago] ('3bf3db1d-517e-40b3-b413-c83142aa18a2',)
2025-04-18 16:01:42,963 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:01:42,976 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:01:42,976 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:42,976 - sqlalchemy.engine.Engine - INFO - [cached since 9.252s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 1, 42, 976847), '3bf3db1d-517e-40b3-b413-c83142aa18a2')
2025-04-18 16:01:42,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:42,987 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,989 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 16:01:42,989 - sqlalchemy.engine.Engine - INFO - [cached since 9.206s ago] ('7e0641f0-1220-434d-948e-78780caf092c',)
2025-04-18 16:01:42,989 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 7e0641f0-1220-434d-948e-78780caf092c
2025-04-18 16:01:42,989 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:42,992 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 16:01:42,992 - services.execution.handlers.foundation - INFO - 任务 7e0641f0-1220-434d-948e-78780caf092c 打印: ['7e0641f0-1220-434d-948e-78780caf092c']
2025-04-18 16:01:42,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:42,994 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:01:43,001 - sqlalchemy.engine.Engine - INFO - [cached since 9.209s ago] ('481cfbee-4b0c-4801-a656-17be4d12bde4', 1, '{"success": true, "message": "打印成功", "output": {"message": ["7e0641f0-1220-434d-948e-78780caf092c"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7e0641f0-1220-434d-948e-78780caf092c', datetime.datetime(2025, 4, 18, 16, 1, 42, 994375), datetime.datetime(2025, 4, 18, 16, 1, 42, 994375), 0)
2025-04-18 16:01:43,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:43,011 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:43,011 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:43,015 - sqlalchemy.engine.Engine - INFO - [cached since 9.296s ago] ('3bf3db1d-517e-40b3-b413-c83142aa18a2',)
2025-04-18 16:01:43,015 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:01:43,015 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:01:43,015 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:43,015 - sqlalchemy.engine.Engine - INFO - [cached since 9.195s ago] (datetime.datetime(2025, 4, 18, 16, 1, 43, 15738), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 1, 43, 15738), '3bf3db1d-517e-40b3-b413-c83142aa18a2')
2025-04-18 16:01:43,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:43,024 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:43,024 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:01:43,024 - sqlalchemy.engine.Engine - INFO - [cached since 9.236s ago] ('d95b5560-f538-4bc1-a25a-51a572196b92', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["7e0641f0-1220-434d-948e-78780caf092c"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7e0641f0-1220-434d-948e-78780caf092c', datetime.datetime(2025, 4, 18, 16, 1, 43, 24362), datetime.datetime(2025, 4, 18, 16, 1, 43, 24362), 0)
2025-04-18 16:01:43,028 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:43,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:43,037 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:01:43,038 - sqlalchemy.engine.Engine - INFO - [cached since 9.319s ago] ('def9f0ef-5210-4336-9a34-e1dec457d655',)
2025-04-18 16:01:43,039 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:01:43,039 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:01:43,039 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:01:43,039 - sqlalchemy.engine.Engine - INFO - [cached since 9.217s ago] (datetime.datetime(2025, 4, 18, 16, 1, 43, 39215), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 1, 43, 39215), 'def9f0ef-5210-4336-9a34-e1dec457d655')
2025-04-18 16:01:43,041 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:43,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:01:43,053 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:01:43,053 - sqlalchemy.engine.Engine - INFO - [cached since 9.191s ago] (datetime.datetime(2025, 4, 18, 16, 1, 43, 49427), '任务执行成功', 1000, 181, datetime.datetime(2025, 4, 18, 16, 1, 43, 53697), '7e0641f0-1220-434d-948e-78780caf092c')
2025-04-18 16:01:43,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:01:43,062 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: 7e0641f0-1220-434d-948e-78780caf092c, 结果: True
2025-04-18 16:01:44,584 - root - INFO - 应用程序关闭中...
2025-04-18 16:01:44,585 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 16:01:44,586 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 16:01:44,586 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 16:01:44,587 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 16:01:44,592 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 16:01:44,592 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 16:01:44,592 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 16:01:44,592 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 16:01:44,594 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 16:01:44,594 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 16:01:44,594 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 16:01:44,594 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 16:01:44,594 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 16:01:44,594 - root - INFO - 任务调度器已停止
2025-04-18 16:01:44,594 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 16:01:44,596 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 16:01:44,596 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 16:01:44,596 - data.session - INFO - 数据库连接已关闭
2025-04-18 16:02:06,920 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 16:02:06,920 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 16:02:07,980 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 16:02:07,980 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 16:02:08,059 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 16:02:08,136 - data.session - INFO - 正在初始化数据库...
2025-04-18 16:02:08,394 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 16:02:08,407 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 16:02:08,407 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,407 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 16:02:08,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,411 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 16:02:08,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:08,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 16:02:08,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 16:02:08,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,425 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 16:02:08,425 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,429 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 16:02:08,429 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,430 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 16:02:08,433 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,433 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 16:02:08,433 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,437 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 16:02:08,437 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,437 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 16:02:08,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,441 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 16:02:08,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,446 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 16:02:08,446 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,446 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 16:02:08,450 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:02:08,450 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:08,455 - data.session - INFO - 数据库表初始化完成
2025-04-18 16:02:08,915 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 16:02:08,917 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 16:02:08,917 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 16:02:08,917 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 16:02:08,917 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 16:02:08,917 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 16:02:08,921 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 16:02:08,923 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 16:02:08,923 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 16:02:08,925 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 16:02:08,925 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 16:02:08,925 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 16:02:08,925 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 16:02:08,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:08,947 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 16:02:08,963 - sqlalchemy.engine.Engine - INFO - [generated in 0.01681s] (1, 1)
2025-04-18 16:02:08,965 - services.execution.task_scheduler - INFO - 已加载 1 个定时任务
2025-04-18 16:02:08,967 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:08,971 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 16:02:08,971 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 16:02:09,934 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:09,934 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:02:09,938 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:02:09,942 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 16:02:09,942 - sqlalchemy.engine.Engine - INFO - [generated in 0.00096s] ('d589b616-2ccd-4038-97c0-41e698690e95', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 16, 2, 9, 938298), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 16, 2, 9, 942427), datetime.datetime(2025, 4, 18, 16, 2, 9, 942427), 0)
2025-04-18 16:02:09,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:09,981 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:09,981 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:02:09,985 - sqlalchemy.engine.Engine - INFO - [generated in 0.00129s] ('d589b616-2ccd-4038-97c0-41e698690e95',)
2025-04-18 16:02:09,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:09,990 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 16:02:09,990 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: d589b616-2ccd-4038-97c0-41e698690e95, 优先级: 1
2025-04-18 16:02:09,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:09,994 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:02:09,994 - sqlalchemy.engine.Engine - INFO - [cached since 0.009767s ago] ('d589b616-2ccd-4038-97c0-41e698690e95',)
2025-04-18 16:02:09,994 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:02:09,994 - sqlalchemy.engine.Engine - INFO - [cached since 0.05956s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:02:09,998 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:02:09,998 - sqlalchemy.engine.Engine - INFO - [generated in 0.00247s] (datetime.datetime(2025, 4, 18, 16, 2, 9, 994222), datetime.datetime(2025, 4, 18, 16, 2, 9, 998719), 'd589b616-2ccd-4038-97c0-41e698690e95')
2025-04-18 16:02:10,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,009 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,011 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:02:10,017 - sqlalchemy.engine.Engine - INFO - [generated in 0.00628s] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 16, 2, 10, 11668), 'd589b616-2ccd-4038-97c0-41e698690e95')
2025-04-18 16:02:10,018 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,028 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 16:02:10,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,034 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:02:10,034 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('58960662-e7e9-434f-8780-655f4b33d3b8', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd589b616-2ccd-4038-97c0-41e698690e95', datetime.datetime(2025, 4, 18, 16, 2, 10, 28686), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 2, 10, 34898), datetime.datetime(2025, 4, 18, 16, 2, 10, 34898), 0)
2025-04-18 16:02:10,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,049 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:02:10,054 - sqlalchemy.engine.Engine - INFO - [generated in 0.00518s] ('58960662-e7e9-434f-8780-655f4b33d3b8',)
2025-04-18 16:02:10,054 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:02:10,054 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:02:10,054 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:02:10,058 - sqlalchemy.engine.Engine - INFO - [generated in 0.00169s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 2, 10, 54120), '58960662-e7e9-434f-8780-655f4b33d3b8')
2025-04-18 16:02:10,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,066 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 16:02:10,066 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 16:02:10,066 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 16:02:10,066 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,068 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:02:10,068 - sqlalchemy.engine.Engine - INFO - [cached since 0.03487s ago] ('85506abd-4868-4f34-9a9e-3e27cd6668f5', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd589b616-2ccd-4038-97c0-41e698690e95', datetime.datetime(2025, 4, 18, 16, 2, 10, 66680), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 2, 10, 68857), datetime.datetime(2025, 4, 18, 16, 2, 10, 68857), 0)
2025-04-18 16:02:10,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,085 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 85506abd-4868-4f34-9a9e-3e27cd6668f5
2025-04-18 16:02:10,088 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,088 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:02:10,091 - sqlalchemy.engine.Engine - INFO - [cached since 0.04078s ago] ('85506abd-4868-4f34-9a9e-3e27cd6668f5',)
2025-04-18 16:02:10,092 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:02:10,094 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:02:10,094 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:02:10,094 - sqlalchemy.engine.Engine - INFO - [cached since 0.03773s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 2, 10, 94420), '85506abd-4868-4f34-9a9e-3e27cd6668f5')
2025-04-18 16:02:10,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,117 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 16:02:10,117 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] ('d589b616-2ccd-4038-97c0-41e698690e95',)
2025-04-18 16:02:10,121 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: d589b616-2ccd-4038-97c0-41e698690e95
2025-04-18 16:02:10,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,125 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 16:02:10,125 - services.execution.handlers.foundation - INFO - 任务 d589b616-2ccd-4038-97c0-41e698690e95 打印: ['d589b616-2ccd-4038-97c0-41e698690e95']
2025-04-18 16:02:10,125 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,129 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:02:10,129 - sqlalchemy.engine.Engine - INFO - [generated in 0.00129s] ('be4b89e2-e1bd-4467-a20e-dd2c9fc8b2bb', 1, '{"success": true, "message": "打印成功", "output": {"message": ["d589b616-2ccd-4038-97c0-41e698690e95"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd589b616-2ccd-4038-97c0-41e698690e95', datetime.datetime(2025, 4, 18, 16, 2, 10, 129616), datetime.datetime(2025, 4, 18, 16, 2, 10, 129616), 0)
2025-04-18 16:02:10,138 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,157 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:02:10,157 - sqlalchemy.engine.Engine - INFO - [cached since 0.1076s ago] ('85506abd-4868-4f34-9a9e-3e27cd6668f5',)
2025-04-18 16:02:10,159 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:02:10,159 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:02:10,159 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:02:10,159 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (datetime.datetime(2025, 4, 18, 16, 2, 10, 159377), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 2, 10, 159377), '85506abd-4868-4f34-9a9e-3e27cd6668f5')
2025-04-18 16:02:10,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,184 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:02:10,184 - sqlalchemy.engine.Engine - INFO - [cached since 0.05467s ago] ('bbeb3f08-8453-4736-930c-69414401f291', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["d589b616-2ccd-4038-97c0-41e698690e95"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd589b616-2ccd-4038-97c0-41e698690e95', datetime.datetime(2025, 4, 18, 16, 2, 10, 184245), datetime.datetime(2025, 4, 18, 16, 2, 10, 184245), 0)
2025-04-18 16:02:10,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,194 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:02:10,194 - sqlalchemy.engine.Engine - INFO - [cached since 0.1453s ago] ('58960662-e7e9-434f-8780-655f4b33d3b8',)
2025-04-18 16:02:10,196 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:02:10,196 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:02:10,200 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:02:10,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.04339s ago] (datetime.datetime(2025, 4, 18, 16, 2, 10, 196787), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 2, 10, 200464), '58960662-e7e9-434f-8780-655f4b33d3b8')
2025-04-18 16:02:10,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,213 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:02:10,217 - sqlalchemy.engine.Engine - INFO - [generated in 0.00203s] (datetime.datetime(2025, 4, 18, 16, 2, 10, 213166), '任务执行成功', 1000, 203, datetime.datetime(2025, 4, 18, 16, 2, 10, 213166), 'd589b616-2ccd-4038-97c0-41e698690e95')
2025-04-18 16:02:10,217 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:02:10,225 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: d589b616-2ccd-4038-97c0-41e698690e95, 结果: True
2025-04-18 16:02:10,745 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 16:02:10,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:02:10,745 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:02:10,745 - sqlalchemy.engine.Engine - INFO - [cached since 0.8116s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:02:10,749 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-18 16:02:10,754 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0085秒
2025-04-18 16:02:12,149 - root - INFO - 应用程序关闭中...
2025-04-18 16:02:12,149 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 16:02:12,149 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 16:02:12,149 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 16:02:12,149 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 16:02:12,149 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 16:02:12,151 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 16:02:12,151 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 16:02:12,151 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 16:02:12,151 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 16:02:12,151 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 16:02:12,151 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 16:02:12,151 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 16:02:12,151 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 16:02:12,151 - root - INFO - 任务调度器已停止
2025-04-18 16:02:12,151 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 16:02:12,151 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 16:02:12,151 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 16:02:12,151 - data.session - INFO - 数据库连接已关闭
2025-04-18 16:03:36,013 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 16:03:36,017 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 16:03:37,040 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 16:03:37,040 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 16:03:37,118 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 16:03:37,184 - data.session - INFO - 正在初始化数据库...
2025-04-18 16:03:37,243 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 16:03:37,261 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 16:03:37,261 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,261 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 16:03:37,261 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,261 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 16:03:37,261 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:37,264 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 16:03:37,264 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,264 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 16:03:37,264 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,264 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 16:03:37,264 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,268 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 16:03:37,268 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,268 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 16:03:37,268 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,268 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 16:03:37,268 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,273 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 16:03:37,273 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,273 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 16:03:37,273 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,273 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 16:03:37,281 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,282 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 16:03:37,284 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,285 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 16:03:37,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 16:03:37,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:37,289 - data.session - INFO - 数据库表初始化完成
2025-04-18 16:03:37,753 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 16:03:37,754 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 16:03:37,754 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 16:03:37,754 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 16:03:37,754 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 16:03:37,754 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 16:03:37,760 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 16:03:37,760 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 16:03:37,760 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 16:03:37,765 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 16:03:37,765 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 16:03:37,765 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 16:03:37,765 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 16:03:37,765 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:37,779 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 16:03:37,779 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (1, 1)
2025-04-18 16:03:37,781 - services.execution.task_scheduler - INFO - 已加载 1 个定时任务
2025-04-18 16:03:37,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:37,781 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 16:03:37,781 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 16:03:38,766 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,768 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:03:38,772 - sqlalchemy.engine.Engine - INFO - [generated in 0.00316s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:03:38,776 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 16:03:38,780 - sqlalchemy.engine.Engine - INFO - [generated in 0.00252s] ('6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 16, 3, 38, 774640), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 16, 3, 38, 776647), datetime.datetime(2025, 4, 18, 16, 3, 38, 776647), 0)
2025-04-18 16:03:38,780 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,817 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:38,819 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] ('6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88',)
2025-04-18 16:03:38,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,821 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 16:03:38,821 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: 6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88, 优先级: 1
2025-04-18 16:03:38,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,825 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:38,826 - sqlalchemy.engine.Engine - INFO - [cached since 0.009651s ago] ('6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88',)
2025-04-18 16:03:38,826 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:03:38,829 - sqlalchemy.engine.Engine - INFO - [cached since 0.06099s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:03:38,829 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:38,834 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (datetime.datetime(2025, 4, 18, 16, 3, 38, 829827), datetime.datetime(2025, 4, 18, 16, 3, 38, 829827), '6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88')
2025-04-18 16:03:38,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,846 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:38,846 - sqlalchemy.engine.Engine - INFO - [generated in 0.00090s] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 16, 3, 38, 846853), '6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88')
2025-04-18 16:03:38,851 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,859 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 16:03:38,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,866 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:03:38,867 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] ('12d3b457-b79a-4f1e-bb83-fa0ab395d868', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88', datetime.datetime(2025, 4, 18, 16, 3, 38, 859687), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 3, 38, 866165), datetime.datetime(2025, 4, 18, 16, 3, 38, 866165), 0)
2025-04-18 16:03:38,868 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,876 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,880 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:38,882 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('12d3b457-b79a-4f1e-bb83-fa0ab395d868',)
2025-04-18 16:03:38,882 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:03:38,882 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:03:38,884 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:38,884 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 3, 38, 884839), '12d3b457-b79a-4f1e-bb83-fa0ab395d868')
2025-04-18 16:03:38,885 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,893 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 16:03:38,893 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 16:03:38,893 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 16:03:38,897 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,897 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:03:38,897 - sqlalchemy.engine.Engine - INFO - [cached since 0.03236s ago] ('daa64d53-b04f-4d71-9714-0d493bf6c82a', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88', datetime.datetime(2025, 4, 18, 16, 3, 38, 893465), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 3, 38, 897621), datetime.datetime(2025, 4, 18, 16, 3, 38, 897621), 0)
2025-04-18 16:03:38,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,906 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: daa64d53-b04f-4d71-9714-0d493bf6c82a
2025-04-18 16:03:38,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,915 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:38,919 - sqlalchemy.engine.Engine - INFO - [cached since 0.03773s ago] ('daa64d53-b04f-4d71-9714-0d493bf6c82a',)
2025-04-18 16:03:38,920 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:03:38,920 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:03:38,920 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:38,924 - sqlalchemy.engine.Engine - INFO - [cached since 0.04171s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 3, 38, 920986), 'daa64d53-b04f-4d71-9714-0d493bf6c82a')
2025-04-18 16:03:38,927 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,936 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,938 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 16:03:38,938 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88',)
2025-04-18 16:03:38,941 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88
2025-04-18 16:03:38,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,943 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 16:03:38,943 - services.execution.handlers.foundation - INFO - 任务 6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88 打印: ['6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88']
2025-04-18 16:03:38,943 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,947 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:03:38,947 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('4123074c-042d-4359-86ea-21eadbc01eaa', 1, '{"success": true, "message": "打印成功", "output": {"message": ["6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88', datetime.datetime(2025, 4, 18, 16, 3, 38, 947886), datetime.datetime(2025, 4, 18, 16, 3, 38, 947886), 0)
2025-04-18 16:03:38,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,955 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,955 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:38,959 - sqlalchemy.engine.Engine - INFO - [cached since 0.07765s ago] ('daa64d53-b04f-4d71-9714-0d493bf6c82a',)
2025-04-18 16:03:38,964 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:03:38,967 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:03:38,967 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:38,968 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 18, 16, 3, 38, 967477), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 3, 38, 967477), 'daa64d53-b04f-4d71-9714-0d493bf6c82a')
2025-04-18 16:03:38,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,977 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,977 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:03:38,977 - sqlalchemy.engine.Engine - INFO - [cached since 0.03036s ago] ('39bf4fb1-a056-4fa9-81b3-577576867988', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88', datetime.datetime(2025, 4, 18, 16, 3, 38, 977066), datetime.datetime(2025, 4, 18, 16, 3, 38, 977066), 0)
2025-04-18 16:03:38,979 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:38,987 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:38,987 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:38,987 - sqlalchemy.engine.Engine - INFO - [cached since 0.1065s ago] ('12d3b457-b79a-4f1e-bb83-fa0ab395d868',)
2025-04-18 16:03:38,989 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:03:38,989 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:03:38,992 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:38,993 - sqlalchemy.engine.Engine - INFO - [cached since 0.02598s ago] (datetime.datetime(2025, 4, 18, 16, 3, 38, 992188), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 3, 38, 992188), '12d3b457-b79a-4f1e-bb83-fa0ab395d868')
2025-04-18 16:03:38,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:39,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:39,006 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:39,006 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (datetime.datetime(2025, 4, 18, 16, 3, 39, 2590), '任务执行成功', 1000, 159, datetime.datetime(2025, 4, 18, 16, 3, 39, 6635), '6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88')
2025-04-18 16:03:39,011 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:39,016 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: 6a4fa5aa-b11b-4e9d-a63e-039ad54a2b88, 结果: True
2025-04-18 16:03:41,848 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:41,848 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:03:41,850 - sqlalchemy.engine.Engine - INFO - [cached since 3.082s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:03:41,855 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 16:03:41,855 - sqlalchemy.engine.Engine - INFO - [cached since 3.08s ago] ('ddd5f461-f56f-4eda-a0ec-64e79107df71', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 16, 3, 41, 853851), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 16, 3, 41, 855378), datetime.datetime(2025, 4, 18, 16, 3, 41, 855378), 0)
2025-04-18 16:03:41,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:41,880 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:41,880 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:41,880 - sqlalchemy.engine.Engine - INFO - [cached since 3.065s ago] ('ddd5f461-f56f-4eda-a0ec-64e79107df71',)
2025-04-18 16:03:41,885 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:41,885 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 16:03:41,885 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: ddd5f461-f56f-4eda-a0ec-64e79107df71, 优先级: 1
2025-04-18 16:03:41,885 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:41,889 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:41,893 - sqlalchemy.engine.Engine - INFO - [cached since 3.075s ago] ('ddd5f461-f56f-4eda-a0ec-64e79107df71',)
2025-04-18 16:03:41,893 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:03:41,898 - sqlalchemy.engine.Engine - INFO - [cached since 3.129s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:03:41,898 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:41,898 - sqlalchemy.engine.Engine - INFO - [cached since 3.067s ago] (datetime.datetime(2025, 4, 18, 16, 3, 41, 898026), datetime.datetime(2025, 4, 18, 16, 3, 41, 898026), 'ddd5f461-f56f-4eda-a0ec-64e79107df71')
2025-04-18 16:03:41,902 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:41,914 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:41,914 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:41,914 - sqlalchemy.engine.Engine - INFO - [cached since 3.068s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 16, 3, 41, 914574), 'ddd5f461-f56f-4eda-a0ec-64e79107df71')
2025-04-18 16:03:41,914 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:41,925 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 16:03:41,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:41,927 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:03:41,927 - sqlalchemy.engine.Engine - INFO - [cached since 3.062s ago] ('21eb4542-67dd-42b1-ad6b-e079ab1d93df', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ddd5f461-f56f-4eda-a0ec-64e79107df71', datetime.datetime(2025, 4, 18, 16, 3, 41, 925895), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 3, 41, 927401), datetime.datetime(2025, 4, 18, 16, 3, 41, 927401), 0)
2025-04-18 16:03:41,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:41,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:41,945 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:41,945 - sqlalchemy.engine.Engine - INFO - [cached since 3.066s ago] ('21eb4542-67dd-42b1-ad6b-e079ab1d93df',)
2025-04-18 16:03:41,949 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:03:41,949 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:03:41,949 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:41,949 - sqlalchemy.engine.Engine - INFO - [cached since 3.065s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 3, 41, 949180), '21eb4542-67dd-42b1-ad6b-e079ab1d93df')
2025-04-18 16:03:41,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:41,958 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 16:03:41,958 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 16:03:41,962 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 16:03:41,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:41,962 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:03:41,962 - sqlalchemy.engine.Engine - INFO - [cached since 3.098s ago] ('2161e9d3-4657-4d83-89fb-cd24ba4bf83d', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ddd5f461-f56f-4eda-a0ec-64e79107df71', datetime.datetime(2025, 4, 18, 16, 3, 41, 962659), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 3, 41, 962659), datetime.datetime(2025, 4, 18, 16, 3, 41, 962659), 0)
2025-04-18 16:03:41,965 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:41,982 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2161e9d3-4657-4d83-89fb-cd24ba4bf83d
2025-04-18 16:03:41,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:41,982 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:41,982 - sqlalchemy.engine.Engine - INFO - [cached since 3.103s ago] ('2161e9d3-4657-4d83-89fb-cd24ba4bf83d',)
2025-04-18 16:03:41,982 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:03:41,986 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:03:41,990 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:41,990 - sqlalchemy.engine.Engine - INFO - [cached since 3.106s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 3, 41, 990159), '2161e9d3-4657-4d83-89fb-cd24ba4bf83d')
2025-04-18 16:03:41,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:42,000 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:42,002 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 16:03:42,002 - sqlalchemy.engine.Engine - INFO - [cached since 3.065s ago] ('ddd5f461-f56f-4eda-a0ec-64e79107df71',)
2025-04-18 16:03:42,002 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ddd5f461-f56f-4eda-a0ec-64e79107df71
2025-04-18 16:03:42,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:42,006 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 16:03:42,015 - services.execution.handlers.foundation - INFO - 任务 ddd5f461-f56f-4eda-a0ec-64e79107df71 打印: ['ddd5f461-f56f-4eda-a0ec-64e79107df71']
2025-04-18 16:03:42,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:42,015 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:03:42,015 - sqlalchemy.engine.Engine - INFO - [cached since 3.07s ago] ('479e1e02-57c5-4139-8090-32b668b8cca8', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ddd5f461-f56f-4eda-a0ec-64e79107df71"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ddd5f461-f56f-4eda-a0ec-64e79107df71', datetime.datetime(2025, 4, 18, 16, 3, 42, 15585), datetime.datetime(2025, 4, 18, 16, 3, 42, 15585), 0)
2025-04-18 16:03:42,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:42,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:42,032 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:42,032 - sqlalchemy.engine.Engine - INFO - [cached since 3.152s ago] ('2161e9d3-4657-4d83-89fb-cd24ba4bf83d',)
2025-04-18 16:03:42,032 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:03:42,032 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:03:42,032 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:42,041 - sqlalchemy.engine.Engine - INFO - [cached since 3.075s ago] (datetime.datetime(2025, 4, 18, 16, 3, 42, 32962), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 3, 42, 32962), '2161e9d3-4657-4d83-89fb-cd24ba4bf83d')
2025-04-18 16:03:42,041 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:42,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:42,061 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:03:42,063 - sqlalchemy.engine.Engine - INFO - [cached since 3.115s ago] ('2aa5b406-d891-4f0b-a954-80aaeb20b32c', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ddd5f461-f56f-4eda-a0ec-64e79107df71"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ddd5f461-f56f-4eda-a0ec-64e79107df71', datetime.datetime(2025, 4, 18, 16, 3, 42, 61904), datetime.datetime(2025, 4, 18, 16, 3, 42, 61904), 0)
2025-04-18 16:03:42,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:42,074 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:42,078 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:42,083 - sqlalchemy.engine.Engine - INFO - [cached since 3.201s ago] ('21eb4542-67dd-42b1-ad6b-e079ab1d93df',)
2025-04-18 16:03:42,083 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:03:42,083 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:03:42,085 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:42,085 - sqlalchemy.engine.Engine - INFO - [cached since 3.118s ago] (datetime.datetime(2025, 4, 18, 16, 3, 42, 83169), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 3, 42, 85180), '21eb4542-67dd-42b1-ad6b-e079ab1d93df')
2025-04-18 16:03:42,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:42,107 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:42,116 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:42,116 - sqlalchemy.engine.Engine - INFO - [cached since 3.108s ago] (datetime.datetime(2025, 4, 18, 16, 3, 42, 103731), '任务执行成功', 1000, 193, datetime.datetime(2025, 4, 18, 16, 3, 42, 116416), 'ddd5f461-f56f-4eda-a0ec-64e79107df71')
2025-04-18 16:03:42,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:42,125 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: ddd5f461-f56f-4eda-a0ec-64e79107df71, 结果: True
2025-04-18 16:03:44,363 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 16:03:44,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:44,365 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:03:44,367 - sqlalchemy.engine.Engine - INFO - [cached since 5.598s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:03:44,367 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 16:03:44,370 - sqlalchemy.engine.Engine - INFO - [generated in 0.00235s] (0, datetime.datetime(2025, 4, 18, 16, 3, 44, 367108), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 16:03:44,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:44,408 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0456秒
2025-04-18 16:03:44,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:44,883 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:03:44,883 - sqlalchemy.engine.Engine - INFO - [cached since 6.116s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:03:44,885 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 16:03:44,887 - sqlalchemy.engine.Engine - INFO - [cached since 6.109s ago] ('59d28573-7027-4292-89f9-f8a97daa26c2', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 16, 3, 44, 885176), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 16, 3, 44, 885176), datetime.datetime(2025, 4, 18, 16, 3, 44, 885176), 0)
2025-04-18 16:03:44,888 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,032 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:45,032 - sqlalchemy.engine.Engine - INFO - [cached since 6.214s ago] ('59d28573-7027-4292-89f9-f8a97daa26c2',)
2025-04-18 16:03:45,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,033 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 16:03:45,036 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: 59d28573-7027-4292-89f9-f8a97daa26c2, 优先级: 1
2025-04-18 16:03:45,036 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,036 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:45,036 - sqlalchemy.engine.Engine - INFO - [cached since 6.219s ago] ('59d28573-7027-4292-89f9-f8a97daa26c2',)
2025-04-18 16:03:45,039 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 16:03:45,039 - sqlalchemy.engine.Engine - INFO - [cached since 6.27s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 16:03:45,042 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:45,044 - sqlalchemy.engine.Engine - INFO - [cached since 6.211s ago] (datetime.datetime(2025, 4, 18, 16, 3, 45, 40598), datetime.datetime(2025, 4, 18, 16, 3, 45, 42730), '59d28573-7027-4292-89f9-f8a97daa26c2')
2025-04-18 16:03:45,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,057 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:45,057 - sqlalchemy.engine.Engine - INFO - [cached since 6.209s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 16, 3, 45, 57446), '59d28573-7027-4292-89f9-f8a97daa26c2')
2025-04-18 16:03:45,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,068 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 16:03:45,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,073 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:03:45,074 - sqlalchemy.engine.Engine - INFO - [cached since 6.206s ago] ('f2766dee-0d1a-45b4-aee7-15af896dc372', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '59d28573-7027-4292-89f9-f8a97daa26c2', datetime.datetime(2025, 4, 18, 16, 3, 45, 69940), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 3, 45, 73028), datetime.datetime(2025, 4, 18, 16, 3, 45, 73028), 0)
2025-04-18 16:03:45,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,090 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,090 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:45,090 - sqlalchemy.engine.Engine - INFO - [cached since 6.209s ago] ('f2766dee-0d1a-45b4-aee7-15af896dc372',)
2025-04-18 16:03:45,091 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:03:45,091 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:03:45,091 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:45,091 - sqlalchemy.engine.Engine - INFO - [cached since 6.209s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 3, 45, 91276), 'f2766dee-0d1a-45b4-aee7-15af896dc372')
2025-04-18 16:03:45,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,101 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 16:03:45,101 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 16:03:45,101 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 16:03:45,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,104 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 16:03:45,106 - sqlalchemy.engine.Engine - INFO - [cached since 6.239s ago] ('c35229d1-d0cc-4063-b9f1-a54857b35e2b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '59d28573-7027-4292-89f9-f8a97daa26c2', datetime.datetime(2025, 4, 18, 16, 3, 45, 101093), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 16, 3, 45, 104323), datetime.datetime(2025, 4, 18, 16, 3, 45, 104323), 0)
2025-04-18 16:03:45,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,116 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c35229d1-d0cc-4063-b9f1-a54857b35e2b
2025-04-18 16:03:45,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,117 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:45,117 - sqlalchemy.engine.Engine - INFO - [cached since 6.236s ago] ('c35229d1-d0cc-4063-b9f1-a54857b35e2b',)
2025-04-18 16:03:45,120 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:03:45,120 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:03:45,120 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:45,120 - sqlalchemy.engine.Engine - INFO - [cached since 6.239s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 16, 3, 45, 120570), 'c35229d1-d0cc-4063-b9f1-a54857b35e2b')
2025-04-18 16:03:45,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,130 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,130 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 16:03:45,130 - sqlalchemy.engine.Engine - INFO - [cached since 6.193s ago] ('59d28573-7027-4292-89f9-f8a97daa26c2',)
2025-04-18 16:03:45,131 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 59d28573-7027-4292-89f9-f8a97daa26c2
2025-04-18 16:03:45,131 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,132 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 16:03:45,132 - services.execution.handlers.foundation - INFO - 任务 59d28573-7027-4292-89f9-f8a97daa26c2 打印: ['59d28573-7027-4292-89f9-f8a97daa26c2']
2025-04-18 16:03:45,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,134 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:03:45,134 - sqlalchemy.engine.Engine - INFO - [cached since 6.186s ago] ('e3330387-2272-46e6-b577-fc1df65216f3', 1, '{"success": true, "message": "打印成功", "output": {"message": ["59d28573-7027-4292-89f9-f8a97daa26c2"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '59d28573-7027-4292-89f9-f8a97daa26c2', datetime.datetime(2025, 4, 18, 16, 3, 45, 134349), datetime.datetime(2025, 4, 18, 16, 3, 45, 134349), 0)
2025-04-18 16:03:45,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,145 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,145 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:45,145 - sqlalchemy.engine.Engine - INFO - [cached since 6.264s ago] ('c35229d1-d0cc-4063-b9f1-a54857b35e2b',)
2025-04-18 16:03:45,145 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 16:03:45,145 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 16:03:45,145 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:45,145 - sqlalchemy.engine.Engine - INFO - [cached since 6.18s ago] (datetime.datetime(2025, 4, 18, 16, 3, 45, 145234), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 3, 45, 145234), 'c35229d1-d0cc-4063-b9f1-a54857b35e2b')
2025-04-18 16:03:45,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,157 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,158 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 16:03:45,158 - sqlalchemy.engine.Engine - INFO - [cached since 6.211s ago] ('0fbd49ae-8d99-4fe2-96f1-2c2ba84c37e8', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["59d28573-7027-4292-89f9-f8a97daa26c2"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '59d28573-7027-4292-89f9-f8a97daa26c2', datetime.datetime(2025, 4, 18, 16, 3, 45, 158713), datetime.datetime(2025, 4, 18, 16, 3, 45, 158713), 0)
2025-04-18 16:03:45,160 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,167 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 16:03:45,167 - sqlalchemy.engine.Engine - INFO - [cached since 6.286s ago] ('f2766dee-0d1a-45b4-aee7-15af896dc372',)
2025-04-18 16:03:45,167 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 16:03:45,167 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 16:03:45,167 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 16:03:45,167 - sqlalchemy.engine.Engine - INFO - [cached since 6.202s ago] (datetime.datetime(2025, 4, 18, 16, 3, 45, 167391), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 16, 3, 45, 167391), 'f2766dee-0d1a-45b4-aee7-15af896dc372')
2025-04-18 16:03:45,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 16:03:45,180 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 16:03:45,180 - sqlalchemy.engine.Engine - INFO - [cached since 6.173s ago] (datetime.datetime(2025, 4, 18, 16, 3, 45, 180470), '任务执行成功', 1000, 125, datetime.datetime(2025, 4, 18, 16, 3, 45, 180470), '59d28573-7027-4292-89f9-f8a97daa26c2')
2025-04-18 16:03:45,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 16:03:45,188 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: 59d28573-7027-4292-89f9-f8a97daa26c2, 结果: True
2025-04-18 16:03:47,228 - root - INFO - 应用程序关闭中...
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 16:03:47,228 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 16:03:47,228 - root - INFO - 任务调度器已停止
2025-04-18 16:03:47,228 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 16:03:47,228 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 16:03:47,228 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 16:03:47,228 - data.session - INFO - 数据库连接已关闭
2025-04-18 17:17:07,955 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 17:17:07,956 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 17:17:08,723 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 17:17:08,724 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 17:17:08,790 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 17:17:08,854 - data.session - INFO - 正在初始化数据库...
2025-04-18 17:17:08,893 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 17:17:08,913 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 17:17:08,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,919 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 17:17:08,922 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,926 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 17:17:08,928 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:17:08,936 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 17:17:08,937 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,944 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 17:17:08,945 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,950 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 17:17:08,953 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,958 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 17:17:08,959 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,961 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 17:17:08,964 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,973 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 17:17:08,975 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,976 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 17:17:08,977 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,981 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 17:17:08,985 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,990 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 17:17:08,991 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,997 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 17:17:08,997 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:08,998 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 17:17:09,002 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 17:17:09,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:17:09,010 - data.session - INFO - 数据库表初始化完成
2025-04-18 17:17:09,350 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 17:17:09,352 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 17:17:09,354 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 17:17:09,355 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 17:17:09,356 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 17:17:09,356 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 17:17:09,359 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 17:17:09,361 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 17:17:09,365 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 17:17:09,366 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 17:17:09,368 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 17:17:09,372 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 17:17:09,374 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 17:17:09,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:17:09,388 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 17:17:09,390 - sqlalchemy.engine.Engine - INFO - [generated in 0.00252s] (1, 1)
2025-04-18 17:17:09,392 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-18 17:17:09,393 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:17:09,398 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 17:17:09,398 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 17:18:00,008 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-18 17:18:00,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,011 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:00,012 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:00,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,014 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:00,014 - sqlalchemy.engine.Engine - INFO - [cached since 0.003043s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:00,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,017 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 17:18:00,018 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 17:18:00,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,021 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:00,023 - sqlalchemy.engine.Engine - INFO - [cached since 0.01114s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:00,026 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 17:18:00,027 - sqlalchemy.engine.Engine - INFO - [generated in 0.00123s] (1, datetime.datetime(2025, 4, 18, 17, 18, 0, 26317), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 17:18:00,029 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,046 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 17:18:00,048 - sqlalchemy.engine.Engine - INFO - [generated in 0.00213s] (1, datetime.datetime(2025, 4, 18, 17, 18, 0, 46394), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 17:18:00,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,050 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 17:18:00,051 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,056 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:00,060 - sqlalchemy.engine.Engine - INFO - [cached since 0.04834s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:00,065 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 17:18:00,065 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] ('edaf9910-7746-4ed4-b39b-dd9a5b4358db', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 17, 18, 0, 63381), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 17, 18, 0, 65381), datetime.datetime(2025, 4, 18, 17, 18, 0, 65381), 0)
2025-04-18 17:18:00,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,072 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,075 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,076 - sqlalchemy.engine.Engine - INFO - [generated in 0.00120s] ('edaf9910-7746-4ed4-b39b-dd9a5b4358db',)
2025-04-18 17:18:00,077 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,078 - services.execution.task_scheduler - INFO - 工作线程 4 获取到任务: edaf9910-7746-4ed4-b39b-dd9a5b4358db, 优先级: 1
2025-04-18 17:18:00,079 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0716秒
2025-04-18 17:18:00,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,080 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,080 - sqlalchemy.engine.Engine - INFO - [cached since 0.005187s ago] ('edaf9910-7746-4ed4-b39b-dd9a5b4358db',)
2025-04-18 17:18:00,081 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:00,082 - sqlalchemy.engine.Engine - INFO - [cached since 0.07083s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:00,083 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,083 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (datetime.datetime(2025, 4, 18, 17, 18, 0, 83864), datetime.datetime(2025, 4, 18, 17, 18, 0, 83864), 'edaf9910-7746-4ed4-b39b-dd9a5b4358db')
2025-04-18 17:18:00,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,090 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,091 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,092 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 17, 18, 0, 91931), 'edaf9910-7746-4ed4-b39b-dd9a5b4358db')
2025-04-18 17:18:00,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,098 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 17:18:00,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,101 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:00,102 - sqlalchemy.engine.Engine - INFO - [generated in 0.00091s] ('6e0837ac-e8e5-4efc-8c6e-4ce30b2056e3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'edaf9910-7746-4ed4-b39b-dd9a5b4358db', datetime.datetime(2025, 4, 18, 17, 18, 0, 99810), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 0, 101850), datetime.datetime(2025, 4, 18, 17, 18, 0, 101850), 0)
2025-04-18 17:18:00,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,109 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,112 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,113 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('6e0837ac-e8e5-4efc-8c6e-4ce30b2056e3',)
2025-04-18 17:18:00,114 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:00,114 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:00,114 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,115 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 0, 114158), '6e0837ac-e8e5-4efc-8c6e-4ce30b2056e3')
2025-04-18 17:18:00,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,122 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 17:18:00,123 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 17:18:00,123 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 17:18:00,123 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,124 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:00,124 - sqlalchemy.engine.Engine - INFO - [cached since 0.02289s ago] ('a28731e5-dfb9-4bae-a1e2-4da1f43bb4fb', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'edaf9910-7746-4ed4-b39b-dd9a5b4358db', datetime.datetime(2025, 4, 18, 17, 18, 0, 123326), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 0, 124401), datetime.datetime(2025, 4, 18, 17, 18, 0, 124401), 0)
2025-04-18 17:18:00,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,131 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a28731e5-dfb9-4bae-a1e2-4da1f43bb4fb
2025-04-18 17:18:00,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,133 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,133 - sqlalchemy.engine.Engine - INFO - [cached since 0.02162s ago] ('a28731e5-dfb9-4bae-a1e2-4da1f43bb4fb',)
2025-04-18 17:18:00,135 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:00,135 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:00,135 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,135 - sqlalchemy.engine.Engine - INFO - [cached since 0.02102s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 0, 135341), 'a28731e5-dfb9-4bae-a1e2-4da1f43bb4fb')
2025-04-18 17:18:00,136 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,145 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,150 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 17:18:00,151 - sqlalchemy.engine.Engine - INFO - [generated in 0.00085s] ('edaf9910-7746-4ed4-b39b-dd9a5b4358db',)
2025-04-18 17:18:00,152 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: edaf9910-7746-4ed4-b39b-dd9a5b4358db
2025-04-18 17:18:00,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,153 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 17:18:00,154 - services.execution.handlers.foundation - INFO - 任务 edaf9910-7746-4ed4-b39b-dd9a5b4358db 打印: ['edaf9910-7746-4ed4-b39b-dd9a5b4358db']
2025-04-18 17:18:00,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,156 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:00,156 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('848cc3bc-fbf7-47a9-83bc-39a984671013', 1, '{"success": true, "message": "打印成功", "output": {"message": ["edaf9910-7746-4ed4-b39b-dd9a5b4358db"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'edaf9910-7746-4ed4-b39b-dd9a5b4358db', datetime.datetime(2025, 4, 18, 17, 18, 0, 156332), datetime.datetime(2025, 4, 18, 17, 18, 0, 156332), 0)
2025-04-18 17:18:00,159 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,171 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,172 - sqlalchemy.engine.Engine - INFO - [cached since 0.05986s ago] ('a28731e5-dfb9-4bae-a1e2-4da1f43bb4fb',)
2025-04-18 17:18:00,172 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:00,173 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:00,174 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,175 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] (datetime.datetime(2025, 4, 18, 17, 18, 0, 173324), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 0, 174331), 'a28731e5-dfb9-4bae-a1e2-4da1f43bb4fb')
2025-04-18 17:18:00,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,184 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,185 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:00,185 - sqlalchemy.engine.Engine - INFO - [cached since 0.02989s ago] ('3c759aac-573a-4add-933d-b3738fe59005', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["edaf9910-7746-4ed4-b39b-dd9a5b4358db"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'edaf9910-7746-4ed4-b39b-dd9a5b4358db', datetime.datetime(2025, 4, 18, 17, 18, 0, 185420), datetime.datetime(2025, 4, 18, 17, 18, 0, 185420), 0)
2025-04-18 17:18:00,186 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,194 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,194 - sqlalchemy.engine.Engine - INFO - [cached since 0.08276s ago] ('6e0837ac-e8e5-4efc-8c6e-4ce30b2056e3',)
2025-04-18 17:18:00,195 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:00,195 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:00,197 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,198 - sqlalchemy.engine.Engine - INFO - [cached since 0.02363s ago] (datetime.datetime(2025, 4, 18, 17, 18, 0, 197456), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 0, 197456), '6e0837ac-e8e5-4efc-8c6e-4ce30b2056e3')
2025-04-18 17:18:00,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,213 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,214 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] (datetime.datetime(2025, 4, 18, 17, 18, 0, 212868), '任务执行成功', 1000, 121, datetime.datetime(2025, 4, 18, 17, 18, 0, 213819), 'edaf9910-7746-4ed4-b39b-dd9a5b4358db')
2025-04-18 17:18:00,215 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,223 - services.execution.task_scheduler - INFO - 工作线程 4 完成任务: edaf9910-7746-4ed4-b39b-dd9a5b4358db, 结果: True
2025-04-18 17:18:00,732 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,733 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:00,735 - sqlalchemy.engine.Engine - INFO - [cached since 0.7235s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:00,736 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 17:18:00,736 - sqlalchemy.engine.Engine - INFO - [cached since 0.672s ago] ('30dedc04-3af3-4b21-a0ba-27112534e2e2', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 17, 18, 0, 736492), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 17, 18, 0, 736492), datetime.datetime(2025, 4, 18, 17, 18, 0, 736492), 0)
2025-04-18 17:18:00,737 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,753 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,753 - sqlalchemy.engine.Engine - INFO - [cached since 0.6785s ago] ('30dedc04-3af3-4b21-a0ba-27112534e2e2',)
2025-04-18 17:18:00,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,756 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 17:18:00,756 - services.execution.task_scheduler - INFO - 工作线程 4 获取到任务: 30dedc04-3af3-4b21-a0ba-27112534e2e2, 优先级: 1
2025-04-18 17:18:00,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,757 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,757 - sqlalchemy.engine.Engine - INFO - [cached since 0.6816s ago] ('30dedc04-3af3-4b21-a0ba-27112534e2e2',)
2025-04-18 17:18:00,757 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:00,758 - sqlalchemy.engine.Engine - INFO - [cached since 0.7466s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:00,758 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,759 - sqlalchemy.engine.Engine - INFO - [cached since 0.6753s ago] (datetime.datetime(2025, 4, 18, 17, 18, 0, 758579), datetime.datetime(2025, 4, 18, 17, 18, 0, 758579), '30dedc04-3af3-4b21-a0ba-27112534e2e2')
2025-04-18 17:18:00,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,768 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,768 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,768 - sqlalchemy.engine.Engine - INFO - [cached since 0.6768s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 17, 18, 0, 768566), '30dedc04-3af3-4b21-a0ba-27112534e2e2')
2025-04-18 17:18:00,769 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,776 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 17:18:00,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,777 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:00,777 - sqlalchemy.engine.Engine - INFO - [cached since 0.6764s ago] ('e4c97bfd-5775-47c2-93b2-56841956d59c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '30dedc04-3af3-4b21-a0ba-27112534e2e2', datetime.datetime(2025, 4, 18, 17, 18, 0, 777567), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 0, 777567), datetime.datetime(2025, 4, 18, 17, 18, 0, 777567), 0)
2025-04-18 17:18:00,778 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,786 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,786 - sqlalchemy.engine.Engine - INFO - [cached since 0.6738s ago] ('e4c97bfd-5775-47c2-93b2-56841956d59c',)
2025-04-18 17:18:00,786 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:00,786 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:00,787 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,787 - sqlalchemy.engine.Engine - INFO - [cached since 0.6724s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 0, 787071), 'e4c97bfd-5775-47c2-93b2-56841956d59c')
2025-04-18 17:18:00,787 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,793 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 17:18:00,793 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 17:18:00,793 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 17:18:00,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,794 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:00,794 - sqlalchemy.engine.Engine - INFO - [cached since 0.6928s ago] ('e7e5e588-4a79-46a7-94c3-dc0587d2730b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '30dedc04-3af3-4b21-a0ba-27112534e2e2', datetime.datetime(2025, 4, 18, 17, 18, 0, 794075), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 0, 794075), datetime.datetime(2025, 4, 18, 17, 18, 0, 794075), 0)
2025-04-18 17:18:00,795 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,800 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e7e5e588-4a79-46a7-94c3-dc0587d2730b
2025-04-18 17:18:00,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,801 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,801 - sqlalchemy.engine.Engine - INFO - [cached since 0.6906s ago] ('e7e5e588-4a79-46a7-94c3-dc0587d2730b',)
2025-04-18 17:18:00,803 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:00,803 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:00,803 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,803 - sqlalchemy.engine.Engine - INFO - [cached since 0.6894s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 0, 803979), 'e7e5e588-4a79-46a7-94c3-dc0587d2730b')
2025-04-18 17:18:00,804 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,810 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,810 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 17:18:00,811 - sqlalchemy.engine.Engine - INFO - [cached since 0.6615s ago] ('30dedc04-3af3-4b21-a0ba-27112534e2e2',)
2025-04-18 17:18:00,811 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 30dedc04-3af3-4b21-a0ba-27112534e2e2
2025-04-18 17:18:00,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,812 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 17:18:00,812 - services.execution.handlers.foundation - INFO - 任务 30dedc04-3af3-4b21-a0ba-27112534e2e2 打印: ['30dedc04-3af3-4b21-a0ba-27112534e2e2']
2025-04-18 17:18:00,812 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,812 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:00,814 - sqlalchemy.engine.Engine - INFO - [cached since 0.6578s ago] ('c11c4c91-bdf2-481f-b224-ab3eaa40b019', 1, '{"success": true, "message": "打印成功", "output": {"message": ["30dedc04-3af3-4b21-a0ba-27112534e2e2"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '30dedc04-3af3-4b21-a0ba-27112534e2e2', datetime.datetime(2025, 4, 18, 17, 18, 0, 812987), datetime.datetime(2025, 4, 18, 17, 18, 0, 812987), 0)
2025-04-18 17:18:00,814 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,818 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,819 - sqlalchemy.engine.Engine - INFO - [cached since 0.7076s ago] ('e7e5e588-4a79-46a7-94c3-dc0587d2730b',)
2025-04-18 17:18:00,819 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:00,819 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:00,820 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,820 - sqlalchemy.engine.Engine - INFO - [cached since 0.6461s ago] (datetime.datetime(2025, 4, 18, 17, 18, 0, 820976), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 0, 820976), 'e7e5e588-4a79-46a7-94c3-dc0587d2730b')
2025-04-18 17:18:00,820 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,828 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,829 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:00,829 - sqlalchemy.engine.Engine - INFO - [cached since 0.6731s ago] ('39389b08-6c1a-4fd4-ae99-36dbc5aa9d62', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["30dedc04-3af3-4b21-a0ba-27112534e2e2"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '30dedc04-3af3-4b21-a0ba-27112534e2e2', datetime.datetime(2025, 4, 18, 17, 18, 0, 829038), datetime.datetime(2025, 4, 18, 17, 18, 0, 829038), 0)
2025-04-18 17:18:00,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,838 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,838 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,838 - sqlalchemy.engine.Engine - INFO - [cached since 0.7266s ago] ('e4c97bfd-5775-47c2-93b2-56841956d59c',)
2025-04-18 17:18:00,839 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:00,839 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:00,839 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:00,839 - sqlalchemy.engine.Engine - INFO - [cached since 0.6651s ago] (datetime.datetime(2025, 4, 18, 17, 18, 0, 839553), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 0, 839553), 'e4c97bfd-5775-47c2-93b2-56841956d59c')
2025-04-18 17:18:00,840 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,847 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:00,848 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:00,848 - sqlalchemy.engine.Engine - INFO - [cached since 0.6343s ago] (datetime.datetime(2025, 4, 18, 17, 18, 0, 847634), '任务执行成功', 1000, 80, datetime.datetime(2025, 4, 18, 17, 18, 0, 848576), '30dedc04-3af3-4b21-a0ba-27112534e2e2')
2025-04-18 17:18:00,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:00,857 - services.execution.task_scheduler - INFO - 工作线程 4 完成任务: 30dedc04-3af3-4b21-a0ba-27112534e2e2, 结果: True
2025-04-18 17:18:03,764 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,765 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:03,765 - sqlalchemy.engine.Engine - INFO - [cached since 3.754s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:03,767 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 17:18:03,767 - sqlalchemy.engine.Engine - INFO - [cached since 3.703s ago] ('0247094c-2738-4528-9130-7efef1ce98a4', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 17, 18, 3, 766680), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 17, 18, 3, 767676), datetime.datetime(2025, 4, 18, 17, 18, 3, 767676), 0)
2025-04-18 17:18:03,768 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,777 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:03,778 - sqlalchemy.engine.Engine - INFO - [cached since 3.703s ago] ('0247094c-2738-4528-9130-7efef1ce98a4',)
2025-04-18 17:18:03,780 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,781 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 17:18:03,781 - services.execution.task_scheduler - INFO - 工作线程 4 获取到任务: 0247094c-2738-4528-9130-7efef1ce98a4, 优先级: 1
2025-04-18 17:18:03,782 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,783 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:03,783 - sqlalchemy.engine.Engine - INFO - [cached since 3.708s ago] ('0247094c-2738-4528-9130-7efef1ce98a4',)
2025-04-18 17:18:03,784 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:03,785 - sqlalchemy.engine.Engine - INFO - [cached since 3.774s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:03,786 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:03,787 - sqlalchemy.engine.Engine - INFO - [cached since 3.703s ago] (datetime.datetime(2025, 4, 18, 17, 18, 3, 786675), datetime.datetime(2025, 4, 18, 17, 18, 3, 786675), '0247094c-2738-4528-9130-7efef1ce98a4')
2025-04-18 17:18:03,787 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,797 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,798 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:03,799 - sqlalchemy.engine.Engine - INFO - [cached since 3.707s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 17, 18, 3, 798197), '0247094c-2738-4528-9130-7efef1ce98a4')
2025-04-18 17:18:03,799 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,808 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 17:18:03,809 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,812 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:03,814 - sqlalchemy.engine.Engine - INFO - [cached since 3.713s ago] ('73daf518-7577-454f-9afa-f8ab4a7b50df', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0247094c-2738-4528-9130-7efef1ce98a4', datetime.datetime(2025, 4, 18, 17, 18, 3, 808843), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 3, 812544), datetime.datetime(2025, 4, 18, 17, 18, 3, 812544), 0)
2025-04-18 17:18:03,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,830 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,831 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:03,831 - sqlalchemy.engine.Engine - INFO - [cached since 3.72s ago] ('73daf518-7577-454f-9afa-f8ab4a7b50df',)
2025-04-18 17:18:03,833 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:03,834 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:03,834 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:03,835 - sqlalchemy.engine.Engine - INFO - [cached since 3.721s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 3, 834514), '73daf518-7577-454f-9afa-f8ab4a7b50df')
2025-04-18 17:18:03,835 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,843 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 17:18:03,843 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 17:18:03,844 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 17:18:03,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,845 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:03,845 - sqlalchemy.engine.Engine - INFO - [cached since 3.744s ago] ('a519e663-0c2f-41fb-aa5e-2543a7166700', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0247094c-2738-4528-9130-7efef1ce98a4', datetime.datetime(2025, 4, 18, 17, 18, 3, 844196), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 3, 845196), datetime.datetime(2025, 4, 18, 17, 18, 3, 845196), 0)
2025-04-18 17:18:03,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,854 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a519e663-0c2f-41fb-aa5e-2543a7166700
2025-04-18 17:18:03,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,855 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:03,855 - sqlalchemy.engine.Engine - INFO - [cached since 3.743s ago] ('a519e663-0c2f-41fb-aa5e-2543a7166700',)
2025-04-18 17:18:03,856 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:03,856 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:03,856 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:03,856 - sqlalchemy.engine.Engine - INFO - [cached since 3.742s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 3, 856196), 'a519e663-0c2f-41fb-aa5e-2543a7166700')
2025-04-18 17:18:03,857 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,865 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,865 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 17:18:03,866 - sqlalchemy.engine.Engine - INFO - [cached since 3.716s ago] ('0247094c-2738-4528-9130-7efef1ce98a4',)
2025-04-18 17:18:03,866 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 0247094c-2738-4528-9130-7efef1ce98a4
2025-04-18 17:18:03,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,866 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 17:18:03,866 - services.execution.handlers.foundation - INFO - 任务 0247094c-2738-4528-9130-7efef1ce98a4 打印: ['0247094c-2738-4528-9130-7efef1ce98a4']
2025-04-18 17:18:03,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,867 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:03,867 - sqlalchemy.engine.Engine - INFO - [cached since 3.712s ago] ('a2b6a970-9cf9-4ff6-ba78-6103a1cfc5e2', 1, '{"success": true, "message": "打印成功", "output": {"message": ["0247094c-2738-4528-9130-7efef1ce98a4"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0247094c-2738-4528-9130-7efef1ce98a4', datetime.datetime(2025, 4, 18, 17, 18, 3, 867886), datetime.datetime(2025, 4, 18, 17, 18, 3, 867886), 0)
2025-04-18 17:18:03,868 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,875 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,875 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:03,875 - sqlalchemy.engine.Engine - INFO - [cached since 3.764s ago] ('a519e663-0c2f-41fb-aa5e-2543a7166700',)
2025-04-18 17:18:03,876 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:03,876 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:03,876 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:03,876 - sqlalchemy.engine.Engine - INFO - [cached since 3.702s ago] (datetime.datetime(2025, 4, 18, 17, 18, 3, 876364), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 3, 876364), 'a519e663-0c2f-41fb-aa5e-2543a7166700')
2025-04-18 17:18:03,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,884 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:03,884 - sqlalchemy.engine.Engine - INFO - [cached since 3.728s ago] ('259d9870-fb81-438b-a7b8-9c63f37aca66', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["0247094c-2738-4528-9130-7efef1ce98a4"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0247094c-2738-4528-9130-7efef1ce98a4', datetime.datetime(2025, 4, 18, 17, 18, 3, 884407), datetime.datetime(2025, 4, 18, 17, 18, 3, 884407), 0)
2025-04-18 17:18:03,884 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,891 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,892 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:03,892 - sqlalchemy.engine.Engine - INFO - [cached since 3.781s ago] ('73daf518-7577-454f-9afa-f8ab4a7b50df',)
2025-04-18 17:18:03,893 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:03,893 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:03,893 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:03,893 - sqlalchemy.engine.Engine - INFO - [cached since 3.719s ago] (datetime.datetime(2025, 4, 18, 17, 18, 3, 893871), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 3, 893871), '73daf518-7577-454f-9afa-f8ab4a7b50df')
2025-04-18 17:18:03,894 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:03,901 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:03,901 - sqlalchemy.engine.Engine - INFO - [cached since 3.688s ago] (datetime.datetime(2025, 4, 18, 17, 18, 3, 900756), '任务执行成功', 1000, 103, datetime.datetime(2025, 4, 18, 17, 18, 3, 901760), '0247094c-2738-4528-9130-7efef1ce98a4')
2025-04-18 17:18:03,902 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:03,908 - services.execution.task_scheduler - INFO - 工作线程 4 完成任务: 0247094c-2738-4528-9130-7efef1ce98a4, 结果: True
2025-04-18 17:18:06,802 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,803 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:06,803 - sqlalchemy.engine.Engine - INFO - [cached since 6.791s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:06,804 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 17:18:06,804 - sqlalchemy.engine.Engine - INFO - [cached since 6.74s ago] ('e18dd4c1-c28b-4990-b73b-8b14b1ca625f', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 17, 18, 6, 804101), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 17, 18, 6, 804101), datetime.datetime(2025, 4, 18, 17, 18, 6, 804101), 0)
2025-04-18 17:18:06,805 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,818 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:06,820 - sqlalchemy.engine.Engine - INFO - [cached since 6.745s ago] ('e18dd4c1-c28b-4990-b73b-8b14b1ca625f',)
2025-04-18 17:18:06,821 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,822 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 17:18:06,822 - services.execution.task_scheduler - INFO - 工作线程 4 获取到任务: e18dd4c1-c28b-4990-b73b-8b14b1ca625f, 优先级: 1
2025-04-18 17:18:06,822 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,823 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:06,823 - sqlalchemy.engine.Engine - INFO - [cached since 6.747s ago] ('e18dd4c1-c28b-4990-b73b-8b14b1ca625f',)
2025-04-18 17:18:06,824 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:06,824 - sqlalchemy.engine.Engine - INFO - [cached since 6.813s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:06,825 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:06,825 - sqlalchemy.engine.Engine - INFO - [cached since 6.742s ago] (datetime.datetime(2025, 4, 18, 17, 18, 6, 824493), datetime.datetime(2025, 4, 18, 17, 18, 6, 825632), 'e18dd4c1-c28b-4990-b73b-8b14b1ca625f')
2025-04-18 17:18:06,825 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,835 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:06,835 - sqlalchemy.engine.Engine - INFO - [cached since 6.744s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 17, 18, 6, 835814), 'e18dd4c1-c28b-4990-b73b-8b14b1ca625f')
2025-04-18 17:18:06,836 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,842 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 17:18:06,843 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,843 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:06,843 - sqlalchemy.engine.Engine - INFO - [cached since 6.742s ago] ('58ddf62b-804e-4215-9079-58f1204e5b04', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e18dd4c1-c28b-4990-b73b-8b14b1ca625f', datetime.datetime(2025, 4, 18, 17, 18, 6, 842860), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 6, 843854), datetime.datetime(2025, 4, 18, 17, 18, 6, 843854), 0)
2025-04-18 17:18:06,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,853 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,853 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:06,854 - sqlalchemy.engine.Engine - INFO - [cached since 6.742s ago] ('58ddf62b-804e-4215-9079-58f1204e5b04',)
2025-04-18 17:18:06,854 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:06,854 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:06,854 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:06,856 - sqlalchemy.engine.Engine - INFO - [cached since 6.741s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 6, 854648), '58ddf62b-804e-4215-9079-58f1204e5b04')
2025-04-18 17:18:06,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,863 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 17:18:06,866 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 17:18:06,866 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 17:18:06,867 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,867 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:06,867 - sqlalchemy.engine.Engine - INFO - [cached since 6.766s ago] ('c3f0951f-79ce-486f-9038-9026d0608380', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e18dd4c1-c28b-4990-b73b-8b14b1ca625f', datetime.datetime(2025, 4, 18, 17, 18, 6, 866097), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 6, 867694), datetime.datetime(2025, 4, 18, 17, 18, 6, 867694), 0)
2025-04-18 17:18:06,868 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,877 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c3f0951f-79ce-486f-9038-9026d0608380
2025-04-18 17:18:06,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,877 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:06,877 - sqlalchemy.engine.Engine - INFO - [cached since 6.766s ago] ('c3f0951f-79ce-486f-9038-9026d0608380',)
2025-04-18 17:18:06,878 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:06,878 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:06,878 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:06,878 - sqlalchemy.engine.Engine - INFO - [cached since 6.764s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 6, 878590), 'c3f0951f-79ce-486f-9038-9026d0608380')
2025-04-18 17:18:06,880 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,887 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,889 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 17:18:06,889 - sqlalchemy.engine.Engine - INFO - [cached since 6.739s ago] ('e18dd4c1-c28b-4990-b73b-8b14b1ca625f',)
2025-04-18 17:18:06,889 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: e18dd4c1-c28b-4990-b73b-8b14b1ca625f
2025-04-18 17:18:06,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,890 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 17:18:06,890 - services.execution.handlers.foundation - INFO - 任务 e18dd4c1-c28b-4990-b73b-8b14b1ca625f 打印: ['e18dd4c1-c28b-4990-b73b-8b14b1ca625f']
2025-04-18 17:18:06,890 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,891 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:06,891 - sqlalchemy.engine.Engine - INFO - [cached since 6.736s ago] ('d63ff49b-f781-4f58-a97c-aa6d0d96b8f1', 1, '{"success": true, "message": "打印成功", "output": {"message": ["e18dd4c1-c28b-4990-b73b-8b14b1ca625f"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e18dd4c1-c28b-4990-b73b-8b14b1ca625f', datetime.datetime(2025, 4, 18, 17, 18, 6, 891371), datetime.datetime(2025, 4, 18, 17, 18, 6, 891371), 0)
2025-04-18 17:18:06,892 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,899 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,900 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:06,900 - sqlalchemy.engine.Engine - INFO - [cached since 6.789s ago] ('c3f0951f-79ce-486f-9038-9026d0608380',)
2025-04-18 17:18:06,901 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:06,902 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:06,902 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:06,902 - sqlalchemy.engine.Engine - INFO - [cached since 6.728s ago] (datetime.datetime(2025, 4, 18, 17, 18, 6, 902401), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 6, 902401), 'c3f0951f-79ce-486f-9038-9026d0608380')
2025-04-18 17:18:06,903 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,908 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,908 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:06,908 - sqlalchemy.engine.Engine - INFO - [cached since 6.753s ago] ('11da6d2b-1ce0-4db4-96b3-7bf035c51a59', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["e18dd4c1-c28b-4990-b73b-8b14b1ca625f"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e18dd4c1-c28b-4990-b73b-8b14b1ca625f', datetime.datetime(2025, 4, 18, 17, 18, 6, 908874), datetime.datetime(2025, 4, 18, 17, 18, 6, 908874), 0)
2025-04-18 17:18:06,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,920 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:06,924 - sqlalchemy.engine.Engine - INFO - [cached since 6.813s ago] ('58ddf62b-804e-4215-9079-58f1204e5b04',)
2025-04-18 17:18:06,927 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:06,928 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:06,928 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:06,930 - sqlalchemy.engine.Engine - INFO - [cached since 6.755s ago] (datetime.datetime(2025, 4, 18, 17, 18, 6, 928938), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 6, 928938), '58ddf62b-804e-4215-9079-58f1204e5b04')
2025-04-18 17:18:06,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:06,938 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:06,941 - sqlalchemy.engine.Engine - INFO - [cached since 6.728s ago] (datetime.datetime(2025, 4, 18, 17, 18, 6, 935882), '任务执行成功', 1000, 101, datetime.datetime(2025, 4, 18, 17, 18, 6, 938974), 'e18dd4c1-c28b-4990-b73b-8b14b1ca625f')
2025-04-18 17:18:06,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:06,950 - services.execution.task_scheduler - INFO - 工作线程 4 完成任务: e18dd4c1-c28b-4990-b73b-8b14b1ca625f, 结果: True
2025-04-18 17:18:09,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,809 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:09,809 - sqlalchemy.engine.Engine - INFO - [cached since 9.797s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:09,811 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 17:18:09,811 - sqlalchemy.engine.Engine - INFO - [cached since 9.746s ago] ('87789d92-e3b0-4b38-8839-68125a5b2ed2', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 17, 18, 9, 810195), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 17, 18, 9, 810195), datetime.datetime(2025, 4, 18, 17, 18, 9, 810195), 0)
2025-04-18 17:18:09,812 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,826 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,826 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:09,826 - sqlalchemy.engine.Engine - INFO - [cached since 9.751s ago] ('87789d92-e3b0-4b38-8839-68125a5b2ed2',)
2025-04-18 17:18:09,827 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,827 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 17:18:09,827 - services.execution.task_scheduler - INFO - 工作线程 4 获取到任务: 87789d92-e3b0-4b38-8839-68125a5b2ed2, 优先级: 1
2025-04-18 17:18:09,827 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,828 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:09,828 - sqlalchemy.engine.Engine - INFO - [cached since 9.754s ago] ('87789d92-e3b0-4b38-8839-68125a5b2ed2',)
2025-04-18 17:18:09,830 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:09,830 - sqlalchemy.engine.Engine - INFO - [cached since 9.819s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:09,831 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:09,831 - sqlalchemy.engine.Engine - INFO - [cached since 9.748s ago] (datetime.datetime(2025, 4, 18, 17, 18, 9, 831521), datetime.datetime(2025, 4, 18, 17, 18, 9, 831521), '87789d92-e3b0-4b38-8839-68125a5b2ed2')
2025-04-18 17:18:09,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,838 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,839 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:09,839 - sqlalchemy.engine.Engine - INFO - [cached since 9.747s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 17, 18, 9, 839257), '87789d92-e3b0-4b38-8839-68125a5b2ed2')
2025-04-18 17:18:09,839 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,847 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 17:18:09,848 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,849 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:09,849 - sqlalchemy.engine.Engine - INFO - [cached since 9.748s ago] ('f6b94aec-51c5-4154-b78b-5a14e9f0e5be', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '87789d92-e3b0-4b38-8839-68125a5b2ed2', datetime.datetime(2025, 4, 18, 17, 18, 9, 848847), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 9, 849876), datetime.datetime(2025, 4, 18, 17, 18, 9, 849876), 0)
2025-04-18 17:18:09,850 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,856 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:09,856 - sqlalchemy.engine.Engine - INFO - [cached since 9.745s ago] ('f6b94aec-51c5-4154-b78b-5a14e9f0e5be',)
2025-04-18 17:18:09,857 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:09,857 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:09,858 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:09,858 - sqlalchemy.engine.Engine - INFO - [cached since 9.744s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 9, 858799), 'f6b94aec-51c5-4154-b78b-5a14e9f0e5be')
2025-04-18 17:18:09,858 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,865 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 17:18:09,865 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 17:18:09,865 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 17:18:09,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,866 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:09,866 - sqlalchemy.engine.Engine - INFO - [cached since 9.765s ago] ('8f1fdd4a-ae5a-4bf7-85f3-d188962779a9', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '87789d92-e3b0-4b38-8839-68125a5b2ed2', datetime.datetime(2025, 4, 18, 17, 18, 9, 865803), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 9, 866773), datetime.datetime(2025, 4, 18, 17, 18, 9, 866773), 0)
2025-04-18 17:18:09,867 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,877 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 8f1fdd4a-ae5a-4bf7-85f3-d188962779a9
2025-04-18 17:18:09,879 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,880 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:09,881 - sqlalchemy.engine.Engine - INFO - [cached since 9.77s ago] ('8f1fdd4a-ae5a-4bf7-85f3-d188962779a9',)
2025-04-18 17:18:09,883 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:09,883 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:09,885 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:09,885 - sqlalchemy.engine.Engine - INFO - [cached since 9.771s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 9, 885049), '8f1fdd4a-ae5a-4bf7-85f3-d188962779a9')
2025-04-18 17:18:09,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,898 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,898 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 17:18:09,898 - sqlalchemy.engine.Engine - INFO - [cached since 9.749s ago] ('87789d92-e3b0-4b38-8839-68125a5b2ed2',)
2025-04-18 17:18:09,899 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 87789d92-e3b0-4b38-8839-68125a5b2ed2
2025-04-18 17:18:09,899 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,899 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 17:18:09,900 - services.execution.handlers.foundation - INFO - 任务 87789d92-e3b0-4b38-8839-68125a5b2ed2 打印: ['87789d92-e3b0-4b38-8839-68125a5b2ed2']
2025-04-18 17:18:09,902 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,902 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:09,902 - sqlalchemy.engine.Engine - INFO - [cached since 9.747s ago] ('92b83f7e-144b-4f4c-9039-9dc268c8ab5a', 1, '{"success": true, "message": "打印成功", "output": {"message": ["87789d92-e3b0-4b38-8839-68125a5b2ed2"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '87789d92-e3b0-4b38-8839-68125a5b2ed2', datetime.datetime(2025, 4, 18, 17, 18, 9, 902551), datetime.datetime(2025, 4, 18, 17, 18, 9, 902551), 0)
2025-04-18 17:18:09,903 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,909 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,909 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:09,909 - sqlalchemy.engine.Engine - INFO - [cached since 9.798s ago] ('8f1fdd4a-ae5a-4bf7-85f3-d188962779a9',)
2025-04-18 17:18:09,910 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:09,910 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:09,910 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:09,911 - sqlalchemy.engine.Engine - INFO - [cached since 9.737s ago] (datetime.datetime(2025, 4, 18, 17, 18, 9, 910664), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 9, 910664), '8f1fdd4a-ae5a-4bf7-85f3-d188962779a9')
2025-04-18 17:18:09,912 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,919 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,920 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:09,920 - sqlalchemy.engine.Engine - INFO - [cached since 9.765s ago] ('fb4b098d-6d4c-4956-9cfb-212594f548ca', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["87789d92-e3b0-4b38-8839-68125a5b2ed2"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '87789d92-e3b0-4b38-8839-68125a5b2ed2', datetime.datetime(2025, 4, 18, 17, 18, 9, 919664), datetime.datetime(2025, 4, 18, 17, 18, 9, 919664), 0)
2025-04-18 17:18:09,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,931 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,931 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:09,932 - sqlalchemy.engine.Engine - INFO - [cached since 9.82s ago] ('f6b94aec-51c5-4154-b78b-5a14e9f0e5be',)
2025-04-18 17:18:09,934 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:09,934 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:09,935 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:09,935 - sqlalchemy.engine.Engine - INFO - [cached since 9.761s ago] (datetime.datetime(2025, 4, 18, 17, 18, 9, 934664), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 9, 935715), 'f6b94aec-51c5-4154-b78b-5a14e9f0e5be')
2025-04-18 17:18:09,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:09,944 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:09,944 - sqlalchemy.engine.Engine - INFO - [cached since 9.731s ago] (datetime.datetime(2025, 4, 18, 17, 18, 9, 943741), '任务执行成功', 1000, 105, datetime.datetime(2025, 4, 18, 17, 18, 9, 944717), '87789d92-e3b0-4b38-8839-68125a5b2ed2')
2025-04-18 17:18:09,948 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:09,960 - services.execution.task_scheduler - INFO - 工作线程 4 完成任务: 87789d92-e3b0-4b38-8839-68125a5b2ed2, 结果: True
2025-04-18 17:18:12,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,833 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:12,833 - sqlalchemy.engine.Engine - INFO - [cached since 12.82s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:12,834 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 17:18:12,834 - sqlalchemy.engine.Engine - INFO - [cached since 12.77s ago] ('ce825937-7c29-440d-a101-82af849f6df6', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 17, 18, 12, 834812), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 17, 18, 12, 834812), datetime.datetime(2025, 4, 18, 17, 18, 12, 834812), 0)
2025-04-18 17:18:12,836 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,848 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,850 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:12,850 - sqlalchemy.engine.Engine - INFO - [cached since 12.77s ago] ('ce825937-7c29-440d-a101-82af849f6df6',)
2025-04-18 17:18:12,852 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,853 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 17:18:12,853 - services.execution.task_scheduler - INFO - 工作线程 4 获取到任务: ce825937-7c29-440d-a101-82af849f6df6, 优先级: 1
2025-04-18 17:18:12,853 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,854 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:12,854 - sqlalchemy.engine.Engine - INFO - [cached since 12.78s ago] ('ce825937-7c29-440d-a101-82af849f6df6',)
2025-04-18 17:18:12,854 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:12,855 - sqlalchemy.engine.Engine - INFO - [cached since 12.84s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:12,856 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:12,856 - sqlalchemy.engine.Engine - INFO - [cached since 12.77s ago] (datetime.datetime(2025, 4, 18, 17, 18, 12, 855245), datetime.datetime(2025, 4, 18, 17, 18, 12, 855245), 'ce825937-7c29-440d-a101-82af849f6df6')
2025-04-18 17:18:12,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,864 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,868 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:12,869 - sqlalchemy.engine.Engine - INFO - [cached since 12.78s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 17, 18, 12, 868717), 'ce825937-7c29-440d-a101-82af849f6df6')
2025-04-18 17:18:12,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,878 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 17:18:12,878 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,879 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:12,879 - sqlalchemy.engine.Engine - INFO - [cached since 12.78s ago] ('289ad99f-8555-4bcf-b21f-8ef5277d5cf4', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ce825937-7c29-440d-a101-82af849f6df6', datetime.datetime(2025, 4, 18, 17, 18, 12, 878671), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 12, 879760), datetime.datetime(2025, 4, 18, 17, 18, 12, 879760), 0)
2025-04-18 17:18:12,880 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,887 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,888 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:12,889 - sqlalchemy.engine.Engine - INFO - [cached since 12.78s ago] ('289ad99f-8555-4bcf-b21f-8ef5277d5cf4',)
2025-04-18 17:18:12,890 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:12,890 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:12,891 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:12,892 - sqlalchemy.engine.Engine - INFO - [cached since 12.78s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 12, 891786), '289ad99f-8555-4bcf-b21f-8ef5277d5cf4')
2025-04-18 17:18:12,893 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,900 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 17:18:12,900 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 17:18:12,900 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 17:18:12,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,902 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:12,902 - sqlalchemy.engine.Engine - INFO - [cached since 12.8s ago] ('00d7bda8-11a9-4ccb-8cf9-aee7658a86e0', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ce825937-7c29-440d-a101-82af849f6df6', datetime.datetime(2025, 4, 18, 17, 18, 12, 901021), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 12, 902021), datetime.datetime(2025, 4, 18, 17, 18, 12, 902021), 0)
2025-04-18 17:18:12,903 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,908 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 00d7bda8-11a9-4ccb-8cf9-aee7658a86e0
2025-04-18 17:18:12,909 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,909 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:12,909 - sqlalchemy.engine.Engine - INFO - [cached since 12.8s ago] ('00d7bda8-11a9-4ccb-8cf9-aee7658a86e0',)
2025-04-18 17:18:12,910 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:12,910 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:12,910 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:12,910 - sqlalchemy.engine.Engine - INFO - [cached since 12.8s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 12, 910077), '00d7bda8-11a9-4ccb-8cf9-aee7658a86e0')
2025-04-18 17:18:12,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,918 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 17:18:12,918 - sqlalchemy.engine.Engine - INFO - [cached since 12.77s ago] ('ce825937-7c29-440d-a101-82af849f6df6',)
2025-04-18 17:18:12,919 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ce825937-7c29-440d-a101-82af849f6df6
2025-04-18 17:18:12,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,919 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 17:18:12,920 - services.execution.handlers.foundation - INFO - 任务 ce825937-7c29-440d-a101-82af849f6df6 打印: ['ce825937-7c29-440d-a101-82af849f6df6']
2025-04-18 17:18:12,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,920 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:12,920 - sqlalchemy.engine.Engine - INFO - [cached since 12.76s ago] ('32a8e35c-1732-4bed-8789-d712977e1c8b', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ce825937-7c29-440d-a101-82af849f6df6"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ce825937-7c29-440d-a101-82af849f6df6', datetime.datetime(2025, 4, 18, 17, 18, 12, 920038), datetime.datetime(2025, 4, 18, 17, 18, 12, 920038), 0)
2025-04-18 17:18:12,921 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,927 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:12,927 - sqlalchemy.engine.Engine - INFO - [cached since 12.82s ago] ('00d7bda8-11a9-4ccb-8cf9-aee7658a86e0',)
2025-04-18 17:18:12,929 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:12,929 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:12,929 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:12,929 - sqlalchemy.engine.Engine - INFO - [cached since 12.75s ago] (datetime.datetime(2025, 4, 18, 17, 18, 12, 929277), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 12, 929277), '00d7bda8-11a9-4ccb-8cf9-aee7658a86e0')
2025-04-18 17:18:12,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,936 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:12,936 - sqlalchemy.engine.Engine - INFO - [cached since 12.78s ago] ('aa73cd65-c6b8-4936-ab49-1e4be8d4eb4d', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ce825937-7c29-440d-a101-82af849f6df6"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ce825937-7c29-440d-a101-82af849f6df6', datetime.datetime(2025, 4, 18, 17, 18, 12, 936441), datetime.datetime(2025, 4, 18, 17, 18, 12, 936441), 0)
2025-04-18 17:18:12,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,943 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,943 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:12,944 - sqlalchemy.engine.Engine - INFO - [cached since 12.83s ago] ('289ad99f-8555-4bcf-b21f-8ef5277d5cf4',)
2025-04-18 17:18:12,944 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:12,944 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:12,945 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:12,945 - sqlalchemy.engine.Engine - INFO - [cached since 12.77s ago] (datetime.datetime(2025, 4, 18, 17, 18, 12, 945049), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 12, 945049), '289ad99f-8555-4bcf-b21f-8ef5277d5cf4')
2025-04-18 17:18:12,945 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,954 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:12,955 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:12,955 - sqlalchemy.engine.Engine - INFO - [cached since 12.74s ago] (datetime.datetime(2025, 4, 18, 17, 18, 12, 954047), '任务执行成功', 1000, 90, datetime.datetime(2025, 4, 18, 17, 18, 12, 955049), 'ce825937-7c29-440d-a101-82af849f6df6')
2025-04-18 17:18:12,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:12,964 - services.execution.task_scheduler - INFO - 工作线程 4 完成任务: ce825937-7c29-440d-a101-82af849f6df6, 结果: True
2025-04-18 17:18:15,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,883 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:15,883 - sqlalchemy.engine.Engine - INFO - [cached since 15.87s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:15,884 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 17:18:15,884 - sqlalchemy.engine.Engine - INFO - [cached since 15.82s ago] ('ea24bbf4-2a50-4a88-b889-cd810586800a', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 17, 18, 15, 884994), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 17, 18, 15, 884994), datetime.datetime(2025, 4, 18, 17, 18, 15, 884994), 0)
2025-04-18 17:18:15,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,904 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,904 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:15,904 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] ('ea24bbf4-2a50-4a88-b889-cd810586800a',)
2025-04-18 17:18:15,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,908 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 17:18:15,908 - services.execution.task_scheduler - INFO - 工作线程 4 获取到任务: ea24bbf4-2a50-4a88-b889-cd810586800a, 优先级: 1
2025-04-18 17:18:15,909 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,909 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:15,910 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] ('ea24bbf4-2a50-4a88-b889-cd810586800a',)
2025-04-18 17:18:15,910 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:15,911 - sqlalchemy.engine.Engine - INFO - [cached since 15.9s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:15,912 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:15,912 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] (datetime.datetime(2025, 4, 18, 17, 18, 15, 912215), datetime.datetime(2025, 4, 18, 17, 18, 15, 912215), 'ea24bbf4-2a50-4a88-b889-cd810586800a')
2025-04-18 17:18:15,913 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,920 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:15,921 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 17, 18, 15, 920215), 'ea24bbf4-2a50-4a88-b889-cd810586800a')
2025-04-18 17:18:15,921 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,928 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 17:18:15,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,929 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:15,929 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] ('9a53e609-51a1-4d24-ac78-4fd365672261', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ea24bbf4-2a50-4a88-b889-cd810586800a', datetime.datetime(2025, 4, 18, 17, 18, 15, 928293), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 15, 929270), datetime.datetime(2025, 4, 18, 17, 18, 15, 929270), 0)
2025-04-18 17:18:15,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,937 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,937 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:15,938 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] ('9a53e609-51a1-4d24-ac78-4fd365672261',)
2025-04-18 17:18:15,939 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:15,939 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:15,939 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:15,939 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 15, 939215), '9a53e609-51a1-4d24-ac78-4fd365672261')
2025-04-18 17:18:15,940 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,946 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 17:18:15,946 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 17:18:15,947 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 17:18:15,947 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,948 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 17:18:15,948 - sqlalchemy.engine.Engine - INFO - [cached since 15.85s ago] ('17f8465f-efce-401a-b867-827a548134fc', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ea24bbf4-2a50-4a88-b889-cd810586800a', datetime.datetime(2025, 4, 18, 17, 18, 15, 947844), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 17, 18, 15, 947844), datetime.datetime(2025, 4, 18, 17, 18, 15, 947844), 0)
2025-04-18 17:18:15,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,955 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 17f8465f-efce-401a-b867-827a548134fc
2025-04-18 17:18:15,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,960 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:15,961 - sqlalchemy.engine.Engine - INFO - [cached since 15.85s ago] ('17f8465f-efce-401a-b867-827a548134fc',)
2025-04-18 17:18:15,961 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:15,962 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:15,962 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:15,963 - sqlalchemy.engine.Engine - INFO - [cached since 15.85s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 17, 18, 15, 962753), '17f8465f-efce-401a-b867-827a548134fc')
2025-04-18 17:18:15,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,971 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 17:18:15,971 - sqlalchemy.engine.Engine - INFO - [cached since 15.82s ago] ('ea24bbf4-2a50-4a88-b889-cd810586800a',)
2025-04-18 17:18:15,972 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ea24bbf4-2a50-4a88-b889-cd810586800a
2025-04-18 17:18:15,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,974 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 17:18:15,974 - services.execution.handlers.foundation - INFO - 任务 ea24bbf4-2a50-4a88-b889-cd810586800a 打印: ['ea24bbf4-2a50-4a88-b889-cd810586800a']
2025-04-18 17:18:15,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,975 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:15,975 - sqlalchemy.engine.Engine - INFO - [cached since 15.82s ago] ('a6a000dc-844c-47aa-ab37-499af96f243f', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ea24bbf4-2a50-4a88-b889-cd810586800a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ea24bbf4-2a50-4a88-b889-cd810586800a', datetime.datetime(2025, 4, 18, 17, 18, 15, 975045), datetime.datetime(2025, 4, 18, 17, 18, 15, 975045), 0)
2025-04-18 17:18:15,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,984 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:15,984 - sqlalchemy.engine.Engine - INFO - [cached since 15.87s ago] ('17f8465f-efce-401a-b867-827a548134fc',)
2025-04-18 17:18:15,985 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 17:18:15,985 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 17:18:15,986 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:15,986 - sqlalchemy.engine.Engine - INFO - [cached since 15.81s ago] (datetime.datetime(2025, 4, 18, 17, 18, 15, 985221), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 15, 986222), '17f8465f-efce-401a-b867-827a548134fc')
2025-04-18 17:18:15,986 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:15,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:15,997 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 17:18:15,998 - sqlalchemy.engine.Engine - INFO - [cached since 15.84s ago] ('7c0ae976-6a61-4354-bbc9-c8f39e6ceced', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ea24bbf4-2a50-4a88-b889-cd810586800a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ea24bbf4-2a50-4a88-b889-cd810586800a', datetime.datetime(2025, 4, 18, 17, 18, 15, 997230), datetime.datetime(2025, 4, 18, 17, 18, 15, 997230), 0)
2025-04-18 17:18:15,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:16,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:16,004 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 17:18:16,004 - sqlalchemy.engine.Engine - INFO - [cached since 15.89s ago] ('9a53e609-51a1-4d24-ac78-4fd365672261',)
2025-04-18 17:18:16,005 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 17:18:16,005 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 17:18:16,005 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 17:18:16,006 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] (datetime.datetime(2025, 4, 18, 17, 18, 16, 5621), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 17, 18, 16, 5621), '9a53e609-51a1-4d24-ac78-4fd365672261')
2025-04-18 17:18:16,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:16,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:16,015 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:16,015 - sqlalchemy.engine.Engine - INFO - [cached since 15.8s ago] (datetime.datetime(2025, 4, 18, 17, 18, 16, 15527), '任务执行成功', 1000, 95, datetime.datetime(2025, 4, 18, 17, 18, 16, 15527), 'ea24bbf4-2a50-4a88-b889-cd810586800a')
2025-04-18 17:18:16,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:16,023 - services.execution.task_scheduler - INFO - 工作线程 4 完成任务: ea24bbf4-2a50-4a88-b889-cd810586800a, 结果: True
2025-04-18 17:18:16,667 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 17:18:16,668 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:16,668 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:16,668 - sqlalchemy.engine.Engine - INFO - [cached since 16.66s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:16,670 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 17:18:16,670 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] (0, datetime.datetime(2025, 4, 18, 17, 18, 16, 670989), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 17:18:16,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:16,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:16,679 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 17:18:16,679 - sqlalchemy.engine.Engine - INFO - [cached since 16.67s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:16,681 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:16,681 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:16,682 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 17:18:16,682 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 17:18:16,687 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 17:18:16,687 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 17:18:16,688 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 17:18:16,688 - sqlalchemy.engine.Engine - INFO - [cached since 16.61s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 17:18:16,689 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:16,689 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 17:18:16,690 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0224秒
2025-04-18 18:14:32,897 - root - INFO - 应用程序关闭中...
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 18:14:32,897 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 18:14:32,897 - root - INFO - 任务调度器已停止
2025-04-18 18:14:32,897 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 18:14:32,910 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 18:14:32,910 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 18:14:32,910 - data.session - INFO - 数据库连接已关闭
2025-04-18 18:35:39,725 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 18:35:39,725 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 18:35:40,467 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 18:35:40,467 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 18:35:40,525 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 18:35:40,575 - data.session - INFO - 正在初始化数据库...
2025-04-18 18:35:40,616 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 18:35:40,643 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:35:40,643 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,643 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:35:40,645 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,645 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:35:40,645 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,645 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:35:40,645 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 18:35:40,645 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,649 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 18:35:40,654 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,654 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 18:35:40,658 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,659 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 18:35:40,659 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,663 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 18:35:40,663 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,663 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 18:35:40,663 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,663 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 18:35:40,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,667 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 18:35:40,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,667 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 18:35:40,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 18:35:40,672 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,675 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 18:35:40,675 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:35:40,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:35:40,675 - data.session - INFO - 数据库表初始化完成
2025-04-18 18:35:41,025 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 18:35:41,025 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 18:35:41,025 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 18:35:41,028 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 18:35:41,028 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 18:35:41,032 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 18:35:41,054 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:35:41,058 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:35:41,058 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:35:41,058 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:35:41,058 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:35:41,062 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:35:41,062 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:35:41,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:35:41,071 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 18:35:41,071 - sqlalchemy.engine.Engine - INFO - [generated in 0.00074s] (1, 1)
2025-04-18 18:35:41,075 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-18 18:35:41,075 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:35:41,079 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 18:35:41,079 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 18:38:34,487 - root - INFO - 应用程序关闭中...
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 18:38:34,487 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 18:38:34,487 - root - INFO - 任务调度器已停止
2025-04-18 18:38:34,487 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 18:38:34,487 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 18:38:34,487 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 18:38:34,492 - data.session - INFO - 数据库连接已关闭
2025-04-18 18:38:35,792 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 18:38:35,792 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 18:38:35,852 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 18:38:35,899 - data.session - INFO - 正在初始化数据库...
2025-04-18 18:38:35,933 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 18:38:35,956 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:38:35,956 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,960 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:38:35,960 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,960 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:38:35,960 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:38:35,960 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 18:38:35,960 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,964 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 18:38:35,964 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,964 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 18:38:35,964 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,964 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 18:38:35,964 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,968 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 18:38:35,968 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,968 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 18:38:35,968 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,968 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 18:38:35,968 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,968 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 18:38:35,968 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,972 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 18:38:35,972 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,972 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 18:38:35,972 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,972 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 18:38:35,972 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:38:35,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:38:35,977 - data.session - INFO - 数据库表初始化完成
2025-04-18 18:38:36,309 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 18:38:36,309 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 18:38:36,309 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 18:38:36,309 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 18:38:36,309 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 18:38:36,309 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 18:38:36,326 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:38:36,326 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:38:36,326 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:38:36,329 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:38:36,329 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:38:36,329 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:38:36,330 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:38:36,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:38:36,339 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 18:38:36,339 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1, 1)
2025-04-18 18:38:36,340 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-18 18:38:36,340 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:38:36,341 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 18:38:36,341 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 18:40:20,247 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-18 18:40:20,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,247 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:20,247 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:20,255 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,258 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:20,258 - sqlalchemy.engine.Engine - INFO - [cached since 0.006695s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:20,258 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,258 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:40:20,258 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:40:20,273 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,274 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:20,275 - sqlalchemy.engine.Engine - INFO - [cached since 0.02061s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:20,275 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:40:20,275 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1, datetime.datetime(2025, 4, 18, 18, 40, 20, 275344), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:40:20,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1, datetime.datetime(2025, 4, 18, 18, 40, 20, 292258), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,292 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - [cached since 0.04631s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('d0aee137-4afa-423a-b3eb-7f0a67577d84', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 40, 20, 292258), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 40, 20, 292258), datetime.datetime(2025, 4, 18, 18, 40, 20, 292258), 0)
2025-04-18 18:40:20,292 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('d0aee137-4afa-423a-b3eb-7f0a67577d84',)
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,307 - services.execution.task_scheduler - INFO - 工作线程 3 获取到任务: d0aee137-4afa-423a-b3eb-7f0a67577d84, 优先级: 1
2025-04-18 18:40:20,307 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0597秒
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - [cached since 0.004569s ago] ('d0aee137-4afa-423a-b3eb-7f0a67577d84',)
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - [cached since 0.06617s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:20,307 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (datetime.datetime(2025, 4, 18, 18, 40, 20, 307693), datetime.datetime(2025, 4, 18, 18, 40, 20, 307693), 'd0aee137-4afa-423a-b3eb-7f0a67577d84')
2025-04-18 18:40:20,324 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,326 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:20,326 - sqlalchemy.engine.Engine - INFO - [generated in 0.00180s] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 40, 20, 326033), 'd0aee137-4afa-423a-b3eb-7f0a67577d84')
2025-04-18 18:40:20,326 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,341 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:40:20,341 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,357 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:20,358 - sqlalchemy.engine.Engine - INFO - [generated in 0.00175s] ('3d1c4a01-828e-4e51-83f1-e4e05c6dd945', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd0aee137-4afa-423a-b3eb-7f0a67577d84', datetime.datetime(2025, 4, 18, 18, 40, 20, 341757), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 20, 356409), datetime.datetime(2025, 4, 18, 18, 40, 20, 357424), 0)
2025-04-18 18:40:20,360 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,374 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:20,375 - sqlalchemy.engine.Engine - INFO - [generated in 0.00118s] ('3d1c4a01-828e-4e51-83f1-e4e05c6dd945',)
2025-04-18 18:40:20,378 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:20,378 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:20,378 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:20,385 - sqlalchemy.engine.Engine - INFO - [generated in 0.00187s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 20, 378254), '3d1c4a01-828e-4e51-83f1-e4e05c6dd945')
2025-04-18 18:40:20,387 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,394 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:40:20,394 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:40:20,394 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:40:20,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,406 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:20,406 - sqlalchemy.engine.Engine - INFO - [cached since 0.05156s ago] ('f612f84b-1cca-488a-9baa-7e034c24b713', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd0aee137-4afa-423a-b3eb-7f0a67577d84', datetime.datetime(2025, 4, 18, 18, 40, 20, 394633), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 20, 406603), datetime.datetime(2025, 4, 18, 18, 40, 20, 406603), 0)
2025-04-18 18:40:20,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,418 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: f612f84b-1cca-488a-9baa-7e034c24b713
2025-04-18 18:40:20,418 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,418 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:20,424 - sqlalchemy.engine.Engine - INFO - [cached since 0.04869s ago] ('f612f84b-1cca-488a-9baa-7e034c24b713',)
2025-04-18 18:40:20,424 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:20,424 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:20,424 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:20,424 - sqlalchemy.engine.Engine - INFO - [cached since 0.04236s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 20, 424307), 'f612f84b-1cca-488a-9baa-7e034c24b713')
2025-04-18 18:40:20,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,444 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:40:20,445 - sqlalchemy.engine.Engine - INFO - [generated in 0.00104s] ('d0aee137-4afa-423a-b3eb-7f0a67577d84',)
2025-04-18 18:40:20,446 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: d0aee137-4afa-423a-b3eb-7f0a67577d84
2025-04-18 18:40:20,447 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,449 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:40:20,450 - services.execution.handlers.foundation - INFO - 任务 d0aee137-4afa-423a-b3eb-7f0a67577d84 打印: ['d0aee137-4afa-423a-b3eb-7f0a67577d84']
2025-04-18 18:40:20,452 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,457 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:20,458 - sqlalchemy.engine.Engine - INFO - [generated in 0.00196s] ('77e4e6ad-857d-49ac-ad66-1c003e08f06d', 1, '{"success": true, "message": "打印成功", "output": {"message": ["d0aee137-4afa-423a-b3eb-7f0a67577d84"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd0aee137-4afa-423a-b3eb-7f0a67577d84', datetime.datetime(2025, 4, 18, 18, 40, 20, 457172), datetime.datetime(2025, 4, 18, 18, 40, 20, 457172), 0)
2025-04-18 18:40:20,460 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,460 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,460 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:20,460 - sqlalchemy.engine.Engine - INFO - [cached since 0.09628s ago] ('f612f84b-1cca-488a-9baa-7e034c24b713',)
2025-04-18 18:40:20,460 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:20,460 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:20,474 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:20,475 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (datetime.datetime(2025, 4, 18, 18, 40, 20, 460627), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 20, 474160), 'f612f84b-1cca-488a-9baa-7e034c24b713')
2025-04-18 18:40:20,476 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,486 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:20,487 - sqlalchemy.engine.Engine - INFO - [cached since 0.03088s ago] ('e010a779-bb01-41e4-9d9b-130e5adeb2bf', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["d0aee137-4afa-423a-b3eb-7f0a67577d84"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd0aee137-4afa-423a-b3eb-7f0a67577d84', datetime.datetime(2025, 4, 18, 18, 40, 20, 486132), datetime.datetime(2025, 4, 18, 18, 40, 20, 486132), 0)
2025-04-18 18:40:20,488 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,496 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:20,496 - sqlalchemy.engine.Engine - INFO - [cached since 0.1214s ago] ('3d1c4a01-828e-4e51-83f1-e4e05c6dd945',)
2025-04-18 18:40:20,497 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:20,498 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:20,498 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:20,498 - sqlalchemy.engine.Engine - INFO - [cached since 0.0242s ago] (datetime.datetime(2025, 4, 18, 18, 40, 20, 498116), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 20, 498116), '3d1c4a01-828e-4e51-83f1-e4e05c6dd945')
2025-04-18 18:40:20,499 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,505 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:20,508 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:20,513 - sqlalchemy.engine.Engine - INFO - [generated in 0.00557s] (datetime.datetime(2025, 4, 18, 18, 40, 20, 505813), '任务执行成功', 1000, 179, datetime.datetime(2025, 4, 18, 18, 40, 20, 508822), 'd0aee137-4afa-423a-b3eb-7f0a67577d84')
2025-04-18 18:40:20,515 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:20,522 - services.execution.task_scheduler - INFO - 工作线程 3 完成任务: d0aee137-4afa-423a-b3eb-7f0a67577d84, 结果: True
2025-04-18 18:40:21,000 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,002 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:21,003 - sqlalchemy.engine.Engine - INFO - [cached since 0.7488s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:21,005 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:40:21,005 - sqlalchemy.engine.Engine - INFO - [cached since 0.7029s ago] ('906e244d-ae63-4b0b-adfd-1fc42a889051', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 40, 21, 4090), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 40, 21, 5097), datetime.datetime(2025, 4, 18, 18, 40, 21, 5097), 0)
2025-04-18 18:40:21,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,028 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:21,028 - sqlalchemy.engine.Engine - INFO - [cached since 0.7136s ago] ('906e244d-ae63-4b0b-adfd-1fc42a889051',)
2025-04-18 18:40:21,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,030 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:40:21,031 - services.execution.task_scheduler - INFO - 工作线程 3 获取到任务: 906e244d-ae63-4b0b-adfd-1fc42a889051, 优先级: 1
2025-04-18 18:40:21,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,032 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:21,032 - sqlalchemy.engine.Engine - INFO - [cached since 0.7175s ago] ('906e244d-ae63-4b0b-adfd-1fc42a889051',)
2025-04-18 18:40:21,033 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:21,033 - sqlalchemy.engine.Engine - INFO - [cached since 0.779s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:21,033 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:21,034 - sqlalchemy.engine.Engine - INFO - [cached since 0.713s ago] (datetime.datetime(2025, 4, 18, 18, 40, 21, 33849), datetime.datetime(2025, 4, 18, 18, 40, 21, 33849), '906e244d-ae63-4b0b-adfd-1fc42a889051')
2025-04-18 18:40:21,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,043 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:21,043 - sqlalchemy.engine.Engine - INFO - [cached since 0.7091s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 40, 21, 43683), '906e244d-ae63-4b0b-adfd-1fc42a889051')
2025-04-18 18:40:21,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,050 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:40:21,050 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,051 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:21,051 - sqlalchemy.engine.Engine - INFO - [cached since 0.695s ago] ('a1375c56-9075-412c-8f8d-22062e60a97e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '906e244d-ae63-4b0b-adfd-1fc42a889051', datetime.datetime(2025, 4, 18, 18, 40, 21, 50666), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 21, 51672), datetime.datetime(2025, 4, 18, 18, 40, 21, 51672), 0)
2025-04-18 18:40:21,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,063 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:21,064 - sqlalchemy.engine.Engine - INFO - [cached since 0.6893s ago] ('a1375c56-9075-412c-8f8d-22062e60a97e',)
2025-04-18 18:40:21,066 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:21,068 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:21,070 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:21,071 - sqlalchemy.engine.Engine - INFO - [cached since 0.6875s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 21, 70746), 'a1375c56-9075-412c-8f8d-22062e60a97e')
2025-04-18 18:40:21,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,081 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:40:21,082 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:40:21,083 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:40:21,087 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,089 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:21,091 - sqlalchemy.engine.Engine - INFO - [cached since 0.7347s ago] ('a230c08c-9f64-4156-90a1-056d70ff988f', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '906e244d-ae63-4b0b-adfd-1fc42a889051', datetime.datetime(2025, 4, 18, 18, 40, 21, 87413), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 21, 89009), datetime.datetime(2025, 4, 18, 18, 40, 21, 89009), 0)
2025-04-18 18:40:21,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,104 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a230c08c-9f64-4156-90a1-056d70ff988f
2025-04-18 18:40:21,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,107 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:21,108 - sqlalchemy.engine.Engine - INFO - [cached since 0.7336s ago] ('a230c08c-9f64-4156-90a1-056d70ff988f',)
2025-04-18 18:40:21,113 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:21,116 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:21,117 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:21,119 - sqlalchemy.engine.Engine - INFO - [cached since 0.735s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 21, 117474), 'a230c08c-9f64-4156-90a1-056d70ff988f')
2025-04-18 18:40:21,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,136 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:40:21,140 - sqlalchemy.engine.Engine - INFO - [cached since 0.6958s ago] ('906e244d-ae63-4b0b-adfd-1fc42a889051',)
2025-04-18 18:40:21,141 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 906e244d-ae63-4b0b-adfd-1fc42a889051
2025-04-18 18:40:21,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,144 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:40:21,145 - services.execution.handlers.foundation - INFO - 任务 906e244d-ae63-4b0b-adfd-1fc42a889051 打印: ['906e244d-ae63-4b0b-adfd-1fc42a889051']
2025-04-18 18:40:21,146 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,149 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:21,149 - sqlalchemy.engine.Engine - INFO - [cached since 0.694s ago] ('2777ce29-ea8a-4da9-bbe6-fa381c8bdfaa', 1, '{"success": true, "message": "打印成功", "output": {"message": ["906e244d-ae63-4b0b-adfd-1fc42a889051"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '906e244d-ae63-4b0b-adfd-1fc42a889051', datetime.datetime(2025, 4, 18, 18, 40, 21, 149588), datetime.datetime(2025, 4, 18, 18, 40, 21, 149588), 0)
2025-04-18 18:40:21,154 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,158 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:21,158 - sqlalchemy.engine.Engine - INFO - [cached since 0.7948s ago] ('a230c08c-9f64-4156-90a1-056d70ff988f',)
2025-04-18 18:40:21,158 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:21,158 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:21,173 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:21,174 - sqlalchemy.engine.Engine - INFO - [cached since 0.7004s ago] (datetime.datetime(2025, 4, 18, 18, 40, 21, 173580), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 21, 173580), 'a230c08c-9f64-4156-90a1-056d70ff988f')
2025-04-18 18:40:21,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,183 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,184 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:21,187 - sqlalchemy.engine.Engine - INFO - [cached since 0.732s ago] ('4d22ba64-2657-4c9b-87bc-15edef8c7ac0', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["906e244d-ae63-4b0b-adfd-1fc42a889051"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '906e244d-ae63-4b0b-adfd-1fc42a889051', datetime.datetime(2025, 4, 18, 18, 40, 21, 183693), datetime.datetime(2025, 4, 18, 18, 40, 21, 184694), 0)
2025-04-18 18:40:21,211 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,243 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:21,245 - sqlalchemy.engine.Engine - INFO - [cached since 0.8706s ago] ('a1375c56-9075-412c-8f8d-22062e60a97e',)
2025-04-18 18:40:21,251 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:21,258 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:21,260 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:21,262 - sqlalchemy.engine.Engine - INFO - [cached since 0.7888s ago] (datetime.datetime(2025, 4, 18, 18, 40, 21, 259443), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 21, 260442), 'a1375c56-9075-412c-8f8d-22062e60a97e')
2025-04-18 18:40:21,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,273 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:21,276 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:21,277 - sqlalchemy.engine.Engine - INFO - [cached since 0.7699s ago] (datetime.datetime(2025, 4, 18, 18, 40, 21, 273442), '任务执行成功', 1000, 230, datetime.datetime(2025, 4, 18, 18, 40, 21, 276526), '906e244d-ae63-4b0b-adfd-1fc42a889051')
2025-04-18 18:40:21,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:21,291 - services.execution.task_scheduler - INFO - 工作线程 3 完成任务: 906e244d-ae63-4b0b-adfd-1fc42a889051, 结果: True
2025-04-18 18:40:24,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,029 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:24,029 - sqlalchemy.engine.Engine - INFO - [cached since 3.776s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:24,031 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:40:24,031 - sqlalchemy.engine.Engine - INFO - [cached since 3.73s ago] ('9420ec39-1977-49e1-8b3b-32eee9765258', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 40, 24, 31240), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 40, 24, 31240), datetime.datetime(2025, 4, 18, 18, 40, 24, 31240), 0)
2025-04-18 18:40:24,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - [cached since 3.734s ago] ('9420ec39-1977-49e1-8b3b-32eee9765258',)
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,045 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:40:24,045 - services.execution.task_scheduler - INFO - 工作线程 3 获取到任务: 9420ec39-1977-49e1-8b3b-32eee9765258, 优先级: 1
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - [cached since 3.741s ago] ('9420ec39-1977-49e1-8b3b-32eee9765258',)
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - [cached since 3.803s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - [cached since 3.737s ago] (datetime.datetime(2025, 4, 18, 18, 40, 24, 45132), datetime.datetime(2025, 4, 18, 18, 40, 24, 45132), '9420ec39-1977-49e1-8b3b-32eee9765258')
2025-04-18 18:40:24,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,060 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:24,060 - sqlalchemy.engine.Engine - INFO - [cached since 3.737s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 40, 24, 60808), '9420ec39-1977-49e1-8b3b-32eee9765258')
2025-04-18 18:40:24,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,076 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:40:24,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,076 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:24,076 - sqlalchemy.engine.Engine - INFO - [cached since 3.723s ago] ('da190aae-c0e6-4ed6-990c-6083e600b4ea', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '9420ec39-1977-49e1-8b3b-32eee9765258', datetime.datetime(2025, 4, 18, 18, 40, 24, 76742), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 24, 76742), datetime.datetime(2025, 4, 18, 18, 40, 24, 76742), 0)
2025-04-18 18:40:24,076 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,076 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:24,076 - sqlalchemy.engine.Engine - INFO - [cached since 3.713s ago] ('da190aae-c0e6-4ed6-990c-6083e600b4ea',)
2025-04-18 18:40:24,076 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:24,076 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:24,076 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:24,092 - sqlalchemy.engine.Engine - INFO - [cached since 3.708s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 24, 76742), 'da190aae-c0e6-4ed6-990c-6083e600b4ea')
2025-04-18 18:40:24,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,092 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:40:24,092 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:40:24,092 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:40:24,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,092 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:24,092 - sqlalchemy.engine.Engine - INFO - [cached since 3.75s ago] ('2babffe0-589a-4416-b1db-4baccc154988', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '9420ec39-1977-49e1-8b3b-32eee9765258', datetime.datetime(2025, 4, 18, 18, 40, 24, 92597), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 24, 92597), datetime.datetime(2025, 4, 18, 18, 40, 24, 92597), 0)
2025-04-18 18:40:24,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,109 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2babffe0-589a-4416-b1db-4baccc154988
2025-04-18 18:40:24,109 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,109 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:24,109 - sqlalchemy.engine.Engine - INFO - [cached since 3.743s ago] ('2babffe0-589a-4416-b1db-4baccc154988',)
2025-04-18 18:40:24,109 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:24,109 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:24,109 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:24,109 - sqlalchemy.engine.Engine - INFO - [cached since 3.735s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 24, 109782), '2babffe0-589a-4416-b1db-4baccc154988')
2025-04-18 18:40:24,109 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,123 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,123 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:40:24,123 - sqlalchemy.engine.Engine - INFO - [cached since 3.684s ago] ('9420ec39-1977-49e1-8b3b-32eee9765258',)
2025-04-18 18:40:24,123 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 9420ec39-1977-49e1-8b3b-32eee9765258
2025-04-18 18:40:24,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,123 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:40:24,123 - services.execution.handlers.foundation - INFO - 任务 9420ec39-1977-49e1-8b3b-32eee9765258 打印: ['9420ec39-1977-49e1-8b3b-32eee9765258']
2025-04-18 18:40:24,123 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,123 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:24,123 - sqlalchemy.engine.Engine - INFO - [cached since 3.675s ago] ('670d6177-78aa-4c8e-b2e5-6fdad5c0972e', 1, '{"success": true, "message": "打印成功", "output": {"message": ["9420ec39-1977-49e1-8b3b-32eee9765258"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '9420ec39-1977-49e1-8b3b-32eee9765258', datetime.datetime(2025, 4, 18, 18, 40, 24, 123871), datetime.datetime(2025, 4, 18, 18, 40, 24, 123871), 0)
2025-04-18 18:40:24,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,141 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:24,141 - sqlalchemy.engine.Engine - INFO - [cached since 3.778s ago] ('2babffe0-589a-4416-b1db-4baccc154988',)
2025-04-18 18:40:24,155 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:24,155 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:24,155 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:24,155 - sqlalchemy.engine.Engine - INFO - [cached since 3.689s ago] (datetime.datetime(2025, 4, 18, 18, 40, 24, 155467), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 24, 155467), '2babffe0-589a-4416-b1db-4baccc154988')
2025-04-18 18:40:24,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,177 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:24,177 - sqlalchemy.engine.Engine - INFO - [cached since 3.73s ago] ('cbf13355-d365-445d-a0fe-00800df68a22', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["9420ec39-1977-49e1-8b3b-32eee9765258"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '9420ec39-1977-49e1-8b3b-32eee9765258', datetime.datetime(2025, 4, 18, 18, 40, 24, 177237), datetime.datetime(2025, 4, 18, 18, 40, 24, 177237), 0)
2025-04-18 18:40:24,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,198 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:24,203 - sqlalchemy.engine.Engine - INFO - [cached since 3.83s ago] ('da190aae-c0e6-4ed6-990c-6083e600b4ea',)
2025-04-18 18:40:24,203 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:24,203 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:24,203 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:24,203 - sqlalchemy.engine.Engine - INFO - [cached since 3.735s ago] (datetime.datetime(2025, 4, 18, 18, 40, 24, 203314), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 24, 203314), 'da190aae-c0e6-4ed6-990c-6083e600b4ea')
2025-04-18 18:40:24,203 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:24,219 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:24,219 - sqlalchemy.engine.Engine - INFO - [cached since 3.721s ago] (datetime.datetime(2025, 4, 18, 18, 40, 24, 219062), '任务执行成功', 1000, 158, datetime.datetime(2025, 4, 18, 18, 40, 24, 219062), '9420ec39-1977-49e1-8b3b-32eee9765258')
2025-04-18 18:40:24,219 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:24,234 - services.execution.task_scheduler - INFO - 工作线程 3 完成任务: 9420ec39-1977-49e1-8b3b-32eee9765258, 结果: True
2025-04-18 18:40:27,068 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,068 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:27,068 - sqlalchemy.engine.Engine - INFO - [cached since 6.816s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:27,068 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:40:27,068 - sqlalchemy.engine.Engine - INFO - [cached since 6.769s ago] ('5e1dd321-7b52-4517-af58-24e10f3649d1', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 40, 27, 68928), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 40, 27, 68928), datetime.datetime(2025, 4, 18, 18, 40, 27, 68928), 0)
2025-04-18 18:40:27,068 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - [cached since 6.776s ago] ('5e1dd321-7b52-4517-af58-24e10f3649d1',)
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,084 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:40:27,084 - services.execution.task_scheduler - INFO - 工作线程 3 获取到任务: 5e1dd321-7b52-4517-af58-24e10f3649d1, 优先级: 1
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - [cached since 6.781s ago] ('5e1dd321-7b52-4517-af58-24e10f3649d1',)
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - [cached since 6.843s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - [cached since 6.777s ago] (datetime.datetime(2025, 4, 18, 18, 40, 27, 84667), datetime.datetime(2025, 4, 18, 18, 40, 27, 84667), '5e1dd321-7b52-4517-af58-24e10f3649d1')
2025-04-18 18:40:27,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,100 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:27,100 - sqlalchemy.engine.Engine - INFO - [cached since 6.775s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 40, 27, 100585), '5e1dd321-7b52-4517-af58-24e10f3649d1')
2025-04-18 18:40:27,100 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,116 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - [cached since 6.762s ago] ('3ae72c36-1e9e-4805-9113-ee8630f2531c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5e1dd321-7b52-4517-af58-24e10f3649d1', datetime.datetime(2025, 4, 18, 18, 40, 27, 116434), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 27, 116434), datetime.datetime(2025, 4, 18, 18, 40, 27, 116434), 0)
2025-04-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - [cached since 6.752s ago] ('3ae72c36-1e9e-4805-9113-ee8630f2531c',)
2025-04-18 18:40:27,116 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:27,116 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - [cached since 6.744s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 27, 116434), '3ae72c36-1e9e-4805-9113-ee8630f2531c')
2025-04-18 18:40:27,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,132 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:40:27,132 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:40:27,132 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:40:27,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,132 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:27,132 - sqlalchemy.engine.Engine - INFO - [cached since 6.783s ago] ('fd9fe859-6284-456c-9d3e-0887b800439e', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5e1dd321-7b52-4517-af58-24e10f3649d1', datetime.datetime(2025, 4, 18, 18, 40, 27, 132312), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 27, 132312), datetime.datetime(2025, 4, 18, 18, 40, 27, 132312), 0)
2025-04-18 18:40:27,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,132 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: fd9fe859-6284-456c-9d3e-0887b800439e
2025-04-18 18:40:27,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - [cached since 6.774s ago] ('fd9fe859-6284-456c-9d3e-0887b800439e',)
2025-04-18 18:40:27,148 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:27,148 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - [cached since 6.767s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 27, 148387), 'fd9fe859-6284-456c-9d3e-0887b800439e')
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - [cached since 6.715s ago] ('5e1dd321-7b52-4517-af58-24e10f3649d1',)
2025-04-18 18:40:27,148 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 5e1dd321-7b52-4517-af58-24e10f3649d1
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,148 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:40:27,148 - services.execution.handlers.foundation - INFO - 任务 5e1dd321-7b52-4517-af58-24e10f3649d1 打印: ['5e1dd321-7b52-4517-af58-24e10f3649d1']
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:27,148 - sqlalchemy.engine.Engine - INFO - [cached since 6.707s ago] ('f2f553b4-621d-4442-bdef-fe784cf43798', 1, '{"success": true, "message": "打印成功", "output": {"message": ["5e1dd321-7b52-4517-af58-24e10f3649d1"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5e1dd321-7b52-4517-af58-24e10f3649d1', datetime.datetime(2025, 4, 18, 18, 40, 27, 148387), datetime.datetime(2025, 4, 18, 18, 40, 27, 148387), 0)
2025-04-18 18:40:27,164 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,164 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,164 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:27,164 - sqlalchemy.engine.Engine - INFO - [cached since 6.799s ago] ('fd9fe859-6284-456c-9d3e-0887b800439e',)
2025-04-18 18:40:27,164 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:27,164 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:27,164 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:27,164 - sqlalchemy.engine.Engine - INFO - [cached since 6.702s ago] (datetime.datetime(2025, 4, 18, 18, 40, 27, 164240), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 27, 164240), 'fd9fe859-6284-456c-9d3e-0887b800439e')
2025-04-18 18:40:27,164 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,179 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:27,179 - sqlalchemy.engine.Engine - INFO - [cached since 6.729s ago] ('a64f8d1a-e81e-43aa-b5f9-d08df57a28e3', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["5e1dd321-7b52-4517-af58-24e10f3649d1"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5e1dd321-7b52-4517-af58-24e10f3649d1', datetime.datetime(2025, 4, 18, 18, 40, 27, 179915), datetime.datetime(2025, 4, 18, 18, 40, 27, 179915), 0)
2025-04-18 18:40:27,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,179 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:27,179 - sqlalchemy.engine.Engine - INFO - [cached since 6.819s ago] ('3ae72c36-1e9e-4805-9113-ee8630f2531c',)
2025-04-18 18:40:27,179 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:27,195 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:27,195 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:27,195 - sqlalchemy.engine.Engine - INFO - [cached since 6.723s ago] (datetime.datetime(2025, 4, 18, 18, 40, 27, 195872), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 27, 195872), '3ae72c36-1e9e-4805-9113-ee8630f2531c')
2025-04-18 18:40:27,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:27,195 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:27,195 - sqlalchemy.engine.Engine - INFO - [cached since 6.702s ago] (datetime.datetime(2025, 4, 18, 18, 40, 27, 195872), '任务执行成功', 1000, 95, datetime.datetime(2025, 4, 18, 18, 40, 27, 195872), '5e1dd321-7b52-4517-af58-24e10f3649d1')
2025-04-18 18:40:27,213 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:27,213 - services.execution.task_scheduler - INFO - 工作线程 3 完成任务: 5e1dd321-7b52-4517-af58-24e10f3649d1, 结果: True
2025-04-18 18:40:30,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,096 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:30,096 - sqlalchemy.engine.Engine - INFO - [cached since 9.848s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:30,096 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:40:30,096 - sqlalchemy.engine.Engine - INFO - [cached since 9.808s ago] ('004bd2ae-b69d-4d75-a161-839385374549', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 40, 30, 96295), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 40, 30, 96295), datetime.datetime(2025, 4, 18, 18, 40, 30, 96295), 0)
2025-04-18 18:40:30,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - [cached since 9.817s ago] ('004bd2ae-b69d-4d75-a161-839385374549',)
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,128 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:40:30,128 - services.execution.task_scheduler - INFO - 工作线程 3 获取到任务: 004bd2ae-b69d-4d75-a161-839385374549, 优先级: 1
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - [cached since 9.824s ago] ('004bd2ae-b69d-4d75-a161-839385374549',)
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - [cached since 9.886s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - [cached since 9.821s ago] (datetime.datetime(2025, 4, 18, 18, 40, 30, 128338), datetime.datetime(2025, 4, 18, 18, 40, 30, 128338), '004bd2ae-b69d-4d75-a161-839385374549')
2025-04-18 18:40:30,128 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,144 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,144 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:30,144 - sqlalchemy.engine.Engine - INFO - [cached since 9.816s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 40, 30, 144061), '004bd2ae-b69d-4d75-a161-839385374549')
2025-04-18 18:40:30,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,144 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:40:30,144 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,144 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:30,144 - sqlalchemy.engine.Engine - INFO - [cached since 9.802s ago] ('417d72f3-8eab-480c-bfda-34f10808995d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '004bd2ae-b69d-4d75-a161-839385374549', datetime.datetime(2025, 4, 18, 18, 40, 30, 144061), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 30, 144061), datetime.datetime(2025, 4, 18, 18, 40, 30, 144061), 0)
2025-04-18 18:40:30,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,160 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:30,160 - sqlalchemy.engine.Engine - INFO - [cached since 9.791s ago] ('417d72f3-8eab-480c-bfda-34f10808995d',)
2025-04-18 18:40:30,160 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:30,160 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:30,160 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:30,160 - sqlalchemy.engine.Engine - INFO - [cached since 9.783s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 30, 160628), '417d72f3-8eab-480c-bfda-34f10808995d')
2025-04-18 18:40:30,160 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,175 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:40:30,175 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:40:30,175 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - [cached since 9.821s ago] ('7cec66dd-c4f0-4f96-81db-b87d758cd758', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '004bd2ae-b69d-4d75-a161-839385374549', datetime.datetime(2025, 4, 18, 18, 40, 30, 175546), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 30, 175546), datetime.datetime(2025, 4, 18, 18, 40, 30, 175546), 0)
2025-04-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,175 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 7cec66dd-c4f0-4f96-81db-b87d758cd758
2025-04-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - [cached since 9.81s ago] ('7cec66dd-c4f0-4f96-81db-b87d758cd758',)
2025-04-18 18:40:30,175 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:30,175 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - [cached since 9.804s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 30, 175546), '7cec66dd-c4f0-4f96-81db-b87d758cd758')
2025-04-18 18:40:30,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,191 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,191 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:40:30,191 - sqlalchemy.engine.Engine - INFO - [cached since 9.754s ago] ('004bd2ae-b69d-4d75-a161-839385374549',)
2025-04-18 18:40:30,191 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 004bd2ae-b69d-4d75-a161-839385374549
2025-04-18 18:40:30,191 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,191 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:40:30,191 - services.execution.handlers.foundation - INFO - 任务 004bd2ae-b69d-4d75-a161-839385374549 打印: ['004bd2ae-b69d-4d75-a161-839385374549']
2025-04-18 18:40:30,191 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,191 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:30,191 - sqlalchemy.engine.Engine - INFO - [cached since 9.744s ago] ('e97bc9d1-711a-416a-ad9e-774cf87aec0b', 1, '{"success": true, "message": "打印成功", "output": {"message": ["004bd2ae-b69d-4d75-a161-839385374549"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '004bd2ae-b69d-4d75-a161-839385374549', datetime.datetime(2025, 4, 18, 18, 40, 30, 191236), datetime.datetime(2025, 4, 18, 18, 40, 30, 191236), 0)
2025-04-18 18:40:30,191 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,207 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,207 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:30,207 - sqlalchemy.engine.Engine - INFO - [cached since 9.84s ago] ('7cec66dd-c4f0-4f96-81db-b87d758cd758',)
2025-04-18 18:40:30,207 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:30,207 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:30,223 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:30,223 - sqlalchemy.engine.Engine - INFO - [cached since 9.75s ago] (datetime.datetime(2025, 4, 18, 18, 40, 30, 223122), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 30, 223122), '7cec66dd-c4f0-4f96-81db-b87d758cd758')
2025-04-18 18:40:30,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,223 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,223 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:30,238 - sqlalchemy.engine.Engine - INFO - [cached since 9.783s ago] ('0608008c-9dd6-4090-8992-978547f3905a', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["004bd2ae-b69d-4d75-a161-839385374549"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '004bd2ae-b69d-4d75-a161-839385374549', datetime.datetime(2025, 4, 18, 18, 40, 30, 223122), datetime.datetime(2025, 4, 18, 18, 40, 30, 223122), 0)
2025-04-18 18:40:30,238 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,238 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:30,238 - sqlalchemy.engine.Engine - INFO - [cached since 9.879s ago] ('417d72f3-8eab-480c-bfda-34f10808995d',)
2025-04-18 18:40:30,254 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:30,254 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:30,254 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:30,254 - sqlalchemy.engine.Engine - INFO - [cached since 9.784s ago] (datetime.datetime(2025, 4, 18, 18, 40, 30, 254957), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 30, 254957), '417d72f3-8eab-480c-bfda-34f10808995d')
2025-04-18 18:40:30,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,254 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:30,270 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:30,270 - sqlalchemy.engine.Engine - INFO - [cached since 9.764s ago] (datetime.datetime(2025, 4, 18, 18, 40, 30, 254957), '任务执行成功', 1000, 110, datetime.datetime(2025, 4, 18, 18, 40, 30, 270631), '004bd2ae-b69d-4d75-a161-839385374549')
2025-04-18 18:40:30,270 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:30,270 - services.execution.task_scheduler - INFO - 工作线程 3 完成任务: 004bd2ae-b69d-4d75-a161-839385374549, 结果: True
2025-04-18 18:40:33,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,143 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:33,143 - sqlalchemy.engine.Engine - INFO - [cached since 12.89s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:33,143 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:40:33,143 - sqlalchemy.engine.Engine - INFO - [cached since 12.85s ago] ('a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 40, 33, 143384), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 40, 33, 143384), datetime.datetime(2025, 4, 18, 18, 40, 33, 143384), 0)
2025-04-18 18:40:33,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,159 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:33,159 - sqlalchemy.engine.Engine - INFO - [cached since 12.85s ago] ('a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8',)
2025-04-18 18:40:33,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,168 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:40:33,168 - services.execution.task_scheduler - INFO - 工作线程 3 获取到任务: a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8, 优先级: 1
2025-04-18 18:40:33,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,168 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:33,168 - sqlalchemy.engine.Engine - INFO - [cached since 12.86s ago] ('a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8',)
2025-04-18 18:40:33,168 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:33,174 - sqlalchemy.engine.Engine - INFO - [cached since 12.92s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:33,176 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:33,177 - sqlalchemy.engine.Engine - INFO - [cached since 12.86s ago] (datetime.datetime(2025, 4, 18, 18, 40, 33, 176923), datetime.datetime(2025, 4, 18, 18, 40, 33, 176923), 'a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8')
2025-04-18 18:40:33,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,178 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:33,178 - sqlalchemy.engine.Engine - INFO - [cached since 12.85s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 40, 33, 178202), 'a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8')
2025-04-18 18:40:33,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,192 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:40:33,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,192 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:33,192 - sqlalchemy.engine.Engine - INFO - [cached since 12.84s ago] ('d68de83e-1ddc-4fe2-841e-c2a810fc65f2', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8', datetime.datetime(2025, 4, 18, 18, 40, 33, 192929), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 33, 192929), datetime.datetime(2025, 4, 18, 18, 40, 33, 192929), 0)
2025-04-18 18:40:33,192 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,209 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,209 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:33,209 - sqlalchemy.engine.Engine - INFO - [cached since 12.84s ago] ('d68de83e-1ddc-4fe2-841e-c2a810fc65f2',)
2025-04-18 18:40:33,209 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:33,209 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:33,209 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:33,209 - sqlalchemy.engine.Engine - INFO - [cached since 12.84s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 33, 209042), 'd68de83e-1ddc-4fe2-841e-c2a810fc65f2')
2025-04-18 18:40:33,224 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,232 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:40:33,233 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:40:33,234 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:40:33,234 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,235 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:33,236 - sqlalchemy.engine.Engine - INFO - [cached since 12.88s ago] ('1eeb2d4f-4145-4849-a956-90608fcb3fa6', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8', datetime.datetime(2025, 4, 18, 18, 40, 33, 234074), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 33, 235566), datetime.datetime(2025, 4, 18, 18, 40, 33, 235566), 0)
2025-04-18 18:40:33,237 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,249 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1eeb2d4f-4145-4849-a956-90608fcb3fa6
2025-04-18 18:40:33,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,251 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:33,252 - sqlalchemy.engine.Engine - INFO - [cached since 12.88s ago] ('1eeb2d4f-4145-4849-a956-90608fcb3fa6',)
2025-04-18 18:40:33,252 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:33,255 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:33,257 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:33,259 - sqlalchemy.engine.Engine - INFO - [cached since 12.87s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 33, 257175), '1eeb2d4f-4145-4849-a956-90608fcb3fa6')
2025-04-18 18:40:33,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,265 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,271 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:40:33,271 - sqlalchemy.engine.Engine - INFO - [cached since 12.83s ago] ('a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8',)
2025-04-18 18:40:33,271 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8
2025-04-18 18:40:33,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,271 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:40:33,271 - services.execution.handlers.foundation - INFO - 任务 a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8 打印: ['a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8']
2025-04-18 18:40:33,271 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,271 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:33,271 - sqlalchemy.engine.Engine - INFO - [cached since 12.83s ago] ('b356855c-ae04-4e3b-ad88-ad93caa087d3', 1, '{"success": true, "message": "打印成功", "output": {"message": ["a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8', datetime.datetime(2025, 4, 18, 18, 40, 33, 271107), datetime.datetime(2025, 4, 18, 18, 40, 33, 271107), 0)
2025-04-18 18:40:33,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,286 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:33,286 - sqlalchemy.engine.Engine - INFO - [cached since 12.92s ago] ('1eeb2d4f-4145-4849-a956-90608fcb3fa6',)
2025-04-18 18:40:33,286 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:33,286 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:33,296 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:33,296 - sqlalchemy.engine.Engine - INFO - [cached since 12.82s ago] (datetime.datetime(2025, 4, 18, 18, 40, 33, 295947), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 33, 296453), '1eeb2d4f-4145-4849-a956-90608fcb3fa6')
2025-04-18 18:40:33,298 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,305 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,305 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:33,305 - sqlalchemy.engine.Engine - INFO - [cached since 12.85s ago] ('90a31986-245e-467a-94d5-c1a85082e15c', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8', datetime.datetime(2025, 4, 18, 18, 40, 33, 305544), datetime.datetime(2025, 4, 18, 18, 40, 33, 305544), 0)
2025-04-18 18:40:33,318 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,339 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:33,340 - sqlalchemy.engine.Engine - INFO - [cached since 12.96s ago] ('d68de83e-1ddc-4fe2-841e-c2a810fc65f2',)
2025-04-18 18:40:33,344 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:33,350 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:33,351 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:33,353 - sqlalchemy.engine.Engine - INFO - [cached since 12.88s ago] (datetime.datetime(2025, 4, 18, 18, 40, 33, 350057), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 33, 351199), 'd68de83e-1ddc-4fe2-841e-c2a810fc65f2')
2025-04-18 18:40:33,354 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:33,370 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:33,372 - sqlalchemy.engine.Engine - INFO - [cached since 12.86s ago] (datetime.datetime(2025, 4, 18, 18, 40, 33, 367881), '任务执行成功', 1000, 189, datetime.datetime(2025, 4, 18, 18, 40, 33, 370090), 'a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8')
2025-04-18 18:40:33,375 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:33,388 - services.execution.task_scheduler - INFO - 工作线程 3 完成任务: a4173e1e-2f6f-4651-9d7d-dd8d1395b1e8, 结果: True
2025-04-18 18:40:36,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,180 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:36,180 - sqlalchemy.engine.Engine - INFO - [cached since 15.93s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:36,180 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:40:36,180 - sqlalchemy.engine.Engine - INFO - [cached since 15.88s ago] ('4a7788ff-3e60-44b0-bfdf-1be3118997c1', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 40, 36, 180189), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 40, 36, 180189), datetime.datetime(2025, 4, 18, 18, 40, 36, 180189), 0)
2025-04-18 18:40:36,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,201 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,201 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:36,201 - sqlalchemy.engine.Engine - INFO - [cached since 15.89s ago] ('4a7788ff-3e60-44b0-bfdf-1be3118997c1',)
2025-04-18 18:40:36,203 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,203 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:40:36,203 - services.execution.task_scheduler - INFO - 工作线程 3 获取到任务: 4a7788ff-3e60-44b0-bfdf-1be3118997c1, 优先级: 1
2025-04-18 18:40:36,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,206 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:36,206 - sqlalchemy.engine.Engine - INFO - [cached since 15.89s ago] ('4a7788ff-3e60-44b0-bfdf-1be3118997c1',)
2025-04-18 18:40:36,206 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:36,206 - sqlalchemy.engine.Engine - INFO - [cached since 15.95s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:36,208 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:36,208 - sqlalchemy.engine.Engine - INFO - [cached since 15.89s ago] (datetime.datetime(2025, 4, 18, 18, 40, 36, 208015), datetime.datetime(2025, 4, 18, 18, 40, 36, 208015), '4a7788ff-3e60-44b0-bfdf-1be3118997c1')
2025-04-18 18:40:36,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,211 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,211 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:36,211 - sqlalchemy.engine.Engine - INFO - [cached since 15.88s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 40, 36, 211776), '4a7788ff-3e60-44b0-bfdf-1be3118997c1')
2025-04-18 18:40:36,211 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,227 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:40:36,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,229 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:36,229 - sqlalchemy.engine.Engine - INFO - [cached since 15.87s ago] ('f3a39754-0749-4a44-9778-3e5bb789259b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4a7788ff-3e60-44b0-bfdf-1be3118997c1', datetime.datetime(2025, 4, 18, 18, 40, 36, 229709), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 36, 229709), datetime.datetime(2025, 4, 18, 18, 40, 36, 229709), 0)
2025-04-18 18:40:36,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,229 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:36,229 - sqlalchemy.engine.Engine - INFO - [cached since 15.87s ago] ('f3a39754-0749-4a44-9778-3e5bb789259b',)
2025-04-18 18:40:36,229 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:36,229 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:36,229 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:36,244 - sqlalchemy.engine.Engine - INFO - [cached since 15.86s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 36, 229709), 'f3a39754-0749-4a44-9778-3e5bb789259b')
2025-04-18 18:40:36,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,245 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:40:36,245 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:40:36,245 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:40:36,245 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,245 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:40:36,245 - sqlalchemy.engine.Engine - INFO - [cached since 15.9s ago] ('8c03b2d0-2fd3-41ea-ad61-e3363adf42c2', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4a7788ff-3e60-44b0-bfdf-1be3118997c1', datetime.datetime(2025, 4, 18, 18, 40, 36, 245010), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 40, 36, 245010), datetime.datetime(2025, 4, 18, 18, 40, 36, 245010), 0)
2025-04-18 18:40:36,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,261 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 8c03b2d0-2fd3-41ea-ad61-e3363adf42c2
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - [cached since 15.89s ago] ('8c03b2d0-2fd3-41ea-ad61-e3363adf42c2',)
2025-04-18 18:40:36,261 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:36,261 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - [cached since 15.88s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 40, 36, 261158), '8c03b2d0-2fd3-41ea-ad61-e3363adf42c2')
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] ('4a7788ff-3e60-44b0-bfdf-1be3118997c1',)
2025-04-18 18:40:36,261 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 4a7788ff-3e60-44b0-bfdf-1be3118997c1
2025-04-18 18:40:36,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,275 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:40:36,275 - services.execution.handlers.foundation - INFO - 任务 4a7788ff-3e60-44b0-bfdf-1be3118997c1 打印: ['4a7788ff-3e60-44b0-bfdf-1be3118997c1']
2025-04-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - [cached since 15.82s ago] ('0dbad8b2-a8d3-499a-af5a-811a1a5836fd', 1, '{"success": true, "message": "打印成功", "output": {"message": ["4a7788ff-3e60-44b0-bfdf-1be3118997c1"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4a7788ff-3e60-44b0-bfdf-1be3118997c1', datetime.datetime(2025, 4, 18, 18, 40, 36, 275093), datetime.datetime(2025, 4, 18, 18, 40, 36, 275093), 0)
2025-04-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - [cached since 15.91s ago] ('8c03b2d0-2fd3-41ea-ad61-e3363adf42c2',)
2025-04-18 18:40:36,275 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:40:36,275 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - [cached since 15.81s ago] (datetime.datetime(2025, 4, 18, 18, 40, 36, 275093), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 36, 275093), '8c03b2d0-2fd3-41ea-ad61-e3363adf42c2')
2025-04-18 18:40:36,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,290 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:40:36,290 - sqlalchemy.engine.Engine - INFO - [cached since 15.84s ago] ('94900d0e-a5e8-477f-8afb-2d3dfdaf996e', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["4a7788ff-3e60-44b0-bfdf-1be3118997c1"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4a7788ff-3e60-44b0-bfdf-1be3118997c1', datetime.datetime(2025, 4, 18, 18, 40, 36, 290760), datetime.datetime(2025, 4, 18, 18, 40, 36, 290760), 0)
2025-04-18 18:40:36,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,290 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:40:36,290 - sqlalchemy.engine.Engine - INFO - [cached since 15.93s ago] ('f3a39754-0749-4a44-9778-3e5bb789259b',)
2025-04-18 18:40:36,306 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:40:36,307 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:40:36,307 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:40:36,307 - sqlalchemy.engine.Engine - INFO - [cached since 15.83s ago] (datetime.datetime(2025, 4, 18, 18, 40, 36, 307424), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 40, 36, 307929), 'f3a39754-0749-4a44-9778-3e5bb789259b')
2025-04-18 18:40:36,307 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,307 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:40:36,307 - sqlalchemy.engine.Engine - INFO - [cached since 15.81s ago] (datetime.datetime(2025, 4, 18, 18, 40, 36, 307929), '任务执行成功', 1000, 96, datetime.datetime(2025, 4, 18, 18, 40, 36, 307929), '4a7788ff-3e60-44b0-bfdf-1be3118997c1')
2025-04-18 18:40:36,307 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,323 - services.execution.task_scheduler - INFO - 工作线程 3 完成任务: 4a7788ff-3e60-44b0-bfdf-1be3118997c1, 结果: True
2025-04-18 18:40:36,768 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:40:36,768 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,768 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:36,784 - sqlalchemy.engine.Engine - INFO - [cached since 16.53s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:36,784 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:40:36,784 - sqlalchemy.engine.Engine - INFO - [generated in 0.00124s] (0, datetime.datetime(2025, 4, 18, 18, 40, 36, 784607), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:40:36,784 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,800 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:40:36,800 - sqlalchemy.engine.Engine - INFO - [cached since 16.55s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:36,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,800 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:40:36,815 - sqlalchemy.engine.Engine - INFO - [generated in 0.00237s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:40:36,832 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:40:36,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:40:36,837 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s
2025-04-18 18:40:36,837 - sqlalchemy.engine.Engine - INFO - [generated in 0.00175s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:40:36,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:40:36,848 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0805秒
2025-04-18 18:42:49,048 - root - INFO - 应用程序关闭中...
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 18:42:49,048 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 18:42:49,048 - root - INFO - 任务调度器已停止
2025-04-18 18:42:49,048 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 18:42:49,048 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 18:42:49,048 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 18:42:49,048 - data.session - INFO - 数据库连接已关闭
2025-04-18 18:42:50,302 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 18:42:50,302 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 18:42:50,374 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 18:42:50,422 - data.session - INFO - 正在初始化数据库...
2025-04-18 18:42:50,451 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 18:42:50,476 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,486 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 18:42:50,486 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,486 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 18:42:50,486 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,486 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 18:42:50,486 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,486 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 18:42:50,486 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:42:50,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:42:50,493 - data.session - INFO - 数据库表初始化完成
2025-04-18 18:42:50,825 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 18:42:50,825 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 18:42:50,825 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 18:42:50,825 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 18:42:50,825 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 18:42:50,825 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 18:42:50,840 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:42:50,840 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:42:50,840 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:42:50,840 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:42:50,840 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:42:50,840 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:42:50,840 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:42:50,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:42:50,855 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 18:42:50,855 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1, 1)
2025-04-18 18:42:50,855 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-18 18:42:50,855 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:42:50,855 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 18:42:50,855 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 18:42:53,591 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:42:53,599 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:42:53,602 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:42:53,602 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:42:53,602 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:42:53,616 - sqlalchemy.engine.Engine - INFO - [generated in 0.01365s] (0, datetime.datetime(2025, 4, 18, 18, 42, 53, 602076), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:42:53,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:42:53,633 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:42:53,633 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:42:53,649 - sqlalchemy.engine.Engine - INFO - [cached since 0.048s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:42:53,651 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:42:53,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:42:53,658 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:42:53,661 - sqlalchemy.engine.Engine - INFO - [generated in 0.00375s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:42:53,666 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:42:53,680 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:42:53,680 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s
2025-04-18 18:42:53,682 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:42:53,696 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:42:53,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:42:53,699 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.1086秒
2025-04-18 18:43:04,430 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:43:04,430 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:04,430 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:04,430 - sqlalchemy.engine.Engine - INFO - [cached since 10.84s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:04,430 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:43:04,430 - sqlalchemy.engine.Engine - INFO - [cached since 10.83s ago] (0, datetime.datetime(2025, 4, 18, 18, 43, 4, 430985), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:43:04,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - [cached since 10.84s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - [cached since 10.79s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s
2025-04-18 18:43:04,444 - sqlalchemy.engine.Engine - INFO - [cached since 10.77s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:04,461 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:04,461 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:04,461 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0303秒
2025-04-18 18:43:09,027 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - [cached since 15.43s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - [cached since 15.43s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,027 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:43:09,027 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - [cached since 15.44s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1, datetime.datetime(2025, 4, 18, 18, 43, 9, 27836), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:43:09,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,046 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,046 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:43:09,046 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (1, datetime.datetime(2025, 4, 18, 18, 43, 9, 46218), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:43:09,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,046 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:43:09,046 - services.task_edit_service - ERROR - 运行任务失败: 'ChunkedIteratorResult' object has no attribute 'get'
2025-04-18 18:43:09,046 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 500 耗时: 0.0184秒
2025-04-18 18:43:09,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,826 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:09,826 - sqlalchemy.engine.Engine - INFO - [cached since 16.23s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:09,826 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:09,826 - sqlalchemy.engine.Engine - INFO - [generated in 0.00257s] ('0246565f-e370-4aa1-bc49-4aec91955fe8', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 9, 826107), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 9, 826107), datetime.datetime(2025, 4, 18, 18, 43, 9, 826107), 0)
2025-04-18 18:43:09,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,849 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,856 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:09,856 - sqlalchemy.engine.Engine - INFO - [generated in 0.00116s] ('0246565f-e370-4aa1-bc49-4aec91955fe8',)
2025-04-18 18:43:09,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,856 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:09,856 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 0246565f-e370-4aa1-bc49-4aec91955fe8, 优先级: 1
2025-04-18 18:43:09,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,872 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:09,873 - sqlalchemy.engine.Engine - INFO - [cached since 0.01433s ago] ('0246565f-e370-4aa1-bc49-4aec91955fe8',)
2025-04-18 18:43:09,873 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:09,873 - sqlalchemy.engine.Engine - INFO - [cached since 16.28s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:09,873 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:09,873 - sqlalchemy.engine.Engine - INFO - [generated in 0.00293s] (datetime.datetime(2025, 4, 18, 18, 43, 9, 873361), datetime.datetime(2025, 4, 18, 18, 43, 9, 873361), '0246565f-e370-4aa1-bc49-4aec91955fe8')
2025-04-18 18:43:09,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,898 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,902 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:09,903 - sqlalchemy.engine.Engine - INFO - [generated in 0.00074s] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 9, 902689), '0246565f-e370-4aa1-bc49-4aec91955fe8')
2025-04-18 18:43:09,905 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,915 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:09,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,923 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:09,925 - sqlalchemy.engine.Engine - INFO - [generated in 0.00331s] ('c90f6729-40b3-429e-8f9c-2f7fd13baa48', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0246565f-e370-4aa1-bc49-4aec91955fe8', datetime.datetime(2025, 4, 18, 18, 43, 9, 918266), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 9, 923266), datetime.datetime(2025, 4, 18, 18, 43, 9, 923266), 0)
2025-04-18 18:43:09,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,937 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,938 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:09,938 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('c90f6729-40b3-429e-8f9c-2f7fd13baa48',)
2025-04-18 18:43:09,939 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:09,940 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:09,940 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:09,940 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 9, 940613), 'c90f6729-40b3-429e-8f9c-2f7fd13baa48')
2025-04-18 18:43:09,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,947 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:09,947 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:09,947 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:09,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,949 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:09,949 - sqlalchemy.engine.Engine - INFO - [cached since 0.02617s ago] ('73088c2e-081c-4f4f-a334-52dd3639c1d7', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0246565f-e370-4aa1-bc49-4aec91955fe8', datetime.datetime(2025, 4, 18, 18, 43, 9, 947947), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 9, 949131), datetime.datetime(2025, 4, 18, 18, 43, 9, 949131), 0)
2025-04-18 18:43:09,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,955 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 73088c2e-081c-4f4f-a334-52dd3639c1d7
2025-04-18 18:43:09,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,956 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:09,956 - sqlalchemy.engine.Engine - INFO - [cached since 0.0184s ago] ('73088c2e-081c-4f4f-a334-52dd3639c1d7',)
2025-04-18 18:43:09,957 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:09,957 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:09,957 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:09,957 - sqlalchemy.engine.Engine - INFO - [cached since 0.01732s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 9, 957233), '73088c2e-081c-4f4f-a334-52dd3639c1d7')
2025-04-18 18:43:09,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,966 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,967 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:09,967 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('0246565f-e370-4aa1-bc49-4aec91955fe8',)
2025-04-18 18:43:09,968 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 0246565f-e370-4aa1-bc49-4aec91955fe8
2025-04-18 18:43:09,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,969 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:09,969 - services.execution.handlers.foundation - INFO - 任务 0246565f-e370-4aa1-bc49-4aec91955fe8 打印: ['0246565f-e370-4aa1-bc49-4aec91955fe8']
2025-04-18 18:43:09,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,970 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:09,970 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('8b775271-9ba4-451a-b10e-5788bb663d97', 1, '{"success": true, "message": "打印成功", "output": {"message": ["0246565f-e370-4aa1-bc49-4aec91955fe8"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0246565f-e370-4aa1-bc49-4aec91955fe8', datetime.datetime(2025, 4, 18, 18, 43, 9, 970276), datetime.datetime(2025, 4, 18, 18, 43, 9, 970276), 0)
2025-04-18 18:43:09,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,977 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,977 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:09,977 - sqlalchemy.engine.Engine - INFO - [cached since 0.03939s ago] ('73088c2e-081c-4f4f-a334-52dd3639c1d7',)
2025-04-18 18:43:09,978 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:09,978 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:09,978 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:09,978 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (datetime.datetime(2025, 4, 18, 18, 43, 9, 978784), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 9, 978784), '73088c2e-081c-4f4f-a334-52dd3639c1d7')
2025-04-18 18:43:09,980 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,985 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:09,986 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:09,986 - sqlalchemy.engine.Engine - INFO - [cached since 0.01663s ago] ('00f9f41d-7867-4d43-a262-30280f0937de', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["0246565f-e370-4aa1-bc49-4aec91955fe8"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0246565f-e370-4aa1-bc49-4aec91955fe8', datetime.datetime(2025, 4, 18, 18, 43, 9, 986876), datetime.datetime(2025, 4, 18, 18, 43, 9, 986876), 0)
2025-04-18 18:43:09,987 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:09,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:10,000 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:10,000 - sqlalchemy.engine.Engine - INFO - [cached since 0.06292s ago] ('c90f6729-40b3-429e-8f9c-2f7fd13baa48',)
2025-04-18 18:43:10,001 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:10,002 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:10,002 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:10,002 - sqlalchemy.engine.Engine - INFO - [cached since 0.02392s ago] (datetime.datetime(2025, 4, 18, 18, 43, 10, 2796), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 10, 2796), 'c90f6729-40b3-429e-8f9c-2f7fd13baa48')
2025-04-18 18:43:10,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:10,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:10,011 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:10,011 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (datetime.datetime(2025, 4, 18, 18, 43, 10, 10583), '任务执行成功', 1000, 112, datetime.datetime(2025, 4, 18, 18, 43, 10, 11586), '0246565f-e370-4aa1-bc49-4aec91955fe8')
2025-04-18 18:43:10,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:10,021 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 0246565f-e370-4aa1-bc49-4aec91955fe8, 结果: True
2025-04-18 18:43:12,852 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,852 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:12,852 - sqlalchemy.engine.Engine - INFO - [cached since 19.25s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:12,852 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:12,857 - sqlalchemy.engine.Engine - INFO - [cached since 3.024s ago] ('5b261acf-8843-4f4f-9329-aa7a96eeb311', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 12, 852987), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 12, 852987), datetime.datetime(2025, 4, 18, 18, 43, 12, 852987), 0)
2025-04-18 18:43:12,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,882 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:12,884 - sqlalchemy.engine.Engine - INFO - [cached since 3.026s ago] ('5b261acf-8843-4f4f-9329-aa7a96eeb311',)
2025-04-18 18:43:12,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,890 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:12,890 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 5b261acf-8843-4f4f-9329-aa7a96eeb311, 优先级: 1
2025-04-18 18:43:12,894 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,898 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:12,898 - sqlalchemy.engine.Engine - INFO - [cached since 3.041s ago] ('5b261acf-8843-4f4f-9329-aa7a96eeb311',)
2025-04-18 18:43:12,902 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:12,906 - sqlalchemy.engine.Engine - INFO - [cached since 19.31s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:12,906 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:12,911 - sqlalchemy.engine.Engine - INFO - [cached since 3.032s ago] (datetime.datetime(2025, 4, 18, 18, 43, 12, 906987), datetime.datetime(2025, 4, 18, 18, 43, 12, 906987), '5b261acf-8843-4f4f-9329-aa7a96eeb311')
2025-04-18 18:43:12,915 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,925 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,925 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:12,925 - sqlalchemy.engine.Engine - INFO - [cached since 3.024s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 12, 925244), '5b261acf-8843-4f4f-9329-aa7a96eeb311')
2025-04-18 18:43:12,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,932 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:12,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,933 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:12,933 - sqlalchemy.engine.Engine - INFO - [cached since 3.011s ago] ('73d772da-a5ab-40bf-9c81-7b8206fe602b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5b261acf-8843-4f4f-9329-aa7a96eeb311', datetime.datetime(2025, 4, 18, 18, 43, 12, 932836), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 12, 933839), datetime.datetime(2025, 4, 18, 18, 43, 12, 933839), 0)
2025-04-18 18:43:12,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,942 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:12,942 - sqlalchemy.engine.Engine - INFO - [cached since 3.005s ago] ('73d772da-a5ab-40bf-9c81-7b8206fe602b',)
2025-04-18 18:43:12,943 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:12,943 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:12,943 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:12,943 - sqlalchemy.engine.Engine - INFO - [cached since 3.004s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 12, 943504), '73d772da-a5ab-40bf-9c81-7b8206fe602b')
2025-04-18 18:43:12,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,950 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:12,950 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:12,950 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:12,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,950 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:12,950 - sqlalchemy.engine.Engine - INFO - [cached since 3.031s ago] ('68b70559-540d-4d25-844f-3bc15bb58a25', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5b261acf-8843-4f4f-9329-aa7a96eeb311', datetime.datetime(2025, 4, 18, 18, 43, 12, 950679), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 12, 950679), datetime.datetime(2025, 4, 18, 18, 43, 12, 950679), 0)
2025-04-18 18:43:12,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,960 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 68b70559-540d-4d25-844f-3bc15bb58a25
2025-04-18 18:43:12,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,960 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:12,960 - sqlalchemy.engine.Engine - INFO - [cached since 3.024s ago] ('68b70559-540d-4d25-844f-3bc15bb58a25',)
2025-04-18 18:43:12,963 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:12,963 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:12,963 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:12,963 - sqlalchemy.engine.Engine - INFO - [cached since 3.024s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 12, 963396), '68b70559-540d-4d25-844f-3bc15bb58a25')
2025-04-18 18:43:12,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,971 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:12,971 - sqlalchemy.engine.Engine - INFO - [cached since 3.005s ago] ('5b261acf-8843-4f4f-9329-aa7a96eeb311',)
2025-04-18 18:43:12,971 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 5b261acf-8843-4f4f-9329-aa7a96eeb311
2025-04-18 18:43:12,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,971 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:12,971 - services.execution.handlers.foundation - INFO - 任务 5b261acf-8843-4f4f-9329-aa7a96eeb311 打印: ['5b261acf-8843-4f4f-9329-aa7a96eeb311']
2025-04-18 18:43:12,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,971 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:12,971 - sqlalchemy.engine.Engine - INFO - [cached since 3.005s ago] ('8dd8d80e-b558-4067-94e3-c3cd60346e68', 1, '{"success": true, "message": "打印成功", "output": {"message": ["5b261acf-8843-4f4f-9329-aa7a96eeb311"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5b261acf-8843-4f4f-9329-aa7a96eeb311', datetime.datetime(2025, 4, 18, 18, 43, 12, 971816), datetime.datetime(2025, 4, 18, 18, 43, 12, 971816), 0)
2025-04-18 18:43:12,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,980 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:12,980 - sqlalchemy.engine.Engine - INFO - [cached since 3.045s ago] ('68b70559-540d-4d25-844f-3bc15bb58a25',)
2025-04-18 18:43:12,984 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:12,984 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:12,984 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:12,984 - sqlalchemy.engine.Engine - INFO - [cached since 3.006s ago] (datetime.datetime(2025, 4, 18, 18, 43, 12, 984133), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 12, 984133), '68b70559-540d-4d25-844f-3bc15bb58a25')
2025-04-18 18:43:12,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,988 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:12,988 - sqlalchemy.engine.Engine - INFO - [cached since 3.022s ago] ('43f3e34f-7015-43dd-a968-bb0eba9dd148', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["5b261acf-8843-4f4f-9329-aa7a96eeb311"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5b261acf-8843-4f4f-9329-aa7a96eeb311', datetime.datetime(2025, 4, 18, 18, 43, 12, 988607), datetime.datetime(2025, 4, 18, 18, 43, 12, 988607), 0)
2025-04-18 18:43:12,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:12,997 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:12,997 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:12,997 - sqlalchemy.engine.Engine - INFO - [cached since 3.062s ago] ('73d772da-a5ab-40bf-9c81-7b8206fe602b',)
2025-04-18 18:43:13,001 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:13,001 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:13,001 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:13,001 - sqlalchemy.engine.Engine - INFO - [cached since 3.023s ago] (datetime.datetime(2025, 4, 18, 18, 43, 13, 1633), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 13, 1633), '73d772da-a5ab-40bf-9c81-7b8206fe602b')
2025-04-18 18:43:13,001 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:13,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:13,010 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:13,010 - sqlalchemy.engine.Engine - INFO - [cached since 2.999s ago] (datetime.datetime(2025, 4, 18, 18, 43, 13, 10031), '任务执行成功', 1000, 84, datetime.datetime(2025, 4, 18, 18, 43, 13, 10031), '5b261acf-8843-4f4f-9329-aa7a96eeb311')
2025-04-18 18:43:13,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:13,014 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 5b261acf-8843-4f4f-9329-aa7a96eeb311, 结果: True
2025-04-18 18:43:15,898 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,899 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:15,899 - sqlalchemy.engine.Engine - INFO - [cached since 22.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:15,899 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:15,899 - sqlalchemy.engine.Engine - INFO - [cached since 6.068s ago] ('49ee702c-853f-4e7a-8c11-67cc78d08106', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 15, 899425), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 15, 899425), datetime.datetime(2025, 4, 18, 18, 43, 15, 899425), 0)
2025-04-18 18:43:15,902 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,911 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:15,911 - sqlalchemy.engine.Engine - INFO - [cached since 6.055s ago] ('49ee702c-853f-4e7a-8c11-67cc78d08106',)
2025-04-18 18:43:15,914 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,915 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:15,915 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 49ee702c-853f-4e7a-8c11-67cc78d08106, 优先级: 1
2025-04-18 18:43:15,915 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,915 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:15,915 - sqlalchemy.engine.Engine - INFO - [cached since 6.058s ago] ('49ee702c-853f-4e7a-8c11-67cc78d08106',)
2025-04-18 18:43:15,915 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:15,915 - sqlalchemy.engine.Engine - INFO - [cached since 22.32s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:15,919 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:15,919 - sqlalchemy.engine.Engine - INFO - [cached since 6.037s ago] (datetime.datetime(2025, 4, 18, 18, 43, 15, 919257), datetime.datetime(2025, 4, 18, 18, 43, 15, 919257), '49ee702c-853f-4e7a-8c11-67cc78d08106')
2025-04-18 18:43:15,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,927 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:15,927 - sqlalchemy.engine.Engine - INFO - [cached since 6.026s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 15, 927442), '49ee702c-853f-4e7a-8c11-67cc78d08106')
2025-04-18 18:43:15,927 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,931 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:15,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,935 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:15,935 - sqlalchemy.engine.Engine - INFO - [cached since 6.014s ago] ('248978e9-bb7b-4d42-8330-33c8b4c23c7c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '49ee702c-853f-4e7a-8c11-67cc78d08106', datetime.datetime(2025, 4, 18, 18, 43, 15, 935964), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 15, 935964), datetime.datetime(2025, 4, 18, 18, 43, 15, 935964), 0)
2025-04-18 18:43:15,935 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,944 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:15,945 - sqlalchemy.engine.Engine - INFO - [cached since 6.007s ago] ('248978e9-bb7b-4d42-8330-33c8b4c23c7c',)
2025-04-18 18:43:15,945 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:15,945 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:15,946 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:15,946 - sqlalchemy.engine.Engine - INFO - [cached since 6.006s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 15, 946151), '248978e9-bb7b-4d42-8330-33c8b4c23c7c')
2025-04-18 18:43:15,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,952 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:15,952 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:15,952 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:15,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,953 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:15,954 - sqlalchemy.engine.Engine - INFO - [cached since 6.031s ago] ('af4287bf-6b3b-46cb-aad6-2749564ce29c', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '49ee702c-853f-4e7a-8c11-67cc78d08106', datetime.datetime(2025, 4, 18, 18, 43, 15, 952788), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 15, 953967), datetime.datetime(2025, 4, 18, 18, 43, 15, 953967), 0)
2025-04-18 18:43:15,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,960 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: af4287bf-6b3b-46cb-aad6-2749564ce29c
2025-04-18 18:43:15,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,960 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:15,960 - sqlalchemy.engine.Engine - INFO - [cached since 6.025s ago] ('af4287bf-6b3b-46cb-aad6-2749564ce29c',)
2025-04-18 18:43:15,960 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:15,964 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:15,964 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:15,964 - sqlalchemy.engine.Engine - INFO - [cached since 6.025s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 15, 964417), 'af4287bf-6b3b-46cb-aad6-2749564ce29c')
2025-04-18 18:43:15,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,972 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,972 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:15,972 - sqlalchemy.engine.Engine - INFO - [cached since 6.006s ago] ('49ee702c-853f-4e7a-8c11-67cc78d08106',)
2025-04-18 18:43:15,972 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 49ee702c-853f-4e7a-8c11-67cc78d08106
2025-04-18 18:43:15,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,972 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:15,972 - services.execution.handlers.foundation - INFO - 任务 49ee702c-853f-4e7a-8c11-67cc78d08106 打印: ['49ee702c-853f-4e7a-8c11-67cc78d08106']
2025-04-18 18:43:15,972 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,976 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:15,976 - sqlalchemy.engine.Engine - INFO - [cached since 6.007s ago] ('f20e74e6-e14b-46c2-b956-5e2085f307ab', 1, '{"success": true, "message": "打印成功", "output": {"message": ["49ee702c-853f-4e7a-8c11-67cc78d08106"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '49ee702c-853f-4e7a-8c11-67cc78d08106', datetime.datetime(2025, 4, 18, 18, 43, 15, 976712), datetime.datetime(2025, 4, 18, 18, 43, 15, 976712), 0)
2025-04-18 18:43:15,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,984 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:15,984 - sqlalchemy.engine.Engine - INFO - [cached since 6.048s ago] ('af4287bf-6b3b-46cb-aad6-2749564ce29c',)
2025-04-18 18:43:15,984 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:15,984 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:15,984 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:15,988 - sqlalchemy.engine.Engine - INFO - [cached since 6.01s ago] (datetime.datetime(2025, 4, 18, 18, 43, 15, 984899), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 15, 984899), 'af4287bf-6b3b-46cb-aad6-2749564ce29c')
2025-04-18 18:43:15,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:15,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:15,997 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:15,997 - sqlalchemy.engine.Engine - INFO - [cached since 6.028s ago] ('a98d1cb5-9aa6-4926-88dd-e58d72027407', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["49ee702c-853f-4e7a-8c11-67cc78d08106"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '49ee702c-853f-4e7a-8c11-67cc78d08106', datetime.datetime(2025, 4, 18, 18, 43, 15, 997325), datetime.datetime(2025, 4, 18, 18, 43, 15, 997325), 0)
2025-04-18 18:43:15,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:16,005 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:16,005 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:16,005 - sqlalchemy.engine.Engine - INFO - [cached since 6.069s ago] ('248978e9-bb7b-4d42-8330-33c8b4c23c7c',)
2025-04-18 18:43:16,005 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:16,005 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:16,005 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:16,005 - sqlalchemy.engine.Engine - INFO - [cached since 6.03s ago] (datetime.datetime(2025, 4, 18, 18, 43, 16, 5713), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 16, 5713), '248978e9-bb7b-4d42-8330-33c8b4c23c7c')
2025-04-18 18:43:16,009 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:16,013 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:16,018 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:16,022 - sqlalchemy.engine.Engine - INFO - [cached since 6.01s ago] (datetime.datetime(2025, 4, 18, 18, 43, 16, 13767), '任务执行成功', 1000, 86, datetime.datetime(2025, 4, 18, 18, 43, 16, 18076), '49ee702c-853f-4e7a-8c11-67cc78d08106')
2025-04-18 18:43:16,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:16,030 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 49ee702c-853f-4e7a-8c11-67cc78d08106, 结果: True
2025-04-18 18:43:18,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:18,939 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:18,939 - sqlalchemy.engine.Engine - INFO - [cached since 25.34s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:18,939 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:18,943 - sqlalchemy.engine.Engine - INFO - [cached since 9.112s ago] ('3022643a-2b5a-4b09-9110-59cee2ad0f3d', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 18, 939052), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 18, 939052), datetime.datetime(2025, 4, 18, 18, 43, 18, 939052), 0)
2025-04-18 18:43:18,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:18,964 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:18,968 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:18,972 - sqlalchemy.engine.Engine - INFO - [cached since 9.115s ago] ('3022643a-2b5a-4b09-9110-59cee2ad0f3d',)
2025-04-18 18:43:18,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:18,976 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:18,976 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 3022643a-2b5a-4b09-9110-59cee2ad0f3d, 优先级: 1
2025-04-18 18:43:18,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:18,980 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:18,985 - sqlalchemy.engine.Engine - INFO - [cached since 9.129s ago] ('3022643a-2b5a-4b09-9110-59cee2ad0f3d',)
2025-04-18 18:43:18,989 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:18,989 - sqlalchemy.engine.Engine - INFO - [cached since 25.39s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:18,990 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:18,990 - sqlalchemy.engine.Engine - INFO - [cached since 9.109s ago] (datetime.datetime(2025, 4, 18, 18, 43, 18, 990456), datetime.datetime(2025, 4, 18, 18, 43, 18, 990456), '3022643a-2b5a-4b09-9110-59cee2ad0f3d')
2025-04-18 18:43:18,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:18,997 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:18,997 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:18,997 - sqlalchemy.engine.Engine - INFO - [cached since 9.097s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 18, 997544), '3022643a-2b5a-4b09-9110-59cee2ad0f3d')
2025-04-18 18:43:18,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,006 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:19,006 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,006 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:19,006 - sqlalchemy.engine.Engine - INFO - [cached since 9.086s ago] ('bd293081-e31d-4ec8-be0a-dff575e05221', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3022643a-2b5a-4b09-9110-59cee2ad0f3d', datetime.datetime(2025, 4, 18, 18, 43, 19, 6400), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 19, 6400), datetime.datetime(2025, 4, 18, 18, 43, 19, 6400), 0)
2025-04-18 18:43:19,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,017 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:19,017 - sqlalchemy.engine.Engine - INFO - [cached since 9.08s ago] ('bd293081-e31d-4ec8-be0a-dff575e05221',)
2025-04-18 18:43:19,019 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:19,019 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:19,019 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:19,019 - sqlalchemy.engine.Engine - INFO - [cached since 9.079s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 19, 19256), 'bd293081-e31d-4ec8-be0a-dff575e05221')
2025-04-18 18:43:19,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,023 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:19,023 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:19,023 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:19,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,027 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:19,027 - sqlalchemy.engine.Engine - INFO - [cached since 9.105s ago] ('2c011c13-7f1d-4e7f-b417-f33e5cb67450', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3022643a-2b5a-4b09-9110-59cee2ad0f3d', datetime.datetime(2025, 4, 18, 18, 43, 19, 23519), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 19, 27544), datetime.datetime(2025, 4, 18, 18, 43, 19, 27544), 0)
2025-04-18 18:43:19,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,035 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2c011c13-7f1d-4e7f-b417-f33e5cb67450
2025-04-18 18:43:19,036 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,036 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:19,038 - sqlalchemy.engine.Engine - INFO - [cached since 9.1s ago] ('2c011c13-7f1d-4e7f-b417-f33e5cb67450',)
2025-04-18 18:43:19,040 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:19,040 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:19,040 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:19,040 - sqlalchemy.engine.Engine - INFO - [cached since 9.101s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 19, 40353), '2c011c13-7f1d-4e7f-b417-f33e5cb67450')
2025-04-18 18:43:19,040 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,044 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:19,044 - sqlalchemy.engine.Engine - INFO - [cached since 9.081s ago] ('3022643a-2b5a-4b09-9110-59cee2ad0f3d',)
2025-04-18 18:43:19,049 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 3022643a-2b5a-4b09-9110-59cee2ad0f3d
2025-04-18 18:43:19,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,049 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:19,049 - services.execution.handlers.foundation - INFO - 任务 3022643a-2b5a-4b09-9110-59cee2ad0f3d 打印: ['3022643a-2b5a-4b09-9110-59cee2ad0f3d']
2025-04-18 18:43:19,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,049 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:19,049 - sqlalchemy.engine.Engine - INFO - [cached since 9.081s ago] ('c44278cf-df62-4736-816c-e385f49eb7bf', 1, '{"success": true, "message": "打印成功", "output": {"message": ["3022643a-2b5a-4b09-9110-59cee2ad0f3d"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3022643a-2b5a-4b09-9110-59cee2ad0f3d', datetime.datetime(2025, 4, 18, 18, 43, 19, 49239), datetime.datetime(2025, 4, 18, 18, 43, 19, 49239), 0)
2025-04-18 18:43:19,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,057 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:19,057 - sqlalchemy.engine.Engine - INFO - [cached since 9.121s ago] ('2c011c13-7f1d-4e7f-b417-f33e5cb67450',)
2025-04-18 18:43:19,057 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:19,057 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:19,057 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:19,057 - sqlalchemy.engine.Engine - INFO - [cached since 9.082s ago] (datetime.datetime(2025, 4, 18, 18, 43, 19, 57539), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 19, 57539), '2c011c13-7f1d-4e7f-b417-f33e5cb67450')
2025-04-18 18:43:19,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,066 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,066 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:19,066 - sqlalchemy.engine.Engine - INFO - [cached since 9.099s ago] ('4aa6682c-ef27-412e-a388-a2d6f5e6b038', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["3022643a-2b5a-4b09-9110-59cee2ad0f3d"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3022643a-2b5a-4b09-9110-59cee2ad0f3d', datetime.datetime(2025, 4, 18, 18, 43, 19, 66068), datetime.datetime(2025, 4, 18, 18, 43, 19, 66068), 0)
2025-04-18 18:43:19,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,077 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,078 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:19,078 - sqlalchemy.engine.Engine - INFO - [cached since 9.14s ago] ('bd293081-e31d-4ec8-be0a-dff575e05221',)
2025-04-18 18:43:19,078 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:19,078 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:19,078 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:19,078 - sqlalchemy.engine.Engine - INFO - [cached since 9.101s ago] (datetime.datetime(2025, 4, 18, 18, 43, 19, 78467), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 19, 78467), 'bd293081-e31d-4ec8-be0a-dff575e05221')
2025-04-18 18:43:19,078 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,087 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:19,087 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:19,087 - sqlalchemy.engine.Engine - INFO - [cached since 9.077s ago] (datetime.datetime(2025, 4, 18, 18, 43, 19, 87107), '任务执行成功', 1000, 89, datetime.datetime(2025, 4, 18, 18, 43, 19, 87107), '3022643a-2b5a-4b09-9110-59cee2ad0f3d')
2025-04-18 18:43:19,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:19,091 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 3022643a-2b5a-4b09-9110-59cee2ad0f3d, 结果: True
2025-04-18 18:43:21,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:21,968 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:21,968 - sqlalchemy.engine.Engine - INFO - [cached since 28.37s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:21,970 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:21,970 - sqlalchemy.engine.Engine - INFO - [cached since 12.14s ago] ('71e03f9e-babe-4b39-81d8-fede3398a087', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 21, 968140), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 21, 970163), datetime.datetime(2025, 4, 18, 18, 43, 21, 970163), 0)
2025-04-18 18:43:21,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:21,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:21,980 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:21,980 - sqlalchemy.engine.Engine - INFO - [cached since 12.12s ago] ('71e03f9e-babe-4b39-81d8-fede3398a087',)
2025-04-18 18:43:21,980 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:21,980 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:21,980 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 71e03f9e-babe-4b39-81d8-fede3398a087, 优先级: 1
2025-04-18 18:43:21,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:21,983 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:21,983 - sqlalchemy.engine.Engine - INFO - [cached since 12.13s ago] ('71e03f9e-babe-4b39-81d8-fede3398a087',)
2025-04-18 18:43:21,983 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:21,983 - sqlalchemy.engine.Engine - INFO - [cached since 28.38s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:21,987 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:21,987 - sqlalchemy.engine.Engine - INFO - [cached since 12.1s ago] (datetime.datetime(2025, 4, 18, 18, 43, 21, 983972), datetime.datetime(2025, 4, 18, 18, 43, 21, 987126), '71e03f9e-babe-4b39-81d8-fede3398a087')
2025-04-18 18:43:21,987 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:21,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:21,992 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:21,992 - sqlalchemy.engine.Engine - INFO - [cached since 12.09s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 21, 992687), '71e03f9e-babe-4b39-81d8-fede3398a087')
2025-04-18 18:43:21,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,001 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:22,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,005 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:22,005 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] ('23214671-e351-4784-9185-c567e0414a7d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '71e03f9e-babe-4b39-81d8-fede3398a087', datetime.datetime(2025, 4, 18, 18, 43, 22, 1895), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 22, 5404), datetime.datetime(2025, 4, 18, 18, 43, 22, 5404), 0)
2025-04-18 18:43:22,005 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,014 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:22,014 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] ('23214671-e351-4784-9185-c567e0414a7d',)
2025-04-18 18:43:22,014 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:22,014 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:22,014 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:22,014 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 22, 14111), '23214671-e351-4784-9185-c567e0414a7d')
2025-04-18 18:43:22,014 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,022 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:22,022 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:22,022 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:22,022 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,022 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:22,022 - sqlalchemy.engine.Engine - INFO - [cached since 12.1s ago] ('0bf15a3c-0157-4226-93ed-ede3aa422430', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '71e03f9e-babe-4b39-81d8-fede3398a087', datetime.datetime(2025, 4, 18, 18, 43, 22, 22687), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 22, 22687), datetime.datetime(2025, 4, 18, 18, 43, 22, 22687), 0)
2025-04-18 18:43:22,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,031 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 0bf15a3c-0157-4226-93ed-ede3aa422430
2025-04-18 18:43:22,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,031 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:22,031 - sqlalchemy.engine.Engine - INFO - [cached since 12.1s ago] ('0bf15a3c-0157-4226-93ed-ede3aa422430',)
2025-04-18 18:43:22,031 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:22,031 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:22,031 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:22,031 - sqlalchemy.engine.Engine - INFO - [cached since 12.09s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 22, 31252), '0bf15a3c-0157-4226-93ed-ede3aa422430')
2025-04-18 18:43:22,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,043 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:22,043 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] ('71e03f9e-babe-4b39-81d8-fede3398a087',)
2025-04-18 18:43:22,043 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 71e03f9e-babe-4b39-81d8-fede3398a087
2025-04-18 18:43:22,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,043 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:22,043 - services.execution.handlers.foundation - INFO - 任务 71e03f9e-babe-4b39-81d8-fede3398a087 打印: ['71e03f9e-babe-4b39-81d8-fede3398a087']
2025-04-18 18:43:22,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,043 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:22,048 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] ('3720c7ae-cc0d-4432-a7a0-2fc811ca0ff1', 1, '{"success": true, "message": "打印成功", "output": {"message": ["71e03f9e-babe-4b39-81d8-fede3398a087"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '71e03f9e-babe-4b39-81d8-fede3398a087', datetime.datetime(2025, 4, 18, 18, 43, 22, 43784), datetime.datetime(2025, 4, 18, 18, 43, 22, 43784), 0)
2025-04-18 18:43:22,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,057 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:22,057 - sqlalchemy.engine.Engine - INFO - [cached since 12.12s ago] ('0bf15a3c-0157-4226-93ed-ede3aa422430',)
2025-04-18 18:43:22,060 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:22,060 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:22,060 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:22,060 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] (datetime.datetime(2025, 4, 18, 18, 43, 22, 60987), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 22, 60987), '0bf15a3c-0157-4226-93ed-ede3aa422430')
2025-04-18 18:43:22,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,068 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,068 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:22,070 - sqlalchemy.engine.Engine - INFO - [cached since 12.1s ago] ('d2784494-8094-4f5f-bddc-b2f53c7b3f50', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["71e03f9e-babe-4b39-81d8-fede3398a087"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '71e03f9e-babe-4b39-81d8-fede3398a087', datetime.datetime(2025, 4, 18, 18, 43, 22, 68833), datetime.datetime(2025, 4, 18, 18, 43, 22, 68833), 0)
2025-04-18 18:43:22,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,076 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:22,076 - sqlalchemy.engine.Engine - INFO - [cached since 12.14s ago] ('23214671-e351-4784-9185-c567e0414a7d',)
2025-04-18 18:43:22,076 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:22,081 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:22,081 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:22,081 - sqlalchemy.engine.Engine - INFO - [cached since 12.1s ago] (datetime.datetime(2025, 4, 18, 18, 43, 22, 81276), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 22, 81276), '23214671-e351-4784-9185-c567e0414a7d')
2025-04-18 18:43:22,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:22,093 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:22,093 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] (datetime.datetime(2025, 4, 18, 18, 43, 22, 89595), '任务执行成功', 1000, 96, datetime.datetime(2025, 4, 18, 18, 43, 22, 93880), '71e03f9e-babe-4b39-81d8-fede3398a087')
2025-04-18 18:43:22,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:22,102 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 71e03f9e-babe-4b39-81d8-fede3398a087, 结果: True
2025-04-18 18:43:24,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:24,980 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:24,980 - sqlalchemy.engine.Engine - INFO - [cached since 31.38s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:24,980 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:24,980 - sqlalchemy.engine.Engine - INFO - [cached since 15.15s ago] ('00abcbd2-ac63-4653-a7e0-2d82b382f3a4', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 24, 980256), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 24, 980256), datetime.datetime(2025, 4, 18, 18, 43, 24, 980256), 0)
2025-04-18 18:43:24,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:24,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:24,988 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:24,988 - sqlalchemy.engine.Engine - INFO - [cached since 15.13s ago] ('00abcbd2-ac63-4653-a7e0-2d82b382f3a4',)
2025-04-18 18:43:24,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:24,993 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:24,993 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 00abcbd2-ac63-4653-a7e0-2d82b382f3a4, 优先级: 1
2025-04-18 18:43:24,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:24,993 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:24,993 - sqlalchemy.engine.Engine - INFO - [cached since 15.14s ago] ('00abcbd2-ac63-4653-a7e0-2d82b382f3a4',)
2025-04-18 18:43:24,996 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:24,996 - sqlalchemy.engine.Engine - INFO - [cached since 31.39s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:24,996 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:24,997 - sqlalchemy.engine.Engine - INFO - [cached since 15.12s ago] (datetime.datetime(2025, 4, 18, 18, 43, 24, 996088), datetime.datetime(2025, 4, 18, 18, 43, 24, 996088), '00abcbd2-ac63-4653-a7e0-2d82b382f3a4')
2025-04-18 18:43:24,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,003 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:25,003 - sqlalchemy.engine.Engine - INFO - [cached since 15.1s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 25, 3282), '00abcbd2-ac63-4653-a7e0-2d82b382f3a4')
2025-04-18 18:43:25,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,010 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:25,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,010 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:25,010 - sqlalchemy.engine.Engine - INFO - [cached since 15.09s ago] ('7511e8b0-90b2-4057-b98c-6a71c5cf4f51', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '00abcbd2-ac63-4653-a7e0-2d82b382f3a4', datetime.datetime(2025, 4, 18, 18, 43, 25, 10546), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 25, 10546), datetime.datetime(2025, 4, 18, 18, 43, 25, 10546), 0)
2025-04-18 18:43:25,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,018 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,018 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:25,023 - sqlalchemy.engine.Engine - INFO - [cached since 15.08s ago] ('7511e8b0-90b2-4057-b98c-6a71c5cf4f51',)
2025-04-18 18:43:25,023 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:25,023 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:25,023 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:25,023 - sqlalchemy.engine.Engine - INFO - [cached since 15.08s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 25, 23009), '7511e8b0-90b2-4057-b98c-6a71c5cf4f51')
2025-04-18 18:43:25,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,030 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:25,030 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:25,031 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:25,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,031 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:25,031 - sqlalchemy.engine.Engine - INFO - [cached since 15.11s ago] ('a72f62e2-31cc-45a1-9b96-e7108020cb99', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '00abcbd2-ac63-4653-a7e0-2d82b382f3a4', datetime.datetime(2025, 4, 18, 18, 43, 25, 31601), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 25, 31601), datetime.datetime(2025, 4, 18, 18, 43, 25, 31601), 0)
2025-04-18 18:43:25,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,040 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a72f62e2-31cc-45a1-9b96-e7108020cb99
2025-04-18 18:43:25,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,040 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:25,040 - sqlalchemy.engine.Engine - INFO - [cached since 15.1s ago] ('a72f62e2-31cc-45a1-9b96-e7108020cb99',)
2025-04-18 18:43:25,040 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:25,040 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:25,040 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:25,044 - sqlalchemy.engine.Engine - INFO - [cached since 15.1s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 25, 40322), 'a72f62e2-31cc-45a1-9b96-e7108020cb99')
2025-04-18 18:43:25,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,052 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:25,052 - sqlalchemy.engine.Engine - INFO - [cached since 15.09s ago] ('00abcbd2-ac63-4653-a7e0-2d82b382f3a4',)
2025-04-18 18:43:25,052 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 00abcbd2-ac63-4653-a7e0-2d82b382f3a4
2025-04-18 18:43:25,052 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,052 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:25,052 - services.execution.handlers.foundation - INFO - 任务 00abcbd2-ac63-4653-a7e0-2d82b382f3a4 打印: ['00abcbd2-ac63-4653-a7e0-2d82b382f3a4']
2025-04-18 18:43:25,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,057 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:25,057 - sqlalchemy.engine.Engine - INFO - [cached since 15.09s ago] ('040ef1f1-8ad4-474d-abb2-e0f14f00efcf', 1, '{"success": true, "message": "打印成功", "output": {"message": ["00abcbd2-ac63-4653-a7e0-2d82b382f3a4"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '00abcbd2-ac63-4653-a7e0-2d82b382f3a4', datetime.datetime(2025, 4, 18, 18, 43, 25, 57075), datetime.datetime(2025, 4, 18, 18, 43, 25, 57075), 0)
2025-04-18 18:43:25,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,065 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:25,065 - sqlalchemy.engine.Engine - INFO - [cached since 15.13s ago] ('a72f62e2-31cc-45a1-9b96-e7108020cb99',)
2025-04-18 18:43:25,065 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:25,065 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:25,065 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:25,065 - sqlalchemy.engine.Engine - INFO - [cached since 15.09s ago] (datetime.datetime(2025, 4, 18, 18, 43, 25, 65214), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 25, 65214), 'a72f62e2-31cc-45a1-9b96-e7108020cb99')
2025-04-18 18:43:25,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,074 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,074 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:25,074 - sqlalchemy.engine.Engine - INFO - [cached since 15.1s ago] ('245c3fbb-4333-4e4c-bd8d-a45a48ba675e', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["00abcbd2-ac63-4653-a7e0-2d82b382f3a4"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '00abcbd2-ac63-4653-a7e0-2d82b382f3a4', datetime.datetime(2025, 4, 18, 18, 43, 25, 74196), datetime.datetime(2025, 4, 18, 18, 43, 25, 74196), 0)
2025-04-18 18:43:25,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,081 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:25,081 - sqlalchemy.engine.Engine - INFO - [cached since 15.14s ago] ('7511e8b0-90b2-4057-b98c-6a71c5cf4f51',)
2025-04-18 18:43:25,081 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:25,081 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:25,081 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:25,081 - sqlalchemy.engine.Engine - INFO - [cached since 15.1s ago] (datetime.datetime(2025, 4, 18, 18, 43, 25, 81616), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 25, 81616), '7511e8b0-90b2-4057-b98c-6a71c5cf4f51')
2025-04-18 18:43:25,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:25,089 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:25,089 - sqlalchemy.engine.Engine - INFO - [cached since 15.08s ago] (datetime.datetime(2025, 4, 18, 18, 43, 25, 89720), '任务执行成功', 1000, 86, datetime.datetime(2025, 4, 18, 18, 43, 25, 89720), '00abcbd2-ac63-4653-a7e0-2d82b382f3a4')
2025-04-18 18:43:25,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:25,097 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 00abcbd2-ac63-4653-a7e0-2d82b382f3a4, 结果: True
2025-04-18 18:43:27,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:27,991 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:27,991 - sqlalchemy.engine.Engine - INFO - [cached since 34.39s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:27,991 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:27,991 - sqlalchemy.engine.Engine - INFO - [cached since 18.16s ago] ('821ff469-4fcb-4c71-b361-ec13d7507613', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 27, 991727), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 27, 991727), datetime.datetime(2025, 4, 18, 18, 43, 27, 991727), 0)
2025-04-18 18:43:27,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:27,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:27,999 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:27,999 - sqlalchemy.engine.Engine - INFO - [cached since 18.14s ago] ('821ff469-4fcb-4c71-b361-ec13d7507613',)
2025-04-18 18:43:28,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,004 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:28,004 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 821ff469-4fcb-4c71-b361-ec13d7507613, 优先级: 1
2025-04-18 18:43:28,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,004 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:28,004 - sqlalchemy.engine.Engine - INFO - [cached since 18.15s ago] ('821ff469-4fcb-4c71-b361-ec13d7507613',)
2025-04-18 18:43:28,004 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:28,004 - sqlalchemy.engine.Engine - INFO - [cached since 34.4s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:28,004 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:28,004 - sqlalchemy.engine.Engine - INFO - [cached since 18.13s ago] (datetime.datetime(2025, 4, 18, 18, 43, 28, 4849), datetime.datetime(2025, 4, 18, 18, 43, 28, 4849), '821ff469-4fcb-4c71-b361-ec13d7507613')
2025-04-18 18:43:28,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,012 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:28,012 - sqlalchemy.engine.Engine - INFO - [cached since 18.11s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 28, 12400), '821ff469-4fcb-4c71-b361-ec13d7507613')
2025-04-18 18:43:28,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,020 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:28,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,020 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:28,020 - sqlalchemy.engine.Engine - INFO - [cached since 18.1s ago] ('47130410-f3dc-46de-89df-1390becf3f24', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '821ff469-4fcb-4c71-b361-ec13d7507613', datetime.datetime(2025, 4, 18, 18, 43, 28, 20789), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 28, 20789), datetime.datetime(2025, 4, 18, 18, 43, 28, 20789), 0)
2025-04-18 18:43:28,025 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,031 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:28,031 - sqlalchemy.engine.Engine - INFO - [cached since 18.09s ago] ('47130410-f3dc-46de-89df-1390becf3f24',)
2025-04-18 18:43:28,031 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:28,031 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:28,033 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:28,033 - sqlalchemy.engine.Engine - INFO - [cached since 18.09s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 28, 31732), '47130410-f3dc-46de-89df-1390becf3f24')
2025-04-18 18:43:28,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,041 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:28,041 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:28,042 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:28,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,042 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:28,042 - sqlalchemy.engine.Engine - INFO - [cached since 18.12s ago] ('ca441ac0-8c3d-4ef4-9e45-42073381386a', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '821ff469-4fcb-4c71-b361-ec13d7507613', datetime.datetime(2025, 4, 18, 18, 43, 28, 42474), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 28, 42474), datetime.datetime(2025, 4, 18, 18, 43, 28, 42474), 0)
2025-04-18 18:43:28,042 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,050 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: ca441ac0-8c3d-4ef4-9e45-42073381386a
2025-04-18 18:43:28,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,052 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:28,054 - sqlalchemy.engine.Engine - INFO - [cached since 18.12s ago] ('ca441ac0-8c3d-4ef4-9e45-42073381386a',)
2025-04-18 18:43:28,054 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:28,054 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:28,054 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:28,054 - sqlalchemy.engine.Engine - INFO - [cached since 18.12s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 28, 54842), 'ca441ac0-8c3d-4ef4-9e45-42073381386a')
2025-04-18 18:43:28,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,063 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,063 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:28,067 - sqlalchemy.engine.Engine - INFO - [cached since 18.1s ago] ('821ff469-4fcb-4c71-b361-ec13d7507613',)
2025-04-18 18:43:28,067 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 821ff469-4fcb-4c71-b361-ec13d7507613
2025-04-18 18:43:28,067 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,067 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:28,067 - services.execution.handlers.foundation - INFO - 任务 821ff469-4fcb-4c71-b361-ec13d7507613 打印: ['821ff469-4fcb-4c71-b361-ec13d7507613']
2025-04-18 18:43:28,067 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,067 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:28,067 - sqlalchemy.engine.Engine - INFO - [cached since 18.1s ago] ('d16124e4-7189-4980-8f00-3195f98f81f1', 1, '{"success": true, "message": "打印成功", "output": {"message": ["821ff469-4fcb-4c71-b361-ec13d7507613"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '821ff469-4fcb-4c71-b361-ec13d7507613', datetime.datetime(2025, 4, 18, 18, 43, 28, 67876), datetime.datetime(2025, 4, 18, 18, 43, 28, 67876), 0)
2025-04-18 18:43:28,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,081 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:28,081 - sqlalchemy.engine.Engine - INFO - [cached since 18.15s ago] ('ca441ac0-8c3d-4ef4-9e45-42073381386a',)
2025-04-18 18:43:28,085 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:28,089 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:28,089 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:28,089 - sqlalchemy.engine.Engine - INFO - [cached since 18.11s ago] (datetime.datetime(2025, 4, 18, 18, 43, 28, 89586), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 28, 89586), 'ca441ac0-8c3d-4ef4-9e45-42073381386a')
2025-04-18 18:43:28,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,098 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,100 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:28,100 - sqlalchemy.engine.Engine - INFO - [cached since 18.13s ago] ('83a67dab-1a4b-41aa-b837-e7480c28331c', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["821ff469-4fcb-4c71-b361-ec13d7507613"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '821ff469-4fcb-4c71-b361-ec13d7507613', datetime.datetime(2025, 4, 18, 18, 43, 28, 100806), datetime.datetime(2025, 4, 18, 18, 43, 28, 100806), 0)
2025-04-18 18:43:28,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,116 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,119 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:28,119 - sqlalchemy.engine.Engine - INFO - [cached since 18.18s ago] ('47130410-f3dc-46de-89df-1390becf3f24',)
2025-04-18 18:43:28,123 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:28,123 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:28,123 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:28,128 - sqlalchemy.engine.Engine - INFO - [cached since 18.15s ago] (datetime.datetime(2025, 4, 18, 18, 43, 28, 123725), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 28, 123725), '47130410-f3dc-46de-89df-1390becf3f24')
2025-04-18 18:43:28,128 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:28,140 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:28,143 - sqlalchemy.engine.Engine - INFO - [cached since 18.13s ago] (datetime.datetime(2025, 4, 18, 18, 43, 28, 136798), '任务执行成功', 1000, 124, datetime.datetime(2025, 4, 18, 18, 43, 28, 140929), '821ff469-4fcb-4c71-b361-ec13d7507613')
2025-04-18 18:43:28,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:28,153 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 821ff469-4fcb-4c71-b361-ec13d7507613, 结果: True
2025-04-18 18:43:31,011 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,012 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:31,012 - sqlalchemy.engine.Engine - INFO - [cached since 37.41s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:31,014 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:31,014 - sqlalchemy.engine.Engine - INFO - [cached since 21.18s ago] ('58ad9e9c-f3f0-4d4b-bded-3205af8e978e', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 31, 13666), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 31, 14667), datetime.datetime(2025, 4, 18, 18, 43, 31, 14667), 0)
2025-04-18 18:43:31,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,030 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:31,030 - sqlalchemy.engine.Engine - INFO - [cached since 21.17s ago] ('58ad9e9c-f3f0-4d4b-bded-3205af8e978e',)
2025-04-18 18:43:31,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,032 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:31,033 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 58ad9e9c-f3f0-4d4b-bded-3205af8e978e, 优先级: 1
2025-04-18 18:43:31,034 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,035 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:31,035 - sqlalchemy.engine.Engine - INFO - [cached since 21.18s ago] ('58ad9e9c-f3f0-4d4b-bded-3205af8e978e',)
2025-04-18 18:43:31,035 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:31,035 - sqlalchemy.engine.Engine - INFO - [cached since 37.44s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:31,039 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:31,039 - sqlalchemy.engine.Engine - INFO - [cached since 21.16s ago] (datetime.datetime(2025, 4, 18, 18, 43, 31, 39183), datetime.datetime(2025, 4, 18, 18, 43, 31, 39183), '58ad9e9c-f3f0-4d4b-bded-3205af8e978e')
2025-04-18 18:43:31,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,049 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:31,051 - sqlalchemy.engine.Engine - INFO - [cached since 21.15s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 31, 49585), '58ad9e9c-f3f0-4d4b-bded-3205af8e978e')
2025-04-18 18:43:31,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,059 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:31,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,059 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:31,059 - sqlalchemy.engine.Engine - INFO - [cached since 21.14s ago] ('d1c012fe-74e7-4060-9f8a-ce6bdf32be39', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '58ad9e9c-f3f0-4d4b-bded-3205af8e978e', datetime.datetime(2025, 4, 18, 18, 43, 31, 59987), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 31, 59987), datetime.datetime(2025, 4, 18, 18, 43, 31, 59987), 0)
2025-04-18 18:43:31,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,068 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,068 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:31,068 - sqlalchemy.engine.Engine - INFO - [cached since 21.13s ago] ('d1c012fe-74e7-4060-9f8a-ce6bdf32be39',)
2025-04-18 18:43:31,072 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:31,072 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:31,072 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:31,072 - sqlalchemy.engine.Engine - INFO - [cached since 21.13s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 31, 72877), 'd1c012fe-74e7-4060-9f8a-ce6bdf32be39')
2025-04-18 18:43:31,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,081 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:31,081 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:31,081 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:31,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,081 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:31,081 - sqlalchemy.engine.Engine - INFO - [cached since 21.16s ago] ('2e9d7b7a-d8ac-42d0-b3f1-f9213f588db4', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '58ad9e9c-f3f0-4d4b-bded-3205af8e978e', datetime.datetime(2025, 4, 18, 18, 43, 31, 81531), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 31, 81531), datetime.datetime(2025, 4, 18, 18, 43, 31, 81531), 0)
2025-04-18 18:43:31,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,094 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2e9d7b7a-d8ac-42d0-b3f1-f9213f588db4
2025-04-18 18:43:31,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,094 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:31,094 - sqlalchemy.engine.Engine - INFO - [cached since 21.16s ago] ('2e9d7b7a-d8ac-42d0-b3f1-f9213f588db4',)
2025-04-18 18:43:31,097 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:31,097 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:31,097 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:31,097 - sqlalchemy.engine.Engine - INFO - [cached since 21.16s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 31, 97861), '2e9d7b7a-d8ac-42d0-b3f1-f9213f588db4')
2025-04-18 18:43:31,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,106 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:31,106 - sqlalchemy.engine.Engine - INFO - [cached since 21.14s ago] ('58ad9e9c-f3f0-4d4b-bded-3205af8e978e',)
2025-04-18 18:43:31,106 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 58ad9e9c-f3f0-4d4b-bded-3205af8e978e
2025-04-18 18:43:31,110 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,110 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:31,110 - services.execution.handlers.foundation - INFO - 任务 58ad9e9c-f3f0-4d4b-bded-3205af8e978e 打印: ['58ad9e9c-f3f0-4d4b-bded-3205af8e978e']
2025-04-18 18:43:31,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,110 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:31,110 - sqlalchemy.engine.Engine - INFO - [cached since 21.14s ago] ('485c3877-6cc8-4664-aa4e-5bdaca95d660', 1, '{"success": true, "message": "打印成功", "output": {"message": ["58ad9e9c-f3f0-4d4b-bded-3205af8e978e"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '58ad9e9c-f3f0-4d4b-bded-3205af8e978e', datetime.datetime(2025, 4, 18, 18, 43, 31, 110261), datetime.datetime(2025, 4, 18, 18, 43, 31, 110261), 0)
2025-04-18 18:43:31,110 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,118 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:31,118 - sqlalchemy.engine.Engine - INFO - [cached since 21.18s ago] ('2e9d7b7a-d8ac-42d0-b3f1-f9213f588db4',)
2025-04-18 18:43:31,118 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:31,122 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:31,122 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:31,123 - sqlalchemy.engine.Engine - INFO - [cached since 21.14s ago] (datetime.datetime(2025, 4, 18, 18, 43, 31, 122995), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 31, 122995), '2e9d7b7a-d8ac-42d0-b3f1-f9213f588db4')
2025-04-18 18:43:31,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,130 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,130 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:31,130 - sqlalchemy.engine.Engine - INFO - [cached since 21.16s ago] ('eba95f82-ef7a-423b-80aa-7a6c77cdd031', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["58ad9e9c-f3f0-4d4b-bded-3205af8e978e"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '58ad9e9c-f3f0-4d4b-bded-3205af8e978e', datetime.datetime(2025, 4, 18, 18, 43, 31, 130884), datetime.datetime(2025, 4, 18, 18, 43, 31, 130884), 0)
2025-04-18 18:43:31,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,139 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:31,139 - sqlalchemy.engine.Engine - INFO - [cached since 21.2s ago] ('d1c012fe-74e7-4060-9f8a-ce6bdf32be39',)
2025-04-18 18:43:31,139 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:31,143 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:31,143 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:31,143 - sqlalchemy.engine.Engine - INFO - [cached since 21.16s ago] (datetime.datetime(2025, 4, 18, 18, 43, 31, 143447), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 31, 143447), 'd1c012fe-74e7-4060-9f8a-ce6bdf32be39')
2025-04-18 18:43:31,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,151 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:31,151 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:31,151 - sqlalchemy.engine.Engine - INFO - [cached since 21.14s ago] (datetime.datetime(2025, 4, 18, 18, 43, 31, 151905), '任务执行成功', 1000, 104, datetime.datetime(2025, 4, 18, 18, 43, 31, 151905), '58ad9e9c-f3f0-4d4b-bded-3205af8e978e')
2025-04-18 18:43:31,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:31,160 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 58ad9e9c-f3f0-4d4b-bded-3205af8e978e, 结果: True
2025-04-18 18:43:34,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,066 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:34,066 - sqlalchemy.engine.Engine - INFO - [cached since 40.46s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:34,067 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:34,068 - sqlalchemy.engine.Engine - INFO - [cached since 24.23s ago] ('0ceca226-3cf1-479c-b7e3-345e5483cd78', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 34, 67156), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 34, 67156), datetime.datetime(2025, 4, 18, 18, 43, 34, 67156), 0)
2025-04-18 18:43:34,069 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,081 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:34,082 - sqlalchemy.engine.Engine - INFO - [cached since 24.22s ago] ('0ceca226-3cf1-479c-b7e3-345e5483cd78',)
2025-04-18 18:43:34,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,089 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:34,091 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 0ceca226-3cf1-479c-b7e3-345e5483cd78, 优先级: 1
2025-04-18 18:43:34,093 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,094 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:34,097 - sqlalchemy.engine.Engine - INFO - [cached since 24.24s ago] ('0ceca226-3cf1-479c-b7e3-345e5483cd78',)
2025-04-18 18:43:34,100 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:34,103 - sqlalchemy.engine.Engine - INFO - [cached since 40.5s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:34,105 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:34,108 - sqlalchemy.engine.Engine - INFO - [cached since 24.23s ago] (datetime.datetime(2025, 4, 18, 18, 43, 34, 104510), datetime.datetime(2025, 4, 18, 18, 43, 34, 105510), '0ceca226-3cf1-479c-b7e3-345e5483cd78')
2025-04-18 18:43:34,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,124 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:34,124 - sqlalchemy.engine.Engine - INFO - [cached since 24.22s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 34, 124983), '0ceca226-3cf1-479c-b7e3-345e5483cd78')
2025-04-18 18:43:34,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,132 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:34,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,140 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:34,142 - sqlalchemy.engine.Engine - INFO - [cached since 24.22s ago] ('c67844b3-ea4c-4e74-a548-387ed6a15b87', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0ceca226-3cf1-479c-b7e3-345e5483cd78', datetime.datetime(2025, 4, 18, 18, 43, 34, 134985), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 34, 140849), datetime.datetime(2025, 4, 18, 18, 43, 34, 140849), 0)
2025-04-18 18:43:34,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,154 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:34,156 - sqlalchemy.engine.Engine - INFO - [cached since 24.22s ago] ('c67844b3-ea4c-4e74-a548-387ed6a15b87',)
2025-04-18 18:43:34,157 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:34,159 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:34,161 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:34,165 - sqlalchemy.engine.Engine - INFO - [cached since 24.23s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 34, 161793), 'c67844b3-ea4c-4e74-a548-387ed6a15b87')
2025-04-18 18:43:34,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,177 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:34,179 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:34,181 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:34,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,183 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:34,183 - sqlalchemy.engine.Engine - INFO - [cached since 24.26s ago] ('e1a861c4-dca1-435c-8fb4-06699f03915c', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0ceca226-3cf1-479c-b7e3-345e5483cd78', datetime.datetime(2025, 4, 18, 18, 43, 34, 181912), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 34, 183055), datetime.datetime(2025, 4, 18, 18, 43, 34, 183055), 0)
2025-04-18 18:43:34,186 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,197 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e1a861c4-dca1-435c-8fb4-06699f03915c
2025-04-18 18:43:34,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,199 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:34,199 - sqlalchemy.engine.Engine - INFO - [cached since 24.26s ago] ('e1a861c4-dca1-435c-8fb4-06699f03915c',)
2025-04-18 18:43:34,204 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:34,204 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:34,207 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:34,207 - sqlalchemy.engine.Engine - INFO - [cached since 24.27s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 34, 207632), 'e1a861c4-dca1-435c-8fb4-06699f03915c')
2025-04-18 18:43:34,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,216 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,217 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:34,217 - sqlalchemy.engine.Engine - INFO - [cached since 24.25s ago] ('0ceca226-3cf1-479c-b7e3-345e5483cd78',)
2025-04-18 18:43:34,217 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 0ceca226-3cf1-479c-b7e3-345e5483cd78
2025-04-18 18:43:34,217 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,218 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:34,218 - services.execution.handlers.foundation - INFO - 任务 0ceca226-3cf1-479c-b7e3-345e5483cd78 打印: ['0ceca226-3cf1-479c-b7e3-345e5483cd78']
2025-04-18 18:43:34,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,219 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:34,219 - sqlalchemy.engine.Engine - INFO - [cached since 24.25s ago] ('2efde8ec-18bc-4412-afb9-09961b6e2c33', 1, '{"success": true, "message": "打印成功", "output": {"message": ["0ceca226-3cf1-479c-b7e3-345e5483cd78"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0ceca226-3cf1-479c-b7e3-345e5483cd78', datetime.datetime(2025, 4, 18, 18, 43, 34, 219221), datetime.datetime(2025, 4, 18, 18, 43, 34, 219221), 0)
2025-04-18 18:43:34,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,225 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:34,226 - sqlalchemy.engine.Engine - INFO - [cached since 24.29s ago] ('e1a861c4-dca1-435c-8fb4-06699f03915c',)
2025-04-18 18:43:34,226 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:34,226 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:34,227 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:34,227 - sqlalchemy.engine.Engine - INFO - [cached since 24.25s ago] (datetime.datetime(2025, 4, 18, 18, 43, 34, 226866), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 34, 227867), 'e1a861c4-dca1-435c-8fb4-06699f03915c')
2025-04-18 18:43:34,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,234 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,235 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:34,235 - sqlalchemy.engine.Engine - INFO - [cached since 24.27s ago] ('51f6a270-2eac-4fb3-a7cc-0a8de1e10df1', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["0ceca226-3cf1-479c-b7e3-345e5483cd78"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0ceca226-3cf1-479c-b7e3-345e5483cd78', datetime.datetime(2025, 4, 18, 18, 43, 34, 235577), datetime.datetime(2025, 4, 18, 18, 43, 34, 235577), 0)
2025-04-18 18:43:34,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,245 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:34,245 - sqlalchemy.engine.Engine - INFO - [cached since 24.31s ago] ('c67844b3-ea4c-4e74-a548-387ed6a15b87',)
2025-04-18 18:43:34,245 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:34,245 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:34,245 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:34,247 - sqlalchemy.engine.Engine - INFO - [cached since 24.27s ago] (datetime.datetime(2025, 4, 18, 18, 43, 34, 245998), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 34, 245998), 'c67844b3-ea4c-4e74-a548-387ed6a15b87')
2025-04-18 18:43:34,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:34,255 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:34,255 - sqlalchemy.engine.Engine - INFO - [cached since 24.24s ago] (datetime.datetime(2025, 4, 18, 18, 43, 34, 255301), '任务执行成功', 1000, 133, datetime.datetime(2025, 4, 18, 18, 43, 34, 255953), '0ceca226-3cf1-479c-b7e3-345e5483cd78')
2025-04-18 18:43:34,256 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:34,265 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 0ceca226-3cf1-479c-b7e3-345e5483cd78, 结果: True
2025-04-18 18:43:37,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,096 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:37,097 - sqlalchemy.engine.Engine - INFO - [cached since 43.5s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:37,098 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:37,099 - sqlalchemy.engine.Engine - INFO - [cached since 27.27s ago] ('d46be590-d3e9-47ff-8a4d-1b328ee7581e', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 37, 98487), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 37, 98487), datetime.datetime(2025, 4, 18, 18, 43, 37, 98487), 0)
2025-04-18 18:43:37,100 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,107 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,107 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:37,109 - sqlalchemy.engine.Engine - INFO - [cached since 27.25s ago] ('d46be590-d3e9-47ff-8a4d-1b328ee7581e',)
2025-04-18 18:43:37,110 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,112 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:37,113 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: d46be590-d3e9-47ff-8a4d-1b328ee7581e, 优先级: 1
2025-04-18 18:43:37,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,113 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:37,114 - sqlalchemy.engine.Engine - INFO - [cached since 27.26s ago] ('d46be590-d3e9-47ff-8a4d-1b328ee7581e',)
2025-04-18 18:43:37,114 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:37,115 - sqlalchemy.engine.Engine - INFO - [cached since 43.51s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:37,115 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:37,117 - sqlalchemy.engine.Engine - INFO - [cached since 27.24s ago] (datetime.datetime(2025, 4, 18, 18, 43, 37, 115572), datetime.datetime(2025, 4, 18, 18, 43, 37, 115572), 'd46be590-d3e9-47ff-8a4d-1b328ee7581e')
2025-04-18 18:43:37,118 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,126 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:37,127 - sqlalchemy.engine.Engine - INFO - [cached since 27.22s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 37, 126366), 'd46be590-d3e9-47ff-8a4d-1b328ee7581e')
2025-04-18 18:43:37,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,137 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:37,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,138 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:37,138 - sqlalchemy.engine.Engine - INFO - [cached since 27.22s ago] ('89ef98cc-dc00-44fb-aa90-f0097af72fb3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd46be590-d3e9-47ff-8a4d-1b328ee7581e', datetime.datetime(2025, 4, 18, 18, 43, 37, 137236), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 37, 138236), datetime.datetime(2025, 4, 18, 18, 43, 37, 138236), 0)
2025-04-18 18:43:37,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,146 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,146 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:37,146 - sqlalchemy.engine.Engine - INFO - [cached since 27.21s ago] ('89ef98cc-dc00-44fb-aa90-f0097af72fb3',)
2025-04-18 18:43:37,147 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:37,148 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:37,148 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:37,149 - sqlalchemy.engine.Engine - INFO - [cached since 27.21s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 37, 148613), '89ef98cc-dc00-44fb-aa90-f0097af72fb3')
2025-04-18 18:43:37,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,154 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:37,154 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:37,155 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:37,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,156 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:37,156 - sqlalchemy.engine.Engine - INFO - [cached since 27.23s ago] ('cf7684a6-116d-4881-9296-4c8c123e9730', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd46be590-d3e9-47ff-8a4d-1b328ee7581e', datetime.datetime(2025, 4, 18, 18, 43, 37, 155611), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 37, 156610), datetime.datetime(2025, 4, 18, 18, 43, 37, 156610), 0)
2025-04-18 18:43:37,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,166 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: cf7684a6-116d-4881-9296-4c8c123e9730
2025-04-18 18:43:37,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,167 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:37,167 - sqlalchemy.engine.Engine - INFO - [cached since 27.23s ago] ('cf7684a6-116d-4881-9296-4c8c123e9730',)
2025-04-18 18:43:37,168 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:37,168 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:37,168 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:37,169 - sqlalchemy.engine.Engine - INFO - [cached since 27.23s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 37, 168183), 'cf7684a6-116d-4881-9296-4c8c123e9730')
2025-04-18 18:43:37,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,176 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:37,176 - sqlalchemy.engine.Engine - INFO - [cached since 27.21s ago] ('d46be590-d3e9-47ff-8a4d-1b328ee7581e',)
2025-04-18 18:43:37,176 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: d46be590-d3e9-47ff-8a4d-1b328ee7581e
2025-04-18 18:43:37,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,180 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:37,181 - services.execution.handlers.foundation - INFO - 任务 d46be590-d3e9-47ff-8a4d-1b328ee7581e 打印: ['d46be590-d3e9-47ff-8a4d-1b328ee7581e']
2025-04-18 18:43:37,182 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,182 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:37,182 - sqlalchemy.engine.Engine - INFO - [cached since 27.21s ago] ('1f7ea030-6eed-4ce7-9676-22dcbe757adb', 1, '{"success": true, "message": "打印成功", "output": {"message": ["d46be590-d3e9-47ff-8a4d-1b328ee7581e"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd46be590-d3e9-47ff-8a4d-1b328ee7581e', datetime.datetime(2025, 4, 18, 18, 43, 37, 182347), datetime.datetime(2025, 4, 18, 18, 43, 37, 182347), 0)
2025-04-18 18:43:37,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,190 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,190 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:37,190 - sqlalchemy.engine.Engine - INFO - [cached since 27.25s ago] ('cf7684a6-116d-4881-9296-4c8c123e9730',)
2025-04-18 18:43:37,190 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:37,190 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:37,190 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:37,190 - sqlalchemy.engine.Engine - INFO - [cached since 27.21s ago] (datetime.datetime(2025, 4, 18, 18, 43, 37, 190742), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 37, 190742), 'cf7684a6-116d-4881-9296-4c8c123e9730')
2025-04-18 18:43:37,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,203 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:37,203 - sqlalchemy.engine.Engine - INFO - [cached since 27.23s ago] ('607bada7-015d-4113-b0e1-07f0c544ac31', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["d46be590-d3e9-47ff-8a4d-1b328ee7581e"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd46be590-d3e9-47ff-8a4d-1b328ee7581e', datetime.datetime(2025, 4, 18, 18, 43, 37, 203766), datetime.datetime(2025, 4, 18, 18, 43, 37, 203766), 0)
2025-04-18 18:43:37,203 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,212 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:37,212 - sqlalchemy.engine.Engine - INFO - [cached since 27.28s ago] ('89ef98cc-dc00-44fb-aa90-f0097af72fb3',)
2025-04-18 18:43:37,212 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:37,212 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:37,212 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:37,212 - sqlalchemy.engine.Engine - INFO - [cached since 27.24s ago] (datetime.datetime(2025, 4, 18, 18, 43, 37, 212324), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 37, 212324), '89ef98cc-dc00-44fb-aa90-f0097af72fb3')
2025-04-18 18:43:37,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:37,224 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:37,226 - sqlalchemy.engine.Engine - INFO - [cached since 27.21s ago] (datetime.datetime(2025, 4, 18, 18, 43, 37, 222957), '任务执行成功', 1000, 97, datetime.datetime(2025, 4, 18, 18, 43, 37, 224698), 'd46be590-d3e9-47ff-8a4d-1b328ee7581e')
2025-04-18 18:43:37,226 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:37,232 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: d46be590-d3e9-47ff-8a4d-1b328ee7581e, 结果: True
2025-04-18 18:43:40,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,154 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:40,156 - sqlalchemy.engine.Engine - INFO - [cached since 46.55s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:40,161 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:40,164 - sqlalchemy.engine.Engine - INFO - [cached since 30.33s ago] ('5c349118-0d95-41a6-8d04-6c28fce2dfc4', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 40, 161177), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 40, 161864), datetime.datetime(2025, 4, 18, 18, 43, 40, 161864), 0)
2025-04-18 18:43:40,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,180 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:40,182 - sqlalchemy.engine.Engine - INFO - [cached since 30.32s ago] ('5c349118-0d95-41a6-8d04-6c28fce2dfc4',)
2025-04-18 18:43:40,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,190 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:40,191 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 5c349118-0d95-41a6-8d04-6c28fce2dfc4, 优先级: 1
2025-04-18 18:43:40,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,194 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:40,195 - sqlalchemy.engine.Engine - INFO - [cached since 30.34s ago] ('5c349118-0d95-41a6-8d04-6c28fce2dfc4',)
2025-04-18 18:43:40,196 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:40,196 - sqlalchemy.engine.Engine - INFO - [cached since 46.59s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:40,197 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:40,197 - sqlalchemy.engine.Engine - INFO - [cached since 30.32s ago] (datetime.datetime(2025, 4, 18, 18, 43, 40, 197237), datetime.datetime(2025, 4, 18, 18, 43, 40, 197237), '5c349118-0d95-41a6-8d04-6c28fce2dfc4')
2025-04-18 18:43:40,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,207 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:40,207 - sqlalchemy.engine.Engine - INFO - [cached since 30.31s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 40, 207186), '5c349118-0d95-41a6-8d04-6c28fce2dfc4')
2025-04-18 18:43:40,209 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,215 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:40,218 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,221 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:40,223 - sqlalchemy.engine.Engine - INFO - [cached since 30.3s ago] ('e8c8fc60-5e20-4d64-b7e6-a8df1c2204ae', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5c349118-0d95-41a6-8d04-6c28fce2dfc4', datetime.datetime(2025, 4, 18, 18, 43, 40, 218882), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 40, 221874), datetime.datetime(2025, 4, 18, 18, 43, 40, 221874), 0)
2025-04-18 18:43:40,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,234 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,239 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:40,240 - sqlalchemy.engine.Engine - INFO - [cached since 30.3s ago] ('e8c8fc60-5e20-4d64-b7e6-a8df1c2204ae',)
2025-04-18 18:43:40,242 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:40,244 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:40,245 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:40,248 - sqlalchemy.engine.Engine - INFO - [cached since 30.31s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 40, 245889), 'e8c8fc60-5e20-4d64-b7e6-a8df1c2204ae')
2025-04-18 18:43:40,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,258 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:40,258 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:40,258 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:40,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,262 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:40,262 - sqlalchemy.engine.Engine - INFO - [cached since 30.34s ago] ('0b5489f7-cec0-410f-a15a-88581b7ada74', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5c349118-0d95-41a6-8d04-6c28fce2dfc4', datetime.datetime(2025, 4, 18, 18, 43, 40, 258504), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 40, 262712), datetime.datetime(2025, 4, 18, 18, 43, 40, 262712), 0)
2025-04-18 18:43:40,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,274 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 0b5489f7-cec0-410f-a15a-88581b7ada74
2025-04-18 18:43:40,274 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,274 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:40,275 - sqlalchemy.engine.Engine - INFO - [cached since 30.34s ago] ('0b5489f7-cec0-410f-a15a-88581b7ada74',)
2025-04-18 18:43:40,275 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:40,276 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:40,276 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:40,276 - sqlalchemy.engine.Engine - INFO - [cached since 30.34s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 40, 276120), '0b5489f7-cec0-410f-a15a-88581b7ada74')
2025-04-18 18:43:40,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,286 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:40,286 - sqlalchemy.engine.Engine - INFO - [cached since 30.32s ago] ('5c349118-0d95-41a6-8d04-6c28fce2dfc4',)
2025-04-18 18:43:40,287 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 5c349118-0d95-41a6-8d04-6c28fce2dfc4
2025-04-18 18:43:40,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,287 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:40,287 - services.execution.handlers.foundation - INFO - 任务 5c349118-0d95-41a6-8d04-6c28fce2dfc4 打印: ['5c349118-0d95-41a6-8d04-6c28fce2dfc4']
2025-04-18 18:43:40,288 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,289 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:40,289 - sqlalchemy.engine.Engine - INFO - [cached since 30.32s ago] ('a8ec8aa3-b4fd-4967-ac7f-33ba64f925d1', 1, '{"success": true, "message": "打印成功", "output": {"message": ["5c349118-0d95-41a6-8d04-6c28fce2dfc4"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5c349118-0d95-41a6-8d04-6c28fce2dfc4', datetime.datetime(2025, 4, 18, 18, 43, 40, 289041), datetime.datetime(2025, 4, 18, 18, 43, 40, 289041), 0)
2025-04-18 18:43:40,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,296 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:40,296 - sqlalchemy.engine.Engine - INFO - [cached since 30.36s ago] ('0b5489f7-cec0-410f-a15a-88581b7ada74',)
2025-04-18 18:43:40,297 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:40,297 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:40,298 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:40,298 - sqlalchemy.engine.Engine - INFO - [cached since 30.32s ago] (datetime.datetime(2025, 4, 18, 18, 43, 40, 298120), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 40, 298120), '0b5489f7-cec0-410f-a15a-88581b7ada74')
2025-04-18 18:43:40,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,307 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:40,308 - sqlalchemy.engine.Engine - INFO - [cached since 30.34s ago] ('6a014f93-9e2d-41ec-97a7-4cebe6aca616', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["5c349118-0d95-41a6-8d04-6c28fce2dfc4"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5c349118-0d95-41a6-8d04-6c28fce2dfc4', datetime.datetime(2025, 4, 18, 18, 43, 40, 307667), datetime.datetime(2025, 4, 18, 18, 43, 40, 307667), 0)
2025-04-18 18:43:40,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,316 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:40,317 - sqlalchemy.engine.Engine - INFO - [cached since 30.38s ago] ('e8c8fc60-5e20-4d64-b7e6-a8df1c2204ae',)
2025-04-18 18:43:40,317 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:40,318 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:40,318 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:40,318 - sqlalchemy.engine.Engine - INFO - [cached since 30.34s ago] (datetime.datetime(2025, 4, 18, 18, 43, 40, 318887), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 40, 318887), 'e8c8fc60-5e20-4d64-b7e6-a8df1c2204ae')
2025-04-18 18:43:40,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,324 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:40,329 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:40,330 - sqlalchemy.engine.Engine - INFO - [cached since 30.32s ago] (datetime.datetime(2025, 4, 18, 18, 43, 40, 324788), '任务执行成功', 1000, 118, datetime.datetime(2025, 4, 18, 18, 43, 40, 329669), '5c349118-0d95-41a6-8d04-6c28fce2dfc4')
2025-04-18 18:43:40,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:40,338 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 5c349118-0d95-41a6-8d04-6c28fce2dfc4, 结果: True
2025-04-18 18:43:43,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,219 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:43,219 - sqlalchemy.engine.Engine - INFO - [cached since 49.62s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:43,223 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:43,223 - sqlalchemy.engine.Engine - INFO - [cached since 33.39s ago] ('220949e7-6b96-49b8-8ff1-efb4197b8e8d', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 43, 223212), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 43, 223212), datetime.datetime(2025, 4, 18, 18, 43, 43, 223212), 0)
2025-04-18 18:43:43,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,232 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:43,232 - sqlalchemy.engine.Engine - INFO - [cached since 33.38s ago] ('220949e7-6b96-49b8-8ff1-efb4197b8e8d',)
2025-04-18 18:43:43,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,237 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:43,237 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 220949e7-6b96-49b8-8ff1-efb4197b8e8d, 优先级: 1
2025-04-18 18:43:43,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,238 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:43,238 - sqlalchemy.engine.Engine - INFO - [cached since 33.38s ago] ('220949e7-6b96-49b8-8ff1-efb4197b8e8d',)
2025-04-18 18:43:43,238 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:43,238 - sqlalchemy.engine.Engine - INFO - [cached since 49.64s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:43,240 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:43,240 - sqlalchemy.engine.Engine - INFO - [cached since 33.36s ago] (datetime.datetime(2025, 4, 18, 18, 43, 43, 238553), datetime.datetime(2025, 4, 18, 18, 43, 43, 240670), '220949e7-6b96-49b8-8ff1-efb4197b8e8d')
2025-04-18 18:43:43,240 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,248 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,248 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:43,248 - sqlalchemy.engine.Engine - INFO - [cached since 33.35s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 43, 248063), '220949e7-6b96-49b8-8ff1-efb4197b8e8d')
2025-04-18 18:43:43,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,253 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:43,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,253 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:43,253 - sqlalchemy.engine.Engine - INFO - [cached since 33.33s ago] ('73938e65-942c-4001-a8f4-4e00531c65a6', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '220949e7-6b96-49b8-8ff1-efb4197b8e8d', datetime.datetime(2025, 4, 18, 18, 43, 43, 253174), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 43, 253174), datetime.datetime(2025, 4, 18, 18, 43, 43, 253174), 0)
2025-04-18 18:43:43,253 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,261 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:43,261 - sqlalchemy.engine.Engine - INFO - [cached since 33.33s ago] ('73938e65-942c-4001-a8f4-4e00531c65a6',)
2025-04-18 18:43:43,261 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:43,261 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:43,261 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:43,261 - sqlalchemy.engine.Engine - INFO - [cached since 33.33s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 43, 261662), '73938e65-942c-4001-a8f4-4e00531c65a6')
2025-04-18 18:43:43,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,270 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:43,270 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:43,270 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:43,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,274 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:43,274 - sqlalchemy.engine.Engine - INFO - [cached since 33.35s ago] ('1d146f7a-c3bd-401d-bee3-8751876b9dbd', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '220949e7-6b96-49b8-8ff1-efb4197b8e8d', datetime.datetime(2025, 4, 18, 18, 43, 43, 270046), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 43, 274093), datetime.datetime(2025, 4, 18, 18, 43, 43, 274093), 0)
2025-04-18 18:43:43,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,281 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1d146f7a-c3bd-401d-bee3-8751876b9dbd
2025-04-18 18:43:43,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,281 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:43,281 - sqlalchemy.engine.Engine - INFO - [cached since 33.34s ago] ('1d146f7a-c3bd-401d-bee3-8751876b9dbd',)
2025-04-18 18:43:43,281 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:43,281 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:43,281 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:43,281 - sqlalchemy.engine.Engine - INFO - [cached since 33.34s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 43, 281668), '1d146f7a-c3bd-401d-bee3-8751876b9dbd')
2025-04-18 18:43:43,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,290 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:43,290 - sqlalchemy.engine.Engine - INFO - [cached since 33.32s ago] ('220949e7-6b96-49b8-8ff1-efb4197b8e8d',)
2025-04-18 18:43:43,290 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 220949e7-6b96-49b8-8ff1-efb4197b8e8d
2025-04-18 18:43:43,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,290 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:43,290 - services.execution.handlers.foundation - INFO - 任务 220949e7-6b96-49b8-8ff1-efb4197b8e8d 打印: ['220949e7-6b96-49b8-8ff1-efb4197b8e8d']
2025-04-18 18:43:43,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,290 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:43,292 - sqlalchemy.engine.Engine - INFO - [cached since 33.32s ago] ('e1e1cd06-de67-46d8-ba56-caef5f8f3e62', 1, '{"success": true, "message": "打印成功", "output": {"message": ["220949e7-6b96-49b8-8ff1-efb4197b8e8d"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '220949e7-6b96-49b8-8ff1-efb4197b8e8d', datetime.datetime(2025, 4, 18, 18, 43, 43, 290331), datetime.datetime(2025, 4, 18, 18, 43, 43, 290331), 0)
2025-04-18 18:43:43,292 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,298 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,298 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:43,300 - sqlalchemy.engine.Engine - INFO - [cached since 33.36s ago] ('1d146f7a-c3bd-401d-bee3-8751876b9dbd',)
2025-04-18 18:43:43,300 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:43,300 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:43,300 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:43,303 - sqlalchemy.engine.Engine - INFO - [cached since 33.32s ago] (datetime.datetime(2025, 4, 18, 18, 43, 43, 300272), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 43, 300272), '1d146f7a-c3bd-401d-bee3-8751876b9dbd')
2025-04-18 18:43:43,303 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,307 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:43,307 - sqlalchemy.engine.Engine - INFO - [cached since 33.34s ago] ('344a1bd3-a896-4c9b-b962-f445cfba274b', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["220949e7-6b96-49b8-8ff1-efb4197b8e8d"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '220949e7-6b96-49b8-8ff1-efb4197b8e8d', datetime.datetime(2025, 4, 18, 18, 43, 43, 307616), datetime.datetime(2025, 4, 18, 18, 43, 43, 307616), 0)
2025-04-18 18:43:43,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,320 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,320 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:43,320 - sqlalchemy.engine.Engine - INFO - [cached since 33.38s ago] ('73938e65-942c-4001-a8f4-4e00531c65a6',)
2025-04-18 18:43:43,320 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:43,322 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:43,322 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:43,322 - sqlalchemy.engine.Engine - INFO - [cached since 33.34s ago] (datetime.datetime(2025, 4, 18, 18, 43, 43, 322653), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 43, 322653), '73938e65-942c-4001-a8f4-4e00531c65a6')
2025-04-18 18:43:43,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,329 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:43,329 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:43,329 - sqlalchemy.engine.Engine - INFO - [cached since 33.32s ago] (datetime.datetime(2025, 4, 18, 18, 43, 43, 329021), '任务执行成功', 1000, 80, datetime.datetime(2025, 4, 18, 18, 43, 43, 329021), '220949e7-6b96-49b8-8ff1-efb4197b8e8d')
2025-04-18 18:43:43,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:43,333 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 220949e7-6b96-49b8-8ff1-efb4197b8e8d, 结果: True
2025-04-18 18:43:46,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,269 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:46,270 - sqlalchemy.engine.Engine - INFO - [cached since 52.67s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:46,270 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:46,274 - sqlalchemy.engine.Engine - INFO - [cached since 36.44s ago] ('417df0fa-ddff-4684-aaab-4ff761347e81', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 46, 270670), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 46, 270670), datetime.datetime(2025, 4, 18, 18, 43, 46, 270670), 0)
2025-04-18 18:43:46,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,286 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:46,286 - sqlalchemy.engine.Engine - INFO - [cached since 36.43s ago] ('417df0fa-ddff-4684-aaab-4ff761347e81',)
2025-04-18 18:43:46,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,287 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:46,287 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 417df0fa-ddff-4684-aaab-4ff761347e81, 优先级: 1
2025-04-18 18:43:46,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,291 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:46,291 - sqlalchemy.engine.Engine - INFO - [cached since 36.43s ago] ('417df0fa-ddff-4684-aaab-4ff761347e81',)
2025-04-18 18:43:46,291 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:46,292 - sqlalchemy.engine.Engine - INFO - [cached since 52.69s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:46,293 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:46,293 - sqlalchemy.engine.Engine - INFO - [cached since 36.41s ago] (datetime.datetime(2025, 4, 18, 18, 43, 46, 293398), datetime.datetime(2025, 4, 18, 18, 43, 46, 293398), '417df0fa-ddff-4684-aaab-4ff761347e81')
2025-04-18 18:43:46,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,301 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:46,301 - sqlalchemy.engine.Engine - INFO - [cached since 36.4s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 46, 301394), '417df0fa-ddff-4684-aaab-4ff761347e81')
2025-04-18 18:43:46,302 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,310 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:46,310 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,311 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:46,311 - sqlalchemy.engine.Engine - INFO - [cached since 36.39s ago] ('be957750-97fd-4e5f-ad4b-58e668e6ed8f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '417df0fa-ddff-4684-aaab-4ff761347e81', datetime.datetime(2025, 4, 18, 18, 43, 46, 310116), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 46, 311613), datetime.datetime(2025, 4, 18, 18, 43, 46, 311613), 0)
2025-04-18 18:43:46,312 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,319 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,319 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:46,319 - sqlalchemy.engine.Engine - INFO - [cached since 36.38s ago] ('be957750-97fd-4e5f-ad4b-58e668e6ed8f',)
2025-04-18 18:43:46,321 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:46,322 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:46,322 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:46,322 - sqlalchemy.engine.Engine - INFO - [cached since 36.38s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 46, 322467), 'be957750-97fd-4e5f-ad4b-58e668e6ed8f')
2025-04-18 18:43:46,323 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,330 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:46,330 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:46,330 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:46,330 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,330 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:46,330 - sqlalchemy.engine.Engine - INFO - [cached since 36.41s ago] ('20fd477e-43fb-4064-8353-68e703c4749f', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '417df0fa-ddff-4684-aaab-4ff761347e81', datetime.datetime(2025, 4, 18, 18, 43, 46, 330931), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 46, 330931), datetime.datetime(2025, 4, 18, 18, 43, 46, 330931), 0)
2025-04-18 18:43:46,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,339 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 20fd477e-43fb-4064-8353-68e703c4749f
2025-04-18 18:43:46,339 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,339 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:46,343 - sqlalchemy.engine.Engine - INFO - [cached since 36.41s ago] ('20fd477e-43fb-4064-8353-68e703c4749f',)
2025-04-18 18:43:46,343 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:46,347 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:46,347 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:46,351 - sqlalchemy.engine.Engine - INFO - [cached since 36.41s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 46, 347439), '20fd477e-43fb-4064-8353-68e703c4749f')
2025-04-18 18:43:46,351 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,364 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:46,368 - sqlalchemy.engine.Engine - INFO - [cached since 36.4s ago] ('417df0fa-ddff-4684-aaab-4ff761347e81',)
2025-04-18 18:43:46,372 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 417df0fa-ddff-4684-aaab-4ff761347e81
2025-04-18 18:43:46,372 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,381 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:46,381 - services.execution.handlers.foundation - INFO - 任务 417df0fa-ddff-4684-aaab-4ff761347e81 打印: ['417df0fa-ddff-4684-aaab-4ff761347e81']
2025-04-18 18:43:46,381 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,381 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:46,385 - sqlalchemy.engine.Engine - INFO - [cached since 36.42s ago] ('cf39c158-edc1-41a9-906a-14b1069b5cb8', 1, '{"success": true, "message": "打印成功", "output": {"message": ["417df0fa-ddff-4684-aaab-4ff761347e81"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '417df0fa-ddff-4684-aaab-4ff761347e81', datetime.datetime(2025, 4, 18, 18, 43, 46, 381436), datetime.datetime(2025, 4, 18, 18, 43, 46, 381436), 0)
2025-04-18 18:43:46,389 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,403 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,403 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:46,407 - sqlalchemy.engine.Engine - INFO - [cached since 36.47s ago] ('20fd477e-43fb-4064-8353-68e703c4749f',)
2025-04-18 18:43:46,407 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:46,407 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:46,407 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:46,415 - sqlalchemy.engine.Engine - INFO - [cached since 36.44s ago] (datetime.datetime(2025, 4, 18, 18, 43, 46, 407535), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 46, 407535), '20fd477e-43fb-4064-8353-68e703c4749f')
2025-04-18 18:43:46,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,433 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,437 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:46,437 - sqlalchemy.engine.Engine - INFO - [cached since 36.47s ago] ('fc42c20b-a475-4d51-ab31-107c9c050e85', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["417df0fa-ddff-4684-aaab-4ff761347e81"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '417df0fa-ddff-4684-aaab-4ff761347e81', datetime.datetime(2025, 4, 18, 18, 43, 46, 437708), datetime.datetime(2025, 4, 18, 18, 43, 46, 437708), 0)
2025-04-18 18:43:46,437 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,454 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:46,459 - sqlalchemy.engine.Engine - INFO - [cached since 36.52s ago] ('be957750-97fd-4e5f-ad4b-58e668e6ed8f',)
2025-04-18 18:43:46,459 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:46,459 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:46,463 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:46,463 - sqlalchemy.engine.Engine - INFO - [cached since 36.49s ago] (datetime.datetime(2025, 4, 18, 18, 43, 46, 463693), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 46, 463693), 'be957750-97fd-4e5f-ad4b-58e668e6ed8f')
2025-04-18 18:43:46,463 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:46,481 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:46,481 - sqlalchemy.engine.Engine - INFO - [cached since 36.47s ago] (datetime.datetime(2025, 4, 18, 18, 43, 46, 476324), '任务执行成功', 1000, 175, datetime.datetime(2025, 4, 18, 18, 43, 46, 481115), '417df0fa-ddff-4684-aaab-4ff761347e81')
2025-04-18 18:43:46,481 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:46,489 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 417df0fa-ddff-4684-aaab-4ff761347e81, 结果: True
2025-04-18 18:43:49,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,300 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:49,300 - sqlalchemy.engine.Engine - INFO - [cached since 55.7s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:49,302 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:49,302 - sqlalchemy.engine.Engine - INFO - [cached since 39.47s ago] ('82c21333-ca55-40bf-8c32-6a89f51a2312', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 49, 302555), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 49, 302555), datetime.datetime(2025, 4, 18, 18, 43, 49, 302555), 0)
2025-04-18 18:43:49,302 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,311 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,311 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:49,312 - sqlalchemy.engine.Engine - INFO - [cached since 39.45s ago] ('82c21333-ca55-40bf-8c32-6a89f51a2312',)
2025-04-18 18:43:49,313 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,313 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:49,313 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: 82c21333-ca55-40bf-8c32-6a89f51a2312, 优先级: 1
2025-04-18 18:43:49,314 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,314 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:49,314 - sqlalchemy.engine.Engine - INFO - [cached since 39.46s ago] ('82c21333-ca55-40bf-8c32-6a89f51a2312',)
2025-04-18 18:43:49,315 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:49,315 - sqlalchemy.engine.Engine - INFO - [cached since 55.71s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:49,317 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:49,317 - sqlalchemy.engine.Engine - INFO - [cached since 39.44s ago] (datetime.datetime(2025, 4, 18, 18, 43, 49, 317066), datetime.datetime(2025, 4, 18, 18, 43, 49, 317066), '82c21333-ca55-40bf-8c32-6a89f51a2312')
2025-04-18 18:43:49,318 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,324 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,324 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:49,324 - sqlalchemy.engine.Engine - INFO - [cached since 39.42s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 49, 324381), '82c21333-ca55-40bf-8c32-6a89f51a2312')
2025-04-18 18:43:49,325 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,332 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:49,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,334 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:49,334 - sqlalchemy.engine.Engine - INFO - [cached since 39.41s ago] ('0b07d707-dc67-4c92-a3bc-d010dc8cb864', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '82c21333-ca55-40bf-8c32-6a89f51a2312', datetime.datetime(2025, 4, 18, 18, 43, 49, 333194), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 49, 334212), datetime.datetime(2025, 4, 18, 18, 43, 49, 334212), 0)
2025-04-18 18:43:49,334 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,343 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,343 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:49,343 - sqlalchemy.engine.Engine - INFO - [cached since 39.41s ago] ('0b07d707-dc67-4c92-a3bc-d010dc8cb864',)
2025-04-18 18:43:49,344 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:49,344 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:49,344 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:49,344 - sqlalchemy.engine.Engine - INFO - [cached since 39.4s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 49, 344974), '0b07d707-dc67-4c92-a3bc-d010dc8cb864')
2025-04-18 18:43:49,345 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,352 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:49,352 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:49,352 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:49,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,353 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:49,353 - sqlalchemy.engine.Engine - INFO - [cached since 39.43s ago] ('4a236190-b4e7-45f6-a89e-3d5f56c5da5d', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '82c21333-ca55-40bf-8c32-6a89f51a2312', datetime.datetime(2025, 4, 18, 18, 43, 49, 352657), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 49, 353202), datetime.datetime(2025, 4, 18, 18, 43, 49, 353202), 0)
2025-04-18 18:43:49,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,359 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4a236190-b4e7-45f6-a89e-3d5f56c5da5d
2025-04-18 18:43:49,361 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,361 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:49,361 - sqlalchemy.engine.Engine - INFO - [cached since 39.42s ago] ('4a236190-b4e7-45f6-a89e-3d5f56c5da5d',)
2025-04-18 18:43:49,361 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:49,361 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:49,361 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:49,361 - sqlalchemy.engine.Engine - INFO - [cached since 39.42s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 49, 361791), '4a236190-b4e7-45f6-a89e-3d5f56c5da5d')
2025-04-18 18:43:49,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,369 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:49,369 - sqlalchemy.engine.Engine - INFO - [cached since 39.4s ago] ('82c21333-ca55-40bf-8c32-6a89f51a2312',)
2025-04-18 18:43:49,369 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 82c21333-ca55-40bf-8c32-6a89f51a2312
2025-04-18 18:43:49,369 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,369 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:49,369 - services.execution.handlers.foundation - INFO - 任务 82c21333-ca55-40bf-8c32-6a89f51a2312 打印: ['82c21333-ca55-40bf-8c32-6a89f51a2312']
2025-04-18 18:43:49,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,369 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:49,369 - sqlalchemy.engine.Engine - INFO - [cached since 39.4s ago] ('6d9bfbad-26d0-4055-b662-278b2bc68bc1', 1, '{"success": true, "message": "打印成功", "output": {"message": ["82c21333-ca55-40bf-8c32-6a89f51a2312"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '82c21333-ca55-40bf-8c32-6a89f51a2312', datetime.datetime(2025, 4, 18, 18, 43, 49, 369840), datetime.datetime(2025, 4, 18, 18, 43, 49, 369840), 0)
2025-04-18 18:43:49,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,378 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,378 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:49,378 - sqlalchemy.engine.Engine - INFO - [cached since 39.44s ago] ('4a236190-b4e7-45f6-a89e-3d5f56c5da5d',)
2025-04-18 18:43:49,379 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:49,379 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:49,379 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:49,379 - sqlalchemy.engine.Engine - INFO - [cached since 39.4s ago] (datetime.datetime(2025, 4, 18, 18, 43, 49, 379494), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 49, 379494), '4a236190-b4e7-45f6-a89e-3d5f56c5da5d')
2025-04-18 18:43:49,380 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,386 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,386 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:49,387 - sqlalchemy.engine.Engine - INFO - [cached since 39.42s ago] ('f7d46545-f391-4ad2-a9d7-5407e7e48ab1', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["82c21333-ca55-40bf-8c32-6a89f51a2312"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '82c21333-ca55-40bf-8c32-6a89f51a2312', datetime.datetime(2025, 4, 18, 18, 43, 49, 386987), datetime.datetime(2025, 4, 18, 18, 43, 49, 386987), 0)
2025-04-18 18:43:49,387 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,399 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,400 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:49,400 - sqlalchemy.engine.Engine - INFO - [cached since 39.46s ago] ('0b07d707-dc67-4c92-a3bc-d010dc8cb864',)
2025-04-18 18:43:49,401 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:49,401 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:49,401 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:49,401 - sqlalchemy.engine.Engine - INFO - [cached since 39.42s ago] (datetime.datetime(2025, 4, 18, 18, 43, 49, 401486), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 49, 401486), '0b07d707-dc67-4c92-a3bc-d010dc8cb864')
2025-04-18 18:43:49,402 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,413 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:49,413 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:49,414 - sqlalchemy.engine.Engine - INFO - [cached since 39.4s ago] (datetime.datetime(2025, 4, 18, 18, 43, 49, 412037), '任务执行成功', 1000, 88, datetime.datetime(2025, 4, 18, 18, 43, 49, 413026), '82c21333-ca55-40bf-8c32-6a89f51a2312')
2025-04-18 18:43:49,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:49,420 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: 82c21333-ca55-40bf-8c32-6a89f51a2312, 结果: True
2025-04-18 18:43:52,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,321 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:52,321 - sqlalchemy.engine.Engine - INFO - [cached since 58.72s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:52,324 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:52,326 - sqlalchemy.engine.Engine - INFO - [cached since 42.49s ago] ('e339e73f-8b12-428b-8f4e-46f30de629af', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 52, 324739), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 52, 324739), datetime.datetime(2025, 4, 18, 18, 43, 52, 324739), 0)
2025-04-18 18:43:52,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,338 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,338 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:52,338 - sqlalchemy.engine.Engine - INFO - [cached since 42.48s ago] ('e339e73f-8b12-428b-8f4e-46f30de629af',)
2025-04-18 18:43:52,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,342 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:52,342 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: e339e73f-8b12-428b-8f4e-46f30de629af, 优先级: 1
2025-04-18 18:43:52,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,342 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:52,342 - sqlalchemy.engine.Engine - INFO - [cached since 42.49s ago] ('e339e73f-8b12-428b-8f4e-46f30de629af',)
2025-04-18 18:43:52,342 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:52,347 - sqlalchemy.engine.Engine - INFO - [cached since 58.75s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:52,347 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:52,347 - sqlalchemy.engine.Engine - INFO - [cached since 42.47s ago] (datetime.datetime(2025, 4, 18, 18, 43, 52, 347143), datetime.datetime(2025, 4, 18, 18, 43, 52, 347143), 'e339e73f-8b12-428b-8f4e-46f30de629af')
2025-04-18 18:43:52,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,356 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:52,356 - sqlalchemy.engine.Engine - INFO - [cached since 42.45s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 52, 356593), 'e339e73f-8b12-428b-8f4e-46f30de629af')
2025-04-18 18:43:52,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,366 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:52,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,368 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:52,369 - sqlalchemy.engine.Engine - INFO - [cached since 42.45s ago] ('7e761f94-1a02-43a6-9af5-429597a52369', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e339e73f-8b12-428b-8f4e-46f30de629af', datetime.datetime(2025, 4, 18, 18, 43, 52, 367244), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 52, 368466), datetime.datetime(2025, 4, 18, 18, 43, 52, 368466), 0)
2025-04-18 18:43:52,369 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,377 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:52,377 - sqlalchemy.engine.Engine - INFO - [cached since 42.44s ago] ('7e761f94-1a02-43a6-9af5-429597a52369',)
2025-04-18 18:43:52,378 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:52,379 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:52,379 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:52,379 - sqlalchemy.engine.Engine - INFO - [cached since 42.44s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 52, 379864), '7e761f94-1a02-43a6-9af5-429597a52369')
2025-04-18 18:43:52,380 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,386 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:52,386 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:52,386 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:52,386 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,388 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:52,388 - sqlalchemy.engine.Engine - INFO - [cached since 42.47s ago] ('765e9ff7-3268-4c3f-8093-00ee3dae08a6', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e339e73f-8b12-428b-8f4e-46f30de629af', datetime.datetime(2025, 4, 18, 18, 43, 52, 386256), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 52, 388821), datetime.datetime(2025, 4, 18, 18, 43, 52, 388821), 0)
2025-04-18 18:43:52,389 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,397 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 765e9ff7-3268-4c3f-8093-00ee3dae08a6
2025-04-18 18:43:52,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,405 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:52,405 - sqlalchemy.engine.Engine - INFO - [cached since 42.47s ago] ('765e9ff7-3268-4c3f-8093-00ee3dae08a6',)
2025-04-18 18:43:52,406 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:52,406 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:52,406 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:52,407 - sqlalchemy.engine.Engine - INFO - [cached since 42.47s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 52, 406976), '765e9ff7-3268-4c3f-8093-00ee3dae08a6')
2025-04-18 18:43:52,408 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,416 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,417 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:52,417 - sqlalchemy.engine.Engine - INFO - [cached since 42.45s ago] ('e339e73f-8b12-428b-8f4e-46f30de629af',)
2025-04-18 18:43:52,417 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: e339e73f-8b12-428b-8f4e-46f30de629af
2025-04-18 18:43:52,418 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,418 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:52,419 - services.execution.handlers.foundation - INFO - 任务 e339e73f-8b12-428b-8f4e-46f30de629af 打印: ['e339e73f-8b12-428b-8f4e-46f30de629af']
2025-04-18 18:43:52,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,419 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:52,420 - sqlalchemy.engine.Engine - INFO - [cached since 42.45s ago] ('6b539d5c-4d9e-4b6a-89ff-9ab6097f978e', 1, '{"success": true, "message": "打印成功", "output": {"message": ["e339e73f-8b12-428b-8f4e-46f30de629af"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e339e73f-8b12-428b-8f4e-46f30de629af', datetime.datetime(2025, 4, 18, 18, 43, 52, 419142), datetime.datetime(2025, 4, 18, 18, 43, 52, 419142), 0)
2025-04-18 18:43:52,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,428 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,430 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:52,433 - sqlalchemy.engine.Engine - INFO - [cached since 42.5s ago] ('765e9ff7-3268-4c3f-8093-00ee3dae08a6',)
2025-04-18 18:43:52,438 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:52,439 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:52,439 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:52,440 - sqlalchemy.engine.Engine - INFO - [cached since 42.46s ago] (datetime.datetime(2025, 4, 18, 18, 43, 52, 439354), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 52, 439354), '765e9ff7-3268-4c3f-8093-00ee3dae08a6')
2025-04-18 18:43:52,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,456 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:52,456 - sqlalchemy.engine.Engine - INFO - [cached since 42.49s ago] ('4d1b88e9-90e3-4565-8fc4-7e704083b258', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["e339e73f-8b12-428b-8f4e-46f30de629af"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e339e73f-8b12-428b-8f4e-46f30de629af', datetime.datetime(2025, 4, 18, 18, 43, 52, 456052), datetime.datetime(2025, 4, 18, 18, 43, 52, 456052), 0)
2025-04-18 18:43:52,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,473 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,477 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:52,477 - sqlalchemy.engine.Engine - INFO - [cached since 42.54s ago] ('7e761f94-1a02-43a6-9af5-429597a52369',)
2025-04-18 18:43:52,481 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:52,481 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:52,485 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:52,485 - sqlalchemy.engine.Engine - INFO - [cached since 42.51s ago] (datetime.datetime(2025, 4, 18, 18, 43, 52, 481784), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 52, 481784), '7e761f94-1a02-43a6-9af5-429597a52369')
2025-04-18 18:43:52,489 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,498 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:52,502 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:52,504 - sqlalchemy.engine.Engine - INFO - [cached since 42.49s ago] (datetime.datetime(2025, 4, 18, 18, 43, 52, 498435), '任务执行成功', 1000, 142, datetime.datetime(2025, 4, 18, 18, 43, 52, 502550), 'e339e73f-8b12-428b-8f4e-46f30de629af')
2025-04-18 18:43:52,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:52,516 - services.execution.task_scheduler - INFO - 工作线程 2 完成任务: e339e73f-8b12-428b-8f4e-46f30de629af, 结果: True
2025-04-18 18:43:55,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,351 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:55,353 - sqlalchemy.engine.Engine - INFO - [cached since 61.75s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:55,353 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:55,353 - sqlalchemy.engine.Engine - INFO - [cached since 45.52s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 55, 353706), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 55, 353706), datetime.datetime(2025, 4, 18, 18, 43, 55, 353706), 0)
2025-04-18 18:43:55,353 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,364 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:55,366 - sqlalchemy.engine.Engine - INFO - [cached since 45.51s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-18 18:43:55,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,366 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:55,366 - services.execution.task_scheduler - INFO - 工作线程 2 获取到任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-18 18:43:55,366 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,366 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:55,370 - sqlalchemy.engine.Engine - INFO - [cached since 45.51s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-18 18:43:55,370 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:55,370 - sqlalchemy.engine.Engine - INFO - [cached since 61.77s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:55,370 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:55,370 - sqlalchemy.engine.Engine - INFO - [cached since 45.49s ago] (datetime.datetime(2025, 4, 18, 18, 43, 55, 370805), datetime.datetime(2025, 4, 18, 18, 43, 55, 370805), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-18 18:43:55,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,383 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,383 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:55,383 - sqlalchemy.engine.Engine - INFO - [cached since 45.48s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 55, 383261), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-18 18:43:55,383 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,391 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:55,391 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,391 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:55,391 - sqlalchemy.engine.Engine - INFO - [cached since 45.47s ago] ('be6a039e-b5d5-44e1-bed7-08c730c2632b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 18, 18, 43, 55, 391434), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 55, 391434), datetime.datetime(2025, 4, 18, 18, 43, 55, 391434), 0)
2025-04-18 18:43:55,395 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,400 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,400 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:55,400 - sqlalchemy.engine.Engine - INFO - [cached since 45.46s ago] ('be6a039e-b5d5-44e1-bed7-08c730c2632b',)
2025-04-18 18:43:55,400 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:55,400 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:55,404 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:55,404 - sqlalchemy.engine.Engine - INFO - [cached since 45.46s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 55, 404468), 'be6a039e-b5d5-44e1-bed7-08c730c2632b')
2025-04-18 18:43:55,404 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,408 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:55,408 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:55,408 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:55,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,412 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:55,412 - sqlalchemy.engine.Engine - INFO - [cached since 45.49s ago] ('262810b2-f61b-4298-bb7d-76b79744d46b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 18, 18, 43, 55, 408631), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 55, 412952), datetime.datetime(2025, 4, 18, 18, 43, 55, 412952), 0)
2025-04-18 18:43:55,412 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,421 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 262810b2-f61b-4298-bb7d-76b79744d46b
2025-04-18 18:43:55,421 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,421 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:55,421 - sqlalchemy.engine.Engine - INFO - [cached since 45.48s ago] ('262810b2-f61b-4298-bb7d-76b79744d46b',)
2025-04-18 18:43:55,421 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:55,421 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:55,421 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:55,421 - sqlalchemy.engine.Engine - INFO - [cached since 45.48s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 55, 421291), '262810b2-f61b-4298-bb7d-76b79744d46b')
2025-04-18 18:43:55,425 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,432 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,432 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:55,439 - sqlalchemy.engine.Engine - INFO - [cached since 45.47s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-18 18:43:55,440 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80
2025-04-18 18:43:55,441 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,442 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:55,447 - services.execution.handlers.foundation - INFO - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 打印: ['bdbb2c58-e8f5-4916-8457-d80bbf4c8a80']
2025-04-18 18:43:55,449 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,454 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:55,454 - sqlalchemy.engine.Engine - INFO - [cached since 45.49s ago] ('cb86ec9b-fac5-4315-8b5d-308ddddc6877', 1, '{"success": true, "message": "打印成功", "output": {"message": ["bdbb2c58-e8f5-4916-8457-d80bbf4c8a80"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 18, 18, 43, 55, 454543), datetime.datetime(2025, 4, 18, 18, 43, 55, 454543), 0)
2025-04-18 18:43:55,458 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:55,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:55,470 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:55,476 - sqlalchemy.engine.Engine - INFO - [cached since 45.54s ago] ('262810b2-f61b-4298-bb7d-76b79744d46b',)
2025-04-18 18:43:55,477 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:55,477 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:55,477 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:55,477 - sqlalchemy.engine.Engine - INFO - [cached since 45.5s ago] (datetime.datetime(2025, 4, 18, 18, 43, 55, 477136), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 55, 477136), '262810b2-f61b-4298-bb7d-76b79744d46b')
2025-04-18 18:43:55,477 - root - INFO - 应用程序关闭中...
2025-04-18 18:43:55,479 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 18:43:55,479 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 18:43:55,479 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 18:43:55,479 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 18:43:55,479 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 18:43:55,479 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 18:43:55,479 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 18:43:55,483 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 18:43:55,483 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 18:43:55,483 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 18:43:55,483 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 18:43:55,483 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 18:43:55,483 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 18:43:55,483 - root - INFO - 任务调度器已停止
2025-04-18 18:43:55,483 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 18:43:55,483 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 18:43:55,483 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 18:43:55,483 - data.session - INFO - 数据库连接已关闭
2025-04-18 18:43:56,861 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 18:43:56,861 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 18:43:56,916 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 18:43:56,964 - data.session - INFO - 正在初始化数据库...
2025-04-18 18:43:57,000 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 18:43:57,023 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:43:57,023 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,023 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:43:57,026 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,030 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:43:57,034 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,034 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:57,039 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 18:43:57,039 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,048 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 18:43:57,050 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,052 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 18:43:57,054 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,056 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 18:43:57,056 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,060 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 18:43:57,064 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,069 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 18:43:57,069 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,073 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 18:43:57,073 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,073 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 18:43:57,073 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,073 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 18:43:57,078 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,082 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 18:43:57,086 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,086 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 18:43:57,086 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:43:57,086 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:57,090 - data.session - INFO - 数据库表初始化完成
2025-04-18 18:43:57,415 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 18:43:57,415 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 18:43:57,419 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 18:43:57,419 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 18:43:57,424 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 18:43:57,424 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 18:43:57,429 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:43:57,429 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:43:57,432 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:43:57,436 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:43:57,440 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:43:57,440 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:43:57,444 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:43:57,445 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:57,455 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 18:43:57,457 - sqlalchemy.engine.Engine - INFO - [generated in 0.00241s] (1, 1)
2025-04-18 18:43:57,459 - services.execution.task_scheduler - INFO - 已加载 1 个定时任务
2025-04-18 18:43:57,460 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:57,463 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 18:43:57,464 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 18:43:58,427 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,432 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:58,436 - sqlalchemy.engine.Engine - INFO - [generated in 0.00284s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:58,443 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:43:58,443 - sqlalchemy.engine.Engine - INFO - [generated in 0.00098s] ('f3606da1-5646-492b-a9cf-eed78f90c909', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 43, 58, 440444), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 43, 58, 443182), datetime.datetime(2025, 4, 18, 18, 43, 58, 443182), 0)
2025-04-18 18:43:58,449 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,470 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:58,474 - sqlalchemy.engine.Engine - INFO - [generated in 0.00340s] ('f3606da1-5646-492b-a9cf-eed78f90c909',)
2025-04-18 18:43:58,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,482 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:43:58,482 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: f3606da1-5646-492b-a9cf-eed78f90c909, 优先级: 1
2025-04-18 18:43:58,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,486 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:58,486 - sqlalchemy.engine.Engine - INFO - [cached since 0.01697s ago] ('f3606da1-5646-492b-a9cf-eed78f90c909',)
2025-04-18 18:43:58,486 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:43:58,486 - sqlalchemy.engine.Engine - INFO - [cached since 0.05394s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:43:58,490 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:58,491 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (datetime.datetime(2025, 4, 18, 18, 43, 58, 486700), datetime.datetime(2025, 4, 18, 18, 43, 58, 490819), 'f3606da1-5646-492b-a9cf-eed78f90c909')
2025-04-18 18:43:58,491 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,498 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,503 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:58,503 - sqlalchemy.engine.Engine - INFO - [generated in 0.00085s] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 43, 58, 503287), 'f3606da1-5646-492b-a9cf-eed78f90c909')
2025-04-18 18:43:58,503 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,532 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:43:58,532 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,532 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:58,532 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('96d71d2e-1f6d-4023-b405-e8a10f5b00ec', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f3606da1-5646-492b-a9cf-eed78f90c909', datetime.datetime(2025, 4, 18, 18, 43, 58, 532184), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 58, 532184), datetime.datetime(2025, 4, 18, 18, 43, 58, 532184), 0)
2025-04-18 18:43:58,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,542 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:58,542 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('96d71d2e-1f6d-4023-b405-e8a10f5b00ec',)
2025-04-18 18:43:58,544 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:58,544 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:58,544 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:58,544 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 58, 544592), '96d71d2e-1f6d-4023-b405-e8a10f5b00ec')
2025-04-18 18:43:58,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,552 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:43:58,552 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:43:58,552 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:43:58,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,552 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:43:58,552 - sqlalchemy.engine.Engine - INFO - [cached since 0.01979s ago] ('9ceec0e2-a141-48b4-bd10-e62159e460a7', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f3606da1-5646-492b-a9cf-eed78f90c909', datetime.datetime(2025, 4, 18, 18, 43, 58, 552771), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 43, 58, 552771), datetime.datetime(2025, 4, 18, 18, 43, 58, 552771), 0)
2025-04-18 18:43:58,552 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,560 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 9ceec0e2-a141-48b4-bd10-e62159e460a7
2025-04-18 18:43:58,560 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,560 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:58,560 - sqlalchemy.engine.Engine - INFO - [cached since 0.02007s ago] ('9ceec0e2-a141-48b4-bd10-e62159e460a7',)
2025-04-18 18:43:58,560 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:58,560 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:58,560 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:58,560 - sqlalchemy.engine.Engine - INFO - [cached since 0.01898s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 43, 58, 560956), '9ceec0e2-a141-48b4-bd10-e62159e460a7')
2025-04-18 18:43:58,565 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,573 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:43:58,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] ('f3606da1-5646-492b-a9cf-eed78f90c909',)
2025-04-18 18:43:58,573 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: f3606da1-5646-492b-a9cf-eed78f90c909
2025-04-18 18:43:58,573 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,573 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:43:58,573 - services.execution.handlers.foundation - INFO - 任务 f3606da1-5646-492b-a9cf-eed78f90c909 打印: ['f3606da1-5646-492b-a9cf-eed78f90c909']
2025-04-18 18:43:58,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,573 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:58,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('79762faa-4e64-45ca-9b90-59d9b13222a9', 1, '{"success": true, "message": "打印成功", "output": {"message": ["f3606da1-5646-492b-a9cf-eed78f90c909"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f3606da1-5646-492b-a9cf-eed78f90c909', datetime.datetime(2025, 4, 18, 18, 43, 58, 573539), datetime.datetime(2025, 4, 18, 18, 43, 58, 573539), 0)
2025-04-18 18:43:58,573 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,584 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:58,584 - sqlalchemy.engine.Engine - INFO - [cached since 0.04203s ago] ('9ceec0e2-a141-48b4-bd10-e62159e460a7',)
2025-04-18 18:43:58,586 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:43:58,586 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:43:58,586 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:58,588 - sqlalchemy.engine.Engine - INFO - [generated in 0.00142s] (datetime.datetime(2025, 4, 18, 18, 43, 58, 586229), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 58, 586229), '9ceec0e2-a141-48b4-bd10-e62159e460a7')
2025-04-18 18:43:58,588 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,595 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,595 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:43:58,595 - sqlalchemy.engine.Engine - INFO - [cached since 0.0205s ago] ('43106f95-896a-4645-b4ec-c7e91689b83f', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["f3606da1-5646-492b-a9cf-eed78f90c909"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f3606da1-5646-492b-a9cf-eed78f90c909', datetime.datetime(2025, 4, 18, 18, 43, 58, 595476), datetime.datetime(2025, 4, 18, 18, 43, 58, 595476), 0)
2025-04-18 18:43:58,595 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,599 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,599 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:43:58,603 - sqlalchemy.engine.Engine - INFO - [cached since 0.06096s ago] ('96d71d2e-1f6d-4023-b405-e8a10f5b00ec',)
2025-04-18 18:43:58,604 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:43:58,604 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:43:58,604 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:43:58,604 - sqlalchemy.engine.Engine - INFO - [cached since 0.01903s ago] (datetime.datetime(2025, 4, 18, 18, 43, 58, 604552), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 43, 58, 604552), '96d71d2e-1f6d-4023-b405-e8a10f5b00ec')
2025-04-18 18:43:58,604 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,612 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:43:58,612 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:43:58,612 - sqlalchemy.engine.Engine - INFO - [generated in 0.00122s] (datetime.datetime(2025, 4, 18, 18, 43, 58, 612051), '任务执行成功', 1000, 113, datetime.datetime(2025, 4, 18, 18, 43, 58, 612051), 'f3606da1-5646-492b-a9cf-eed78f90c909')
2025-04-18 18:43:58,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:43:58,624 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: f3606da1-5646-492b-a9cf-eed78f90c909, 结果: True
2025-04-18 18:44:01,513 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,515 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:01,516 - sqlalchemy.engine.Engine - INFO - [cached since 3.081s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:01,518 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:44:01,518 - sqlalchemy.engine.Engine - INFO - [cached since 3.077s ago] ('ec12b4aa-025a-4e02-8552-eda0d27eebdc', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 44, 1, 518668), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 44, 1, 518668), datetime.datetime(2025, 4, 18, 18, 44, 1, 518668), 0)
2025-04-18 18:44:01,521 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,538 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:01,546 - sqlalchemy.engine.Engine - INFO - [cached since 3.078s ago] ('ec12b4aa-025a-4e02-8552-eda0d27eebdc',)
2025-04-18 18:44:01,554 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,563 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:44:01,563 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: ec12b4aa-025a-4e02-8552-eda0d27eebdc, 优先级: 1
2025-04-18 18:44:01,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,573 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:01,573 - sqlalchemy.engine.Engine - INFO - [cached since 3.104s ago] ('ec12b4aa-025a-4e02-8552-eda0d27eebdc',)
2025-04-18 18:44:01,576 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:01,576 - sqlalchemy.engine.Engine - INFO - [cached since 3.141s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:01,576 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:01,576 - sqlalchemy.engine.Engine - INFO - [cached since 3.087s ago] (datetime.datetime(2025, 4, 18, 18, 44, 1, 576356), datetime.datetime(2025, 4, 18, 18, 44, 1, 576356), 'ec12b4aa-025a-4e02-8552-eda0d27eebdc')
2025-04-18 18:44:01,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,588 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:01,597 - sqlalchemy.engine.Engine - INFO - [cached since 3.094s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 44, 1, 588797), 'ec12b4aa-025a-4e02-8552-eda0d27eebdc')
2025-04-18 18:44:01,597 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,611 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:44:01,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,611 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:44:01,614 - sqlalchemy.engine.Engine - INFO - [cached since 3.08s ago] ('7221c9a9-3497-4eb8-9bff-1c271322f24e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ec12b4aa-025a-4e02-8552-eda0d27eebdc', datetime.datetime(2025, 4, 18, 18, 44, 1, 611780), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 44, 1, 611780), datetime.datetime(2025, 4, 18, 18, 44, 1, 611780), 0)
2025-04-18 18:44:01,614 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,628 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:01,628 - sqlalchemy.engine.Engine - INFO - [cached since 3.086s ago] ('7221c9a9-3497-4eb8-9bff-1c271322f24e',)
2025-04-18 18:44:01,628 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:44:01,628 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:44:01,628 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:01,628 - sqlalchemy.engine.Engine - INFO - [cached since 3.085s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 44, 1, 628998), '7221c9a9-3497-4eb8-9bff-1c271322f24e')
2025-04-18 18:44:01,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,639 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:44:01,639 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:44:01,639 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:44:01,644 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,644 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:44:01,644 - sqlalchemy.engine.Engine - INFO - [cached since 3.11s ago] ('8ae75f2b-31a6-4357-aa7e-3ea6458d4b26', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ec12b4aa-025a-4e02-8552-eda0d27eebdc', datetime.datetime(2025, 4, 18, 18, 44, 1, 639953), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 44, 1, 644220), datetime.datetime(2025, 4, 18, 18, 44, 1, 644220), 0)
2025-04-18 18:44:01,644 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,652 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 8ae75f2b-31a6-4357-aa7e-3ea6458d4b26
2025-04-18 18:44:01,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,652 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:01,652 - sqlalchemy.engine.Engine - INFO - [cached since 3.113s ago] ('8ae75f2b-31a6-4357-aa7e-3ea6458d4b26',)
2025-04-18 18:44:01,656 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:44:01,656 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:44:01,656 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:01,656 - sqlalchemy.engine.Engine - INFO - [cached since 3.112s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 44, 1, 656776), '8ae75f2b-31a6-4357-aa7e-3ea6458d4b26')
2025-04-18 18:44:01,656 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,669 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:44:01,669 - sqlalchemy.engine.Engine - INFO - [cached since 3.097s ago] ('ec12b4aa-025a-4e02-8552-eda0d27eebdc',)
2025-04-18 18:44:01,669 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ec12b4aa-025a-4e02-8552-eda0d27eebdc
2025-04-18 18:44:01,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,669 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:44:01,669 - services.execution.handlers.foundation - INFO - 任务 ec12b4aa-025a-4e02-8552-eda0d27eebdc 打印: ['ec12b4aa-025a-4e02-8552-eda0d27eebdc']
2025-04-18 18:44:01,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,669 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:44:01,669 - sqlalchemy.engine.Engine - INFO - [cached since 3.097s ago] ('5ea56c36-a99c-4a13-86b6-db6f2519bbbb', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ec12b4aa-025a-4e02-8552-eda0d27eebdc"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ec12b4aa-025a-4e02-8552-eda0d27eebdc', datetime.datetime(2025, 4, 18, 18, 44, 1, 669789), datetime.datetime(2025, 4, 18, 18, 44, 1, 669789), 0)
2025-04-18 18:44:01,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,678 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:01,678 - sqlalchemy.engine.Engine - INFO - [cached since 3.137s ago] ('8ae75f2b-31a6-4357-aa7e-3ea6458d4b26',)
2025-04-18 18:44:01,678 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:44:01,678 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:44:01,678 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:01,682 - sqlalchemy.engine.Engine - INFO - [cached since 3.095s ago] (datetime.datetime(2025, 4, 18, 18, 44, 1, 678006), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 44, 1, 678006), '8ae75f2b-31a6-4357-aa7e-3ea6458d4b26')
2025-04-18 18:44:01,682 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,690 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,690 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:44:01,690 - sqlalchemy.engine.Engine - INFO - [cached since 3.115s ago] ('90646f10-342f-400a-9001-389be84de772', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ec12b4aa-025a-4e02-8552-eda0d27eebdc"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ec12b4aa-025a-4e02-8552-eda0d27eebdc', datetime.datetime(2025, 4, 18, 18, 44, 1, 690396), datetime.datetime(2025, 4, 18, 18, 44, 1, 690396), 0)
2025-04-18 18:44:01,690 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,699 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:01,699 - sqlalchemy.engine.Engine - INFO - [cached since 3.159s ago] ('7221c9a9-3497-4eb8-9bff-1c271322f24e',)
2025-04-18 18:44:01,702 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:44:01,703 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:44:01,703 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:01,703 - sqlalchemy.engine.Engine - INFO - [cached since 3.119s ago] (datetime.datetime(2025, 4, 18, 18, 44, 1, 703690), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 44, 1, 703690), '7221c9a9-3497-4eb8-9bff-1c271322f24e')
2025-04-18 18:44:01,707 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,715 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:01,715 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:01,715 - sqlalchemy.engine.Engine - INFO - [cached since 3.104s ago] (datetime.datetime(2025, 4, 18, 18, 44, 1, 715530), '任务执行成功', 1000, 130, datetime.datetime(2025, 4, 18, 18, 44, 1, 715530), 'ec12b4aa-025a-4e02-8552-eda0d27eebdc')
2025-04-18 18:44:01,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:01,724 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: ec12b4aa-025a-4e02-8552-eda0d27eebdc, 结果: True
2025-04-18 18:44:04,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,569 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:04,569 - sqlalchemy.engine.Engine - INFO - [cached since 6.135s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:04,571 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:44:04,571 - sqlalchemy.engine.Engine - INFO - [cached since 6.128s ago] ('dbc6b3a4-75ce-4eba-83af-e47fc83b754a', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 44, 4, 569580), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 44, 4, 571426), datetime.datetime(2025, 4, 18, 18, 44, 4, 571426), 0)
2025-04-18 18:44:04,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,577 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,582 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:04,583 - sqlalchemy.engine.Engine - INFO - [cached since 6.112s ago] ('dbc6b3a4-75ce-4eba-83af-e47fc83b754a',)
2025-04-18 18:44:04,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,585 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:44:04,585 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: dbc6b3a4-75ce-4eba-83af-e47fc83b754a, 优先级: 1
2025-04-18 18:44:04,585 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,586 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:04,586 - sqlalchemy.engine.Engine - INFO - [cached since 6.116s ago] ('dbc6b3a4-75ce-4eba-83af-e47fc83b754a',)
2025-04-18 18:44:04,587 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:04,587 - sqlalchemy.engine.Engine - INFO - [cached since 6.152s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:04,588 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:04,588 - sqlalchemy.engine.Engine - INFO - [cached since 6.098s ago] (datetime.datetime(2025, 4, 18, 18, 44, 4, 588811), datetime.datetime(2025, 4, 18, 18, 44, 4, 588811), 'dbc6b3a4-75ce-4eba-83af-e47fc83b754a')
2025-04-18 18:44:04,589 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,595 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,595 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:04,595 - sqlalchemy.engine.Engine - INFO - [cached since 6.092s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 44, 4, 595870), 'dbc6b3a4-75ce-4eba-83af-e47fc83b754a')
2025-04-18 18:44:04,595 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,603 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:44:04,608 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,608 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:44:04,608 - sqlalchemy.engine.Engine - INFO - [cached since 6.074s ago] ('8a2756c8-d71b-4953-922c-d2e844f8a1a0', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dbc6b3a4-75ce-4eba-83af-e47fc83b754a', datetime.datetime(2025, 4, 18, 18, 44, 4, 603965), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 44, 4, 608248), datetime.datetime(2025, 4, 18, 18, 44, 4, 608248), 0)
2025-04-18 18:44:04,609 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,617 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,617 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:04,617 - sqlalchemy.engine.Engine - INFO - [cached since 6.074s ago] ('8a2756c8-d71b-4953-922c-d2e844f8a1a0',)
2025-04-18 18:44:04,621 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:44:04,621 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:44:04,621 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:04,621 - sqlalchemy.engine.Engine - INFO - [cached since 6.077s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 44, 4, 621793), '8a2756c8-d71b-4953-922c-d2e844f8a1a0')
2025-04-18 18:44:04,624 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,628 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:44:04,628 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:44:04,629 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:44:04,630 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,630 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:44:04,632 - sqlalchemy.engine.Engine - INFO - [cached since 6.098s ago] ('6c4c1267-4753-455b-a075-df9d56d8b6d9', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dbc6b3a4-75ce-4eba-83af-e47fc83b754a', datetime.datetime(2025, 4, 18, 18, 44, 4, 629687), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 44, 4, 630692), datetime.datetime(2025, 4, 18, 18, 44, 4, 630692), 0)
2025-04-18 18:44:04,633 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,639 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 6c4c1267-4753-455b-a075-df9d56d8b6d9
2025-04-18 18:44:04,639 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,640 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:04,640 - sqlalchemy.engine.Engine - INFO - [cached since 6.098s ago] ('6c4c1267-4753-455b-a075-df9d56d8b6d9',)
2025-04-18 18:44:04,641 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:44:04,641 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:44:04,641 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:04,641 - sqlalchemy.engine.Engine - INFO - [cached since 6.097s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 44, 4, 641999), '6c4c1267-4753-455b-a075-df9d56d8b6d9')
2025-04-18 18:44:04,643 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,650 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:44:04,650 - sqlalchemy.engine.Engine - INFO - [cached since 6.077s ago] ('dbc6b3a4-75ce-4eba-83af-e47fc83b754a',)
2025-04-18 18:44:04,650 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: dbc6b3a4-75ce-4eba-83af-e47fc83b754a
2025-04-18 18:44:04,650 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,651 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:44:04,651 - services.execution.handlers.foundation - INFO - 任务 dbc6b3a4-75ce-4eba-83af-e47fc83b754a 打印: ['dbc6b3a4-75ce-4eba-83af-e47fc83b754a']
2025-04-18 18:44:04,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,652 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:44:04,652 - sqlalchemy.engine.Engine - INFO - [cached since 6.077s ago] ('3bd00f72-4229-4e07-be44-f6591127cd87', 1, '{"success": true, "message": "打印成功", "output": {"message": ["dbc6b3a4-75ce-4eba-83af-e47fc83b754a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dbc6b3a4-75ce-4eba-83af-e47fc83b754a', datetime.datetime(2025, 4, 18, 18, 44, 4, 652745), datetime.datetime(2025, 4, 18, 18, 44, 4, 652745), 0)
2025-04-18 18:44:04,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,661 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:04,661 - sqlalchemy.engine.Engine - INFO - [cached since 6.119s ago] ('6c4c1267-4753-455b-a075-df9d56d8b6d9',)
2025-04-18 18:44:04,661 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:44:04,662 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:44:04,663 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:04,663 - sqlalchemy.engine.Engine - INFO - [cached since 6.077s ago] (datetime.datetime(2025, 4, 18, 18, 44, 4, 663278), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 44, 4, 663278), '6c4c1267-4753-455b-a075-df9d56d8b6d9')
2025-04-18 18:44:04,663 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,668 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,669 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:44:04,669 - sqlalchemy.engine.Engine - INFO - [cached since 6.094s ago] ('cfef7baf-4fb1-4922-8737-c681285d15d5', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["dbc6b3a4-75ce-4eba-83af-e47fc83b754a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dbc6b3a4-75ce-4eba-83af-e47fc83b754a', datetime.datetime(2025, 4, 18, 18, 44, 4, 669636), datetime.datetime(2025, 4, 18, 18, 44, 4, 669636), 0)
2025-04-18 18:44:04,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,674 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,677 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:04,680 - sqlalchemy.engine.Engine - INFO - [cached since 6.138s ago] ('8a2756c8-d71b-4953-922c-d2e844f8a1a0',)
2025-04-18 18:44:04,683 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:44:04,684 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:44:04,684 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:04,685 - sqlalchemy.engine.Engine - INFO - [cached since 6.098s ago] (datetime.datetime(2025, 4, 18, 18, 44, 4, 684709), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 44, 4, 684709), '8a2756c8-d71b-4953-922c-d2e844f8a1a0')
2025-04-18 18:44:04,685 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,692 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:04,693 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:04,695 - sqlalchemy.engine.Engine - INFO - [cached since 6.08s ago] (datetime.datetime(2025, 4, 18, 18, 44, 4, 691645), '任务执行成功', 1000, 96, datetime.datetime(2025, 4, 18, 18, 44, 4, 693476), 'dbc6b3a4-75ce-4eba-83af-e47fc83b754a')
2025-04-18 18:44:04,699 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:04,707 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: dbc6b3a4-75ce-4eba-83af-e47fc83b754a, 结果: True
2025-04-18 18:44:06,641 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:44:06,641 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:06,641 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:06,641 - sqlalchemy.engine.Engine - INFO - [cached since 8.208s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:06,641 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:44:06,641 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (0, datetime.datetime(2025, 4, 18, 18, 44, 6, 641802), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:44:06,646 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:06,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:06,660 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:06,660 - sqlalchemy.engine.Engine - INFO - [cached since 8.227s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:06,662 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:06,662 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:06,665 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:44:06,665 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:44:06,666 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:44:06,666 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:06,666 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s
2025-04-18 18:44:06,666 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:06,682 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:06,682 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:06,682 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0409秒
2025-04-18 18:44:11,837 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:44:11,837 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:11,837 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:11,837 - sqlalchemy.engine.Engine - INFO - [cached since 13.4s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:11,845 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:44:11,845 - sqlalchemy.engine.Engine - INFO - [cached since 5.202s ago] (0, datetime.datetime(2025, 4, 18, 18, 44, 11, 845308), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:44:11,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:11,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:11,862 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:11,862 - sqlalchemy.engine.Engine - INFO - [cached since 13.43s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:11,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:11,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:11,870 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:44:11,874 - sqlalchemy.engine.Engine - INFO - [cached since 5.21s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:44:11,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:11,874 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s
2025-04-18 18:44:11,874 - sqlalchemy.engine.Engine - INFO - [cached since 5.207s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:11,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:11,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:11,891 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0536秒
2025-04-18 18:44:17,060 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-18 18:44:17,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,063 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:17,063 - sqlalchemy.engine.Engine - INFO - [cached since 18.63s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:17,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,064 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,064 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:17,064 - sqlalchemy.engine.Engine - INFO - [cached since 18.63s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:17,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,064 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:44:17,064 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:44:17,064 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,064 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:17,064 - sqlalchemy.engine.Engine - INFO - [cached since 18.63s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:17,068 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:44:17,068 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] (1, datetime.datetime(2025, 4, 18, 18, 44, 17, 68738), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:44:17,068 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,085 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:44:17,086 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (1, datetime.datetime(2025, 4, 18, 18, 44, 17, 85506), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:44:17,086 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,086 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:44:17,086 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,086 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:17,086 - sqlalchemy.engine.Engine - INFO - [cached since 18.65s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:17,086 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:44:17,086 - sqlalchemy.engine.Engine - INFO - [cached since 18.65s ago] ('8dbae2bb-ecf7-4eef-b32a-8967d7a4d395', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 44, 17, 86440), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 44, 17, 86440), datetime.datetime(2025, 4, 18, 18, 44, 17, 86440), 0)
2025-04-18 18:44:17,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,100 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,100 - sqlalchemy.engine.Engine - INFO - [cached since 18.63s ago] ('8dbae2bb-ecf7-4eef-b32a-8967d7a4d395',)
2025-04-18 18:44:17,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,102 - services.execution.task_scheduler - INFO - 工作线程 3 获取到任务: 8dbae2bb-ecf7-4eef-b32a-8967d7a4d395, 优先级: 1
2025-04-18 18:44:17,102 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0419秒
2025-04-18 18:44:17,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,102 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,102 - sqlalchemy.engine.Engine - INFO - [cached since 18.63s ago] ('8dbae2bb-ecf7-4eef-b32a-8967d7a4d395',)
2025-04-18 18:44:17,102 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:17,102 - sqlalchemy.engine.Engine - INFO - [cached since 18.67s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:17,106 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,106 - sqlalchemy.engine.Engine - INFO - [cached since 18.62s ago] (datetime.datetime(2025, 4, 18, 18, 44, 17, 102579), datetime.datetime(2025, 4, 18, 18, 44, 17, 106995), '8dbae2bb-ecf7-4eef-b32a-8967d7a4d395')
2025-04-18 18:44:17,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,116 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,116 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,116 - sqlalchemy.engine.Engine - INFO - [cached since 18.61s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 44, 17, 116173), '8dbae2bb-ecf7-4eef-b32a-8967d7a4d395')
2025-04-18 18:44:17,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,125 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:44:17,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,129 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:44:17,129 - sqlalchemy.engine.Engine - INFO - [cached since 18.59s ago] ('a4b7cae7-9359-4445-b6f4-eca002d0863a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '8dbae2bb-ecf7-4eef-b32a-8967d7a4d395', datetime.datetime(2025, 4, 18, 18, 44, 17, 127281), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 44, 17, 129462), datetime.datetime(2025, 4, 18, 18, 44, 17, 129462), 0)
2025-04-18 18:44:17,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,134 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,139 - sqlalchemy.engine.Engine - INFO - [cached since 18.6s ago] ('a4b7cae7-9359-4445-b6f4-eca002d0863a',)
2025-04-18 18:44:17,139 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:44:17,139 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:44:17,139 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,139 - sqlalchemy.engine.Engine - INFO - [cached since 18.6s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 44, 17, 139444), 'a4b7cae7-9359-4445-b6f4-eca002d0863a')
2025-04-18 18:44:17,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,148 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:44:17,148 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:44:17,148 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:44:17,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,148 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:44:17,148 - sqlalchemy.engine.Engine - INFO - [cached since 18.62s ago] ('8ac32825-1c65-4457-ba52-9fef5b7b3b43', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '8dbae2bb-ecf7-4eef-b32a-8967d7a4d395', datetime.datetime(2025, 4, 18, 18, 44, 17, 148807), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 44, 17, 148807), datetime.datetime(2025, 4, 18, 18, 44, 17, 148807), 0)
2025-04-18 18:44:17,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,158 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 8ac32825-1c65-4457-ba52-9fef5b7b3b43
2025-04-18 18:44:17,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,159 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,159 - sqlalchemy.engine.Engine - INFO - [cached since 18.62s ago] ('8ac32825-1c65-4457-ba52-9fef5b7b3b43',)
2025-04-18 18:44:17,160 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:44:17,160 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:44:17,160 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,160 - sqlalchemy.engine.Engine - INFO - [cached since 18.62s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 44, 17, 160785), '8ac32825-1c65-4457-ba52-9fef5b7b3b43')
2025-04-18 18:44:17,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,168 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:44:17,168 - sqlalchemy.engine.Engine - INFO - [cached since 18.59s ago] ('8dbae2bb-ecf7-4eef-b32a-8967d7a4d395',)
2025-04-18 18:44:17,168 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 8dbae2bb-ecf7-4eef-b32a-8967d7a4d395
2025-04-18 18:44:17,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,168 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:44:17,168 - services.execution.handlers.foundation - INFO - 任务 8dbae2bb-ecf7-4eef-b32a-8967d7a4d395 打印: ['8dbae2bb-ecf7-4eef-b32a-8967d7a4d395']
2025-04-18 18:44:17,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,168 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:44:17,168 - sqlalchemy.engine.Engine - INFO - [cached since 18.59s ago] ('62b7dec3-8924-4c51-b34e-c299709524bf', 1, '{"success": true, "message": "打印成功", "output": {"message": ["8dbae2bb-ecf7-4eef-b32a-8967d7a4d395"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '8dbae2bb-ecf7-4eef-b32a-8967d7a4d395', datetime.datetime(2025, 4, 18, 18, 44, 17, 168212), datetime.datetime(2025, 4, 18, 18, 44, 17, 168212), 0)
2025-04-18 18:44:17,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,178 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,179 - sqlalchemy.engine.Engine - INFO - [cached since 18.64s ago] ('8ac32825-1c65-4457-ba52-9fef5b7b3b43',)
2025-04-18 18:44:17,180 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:44:17,180 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:44:17,181 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,181 - sqlalchemy.engine.Engine - INFO - [cached since 18.6s ago] (datetime.datetime(2025, 4, 18, 18, 44, 17, 180920), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 44, 17, 181919), '8ac32825-1c65-4457-ba52-9fef5b7b3b43')
2025-04-18 18:44:17,183 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,189 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,190 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:44:17,191 - sqlalchemy.engine.Engine - INFO - [cached since 18.62s ago] ('85ae3dbf-516a-4fea-8006-69375abdc608', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["8dbae2bb-ecf7-4eef-b32a-8967d7a4d395"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '8dbae2bb-ecf7-4eef-b32a-8967d7a4d395', datetime.datetime(2025, 4, 18, 18, 44, 17, 190982), datetime.datetime(2025, 4, 18, 18, 44, 17, 190982), 0)
2025-04-18 18:44:17,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,208 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,209 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,210 - sqlalchemy.engine.Engine - INFO - [cached since 18.67s ago] ('a4b7cae7-9359-4445-b6f4-eca002d0863a',)
2025-04-18 18:44:17,211 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:44:17,215 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:44:17,215 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,215 - sqlalchemy.engine.Engine - INFO - [cached since 18.63s ago] (datetime.datetime(2025, 4, 18, 18, 44, 17, 215397), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 44, 17, 215397), 'a4b7cae7-9359-4445-b6f4-eca002d0863a')
2025-04-18 18:44:17,219 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,231 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,233 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,238 - sqlalchemy.engine.Engine - INFO - [cached since 18.62s ago] (datetime.datetime(2025, 4, 18, 18, 44, 17, 230563), '任务执行成功', 1000, 114, datetime.datetime(2025, 4, 18, 18, 44, 17, 233031), '8dbae2bb-ecf7-4eef-b32a-8967d7a4d395')
2025-04-18 18:44:17,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,250 - services.execution.task_scheduler - INFO - 工作线程 3 完成任务: 8dbae2bb-ecf7-4eef-b32a-8967d7a4d395, 结果: True
2025-04-18 18:44:17,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,699 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:17,700 - sqlalchemy.engine.Engine - INFO - [cached since 19.27s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:17,702 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:44:17,702 - sqlalchemy.engine.Engine - INFO - [cached since 19.26s ago] ('ea9df813-847a-435c-bd60-9a26ea44e29b', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 44, 17, 702554), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 44, 17, 702554), datetime.datetime(2025, 4, 18, 18, 44, 17, 702554), 0)
2025-04-18 18:44:17,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,710 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,710 - sqlalchemy.engine.Engine - INFO - [cached since 19.24s ago] ('ea9df813-847a-435c-bd60-9a26ea44e29b',)
2025-04-18 18:44:17,711 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,712 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:44:17,712 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: ea9df813-847a-435c-bd60-9a26ea44e29b, 优先级: 1
2025-04-18 18:44:17,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,713 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,714 - sqlalchemy.engine.Engine - INFO - [cached since 19.24s ago] ('ea9df813-847a-435c-bd60-9a26ea44e29b',)
2025-04-18 18:44:17,715 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:17,715 - sqlalchemy.engine.Engine - INFO - [cached since 19.28s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:17,716 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,716 - sqlalchemy.engine.Engine - INFO - [cached since 19.23s ago] (datetime.datetime(2025, 4, 18, 18, 44, 17, 716645), datetime.datetime(2025, 4, 18, 18, 44, 17, 716645), 'ea9df813-847a-435c-bd60-9a26ea44e29b')
2025-04-18 18:44:17,717 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,724 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,725 - sqlalchemy.engine.Engine - INFO - [cached since 19.22s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 44, 17, 724463), 'ea9df813-847a-435c-bd60-9a26ea44e29b')
2025-04-18 18:44:17,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,733 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:44:17,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,733 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:44:17,733 - sqlalchemy.engine.Engine - INFO - [cached since 19.2s ago] ('8cfed2cc-eea5-447f-8d4c-1aff13757b81', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ea9df813-847a-435c-bd60-9a26ea44e29b', datetime.datetime(2025, 4, 18, 18, 44, 17, 733215), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 44, 17, 733215), datetime.datetime(2025, 4, 18, 18, 44, 17, 733215), 0)
2025-04-18 18:44:17,733 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,742 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,742 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,743 - sqlalchemy.engine.Engine - INFO - [cached since 19.2s ago] ('8cfed2cc-eea5-447f-8d4c-1aff13757b81',)
2025-04-18 18:44:17,743 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:44:17,745 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:44:17,745 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,745 - sqlalchemy.engine.Engine - INFO - [cached since 19.2s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 44, 17, 745059), '8cfed2cc-eea5-447f-8d4c-1aff13757b81')
2025-04-18 18:44:17,746 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,751 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:44:17,751 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:44:17,752 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:44:17,752 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,752 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:44:17,753 - sqlalchemy.engine.Engine - INFO - [cached since 19.22s ago] ('3a5e480a-16ce-4c9c-99f5-94093e365c87', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ea9df813-847a-435c-bd60-9a26ea44e29b', datetime.datetime(2025, 4, 18, 18, 44, 17, 752535), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 44, 17, 752535), datetime.datetime(2025, 4, 18, 18, 44, 17, 752535), 0)
2025-04-18 18:44:17,753 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,761 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 3a5e480a-16ce-4c9c-99f5-94093e365c87
2025-04-18 18:44:17,762 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,762 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,762 - sqlalchemy.engine.Engine - INFO - [cached since 19.22s ago] ('3a5e480a-16ce-4c9c-99f5-94093e365c87',)
2025-04-18 18:44:17,763 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:44:17,763 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:44:17,763 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,763 - sqlalchemy.engine.Engine - INFO - [cached since 19.22s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 44, 17, 763841), '3a5e480a-16ce-4c9c-99f5-94093e365c87')
2025-04-18 18:44:17,765 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,770 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:44:17,770 - sqlalchemy.engine.Engine - INFO - [cached since 19.2s ago] ('ea9df813-847a-435c-bd60-9a26ea44e29b',)
2025-04-18 18:44:17,771 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ea9df813-847a-435c-bd60-9a26ea44e29b
2025-04-18 18:44:17,771 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,771 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:44:17,771 - services.execution.handlers.foundation - INFO - 任务 ea9df813-847a-435c-bd60-9a26ea44e29b 打印: ['ea9df813-847a-435c-bd60-9a26ea44e29b']
2025-04-18 18:44:17,772 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,773 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:44:17,775 - sqlalchemy.engine.Engine - INFO - [cached since 19.2s ago] ('26484a55-082c-450f-a46f-db42738b8a7f', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ea9df813-847a-435c-bd60-9a26ea44e29b"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ea9df813-847a-435c-bd60-9a26ea44e29b', datetime.datetime(2025, 4, 18, 18, 44, 17, 773880), datetime.datetime(2025, 4, 18, 18, 44, 17, 773880), 0)
2025-04-18 18:44:17,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,783 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,783 - sqlalchemy.engine.Engine - INFO - [cached since 19.24s ago] ('3a5e480a-16ce-4c9c-99f5-94093e365c87',)
2025-04-18 18:44:17,785 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:44:17,785 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:44:17,785 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,785 - sqlalchemy.engine.Engine - INFO - [cached since 19.2s ago] (datetime.datetime(2025, 4, 18, 18, 44, 17, 785233), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 44, 17, 785233), '3a5e480a-16ce-4c9c-99f5-94093e365c87')
2025-04-18 18:44:17,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,794 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:44:17,794 - sqlalchemy.engine.Engine - INFO - [cached since 19.22s ago] ('2d111e7e-4a9d-4424-9216-0266967830a3', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ea9df813-847a-435c-bd60-9a26ea44e29b"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ea9df813-847a-435c-bd60-9a26ea44e29b', datetime.datetime(2025, 4, 18, 18, 44, 17, 794638), datetime.datetime(2025, 4, 18, 18, 44, 17, 794638), 0)
2025-04-18 18:44:17,795 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,801 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,801 - sqlalchemy.engine.Engine - INFO - [cached since 19.26s ago] ('8cfed2cc-eea5-447f-8d4c-1aff13757b81',)
2025-04-18 18:44:17,803 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:44:17,803 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:44:17,804 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:44:17,804 - sqlalchemy.engine.Engine - INFO - [cached since 19.22s ago] (datetime.datetime(2025, 4, 18, 18, 44, 17, 803000), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 44, 17, 804004), '8cfed2cc-eea5-447f-8d4c-1aff13757b81')
2025-04-18 18:44:17,804 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,810 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:17,811 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:44:17,811 - sqlalchemy.engine.Engine - INFO - [cached since 19.2s ago] (datetime.datetime(2025, 4, 18, 18, 44, 17, 810824), '任务执行成功', 1000, 87, datetime.datetime(2025, 4, 18, 18, 44, 17, 811820), 'ea9df813-847a-435c-bd60-9a26ea44e29b')
2025-04-18 18:44:17,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:17,819 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: ea9df813-847a-435c-bd60-9a26ea44e29b, 结果: True
2025-04-18 18:44:19,986 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:44:19,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:19,986 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:19,986 - sqlalchemy.engine.Engine - INFO - [cached since 21.55s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:19,986 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:44:19,986 - sqlalchemy.engine.Engine - INFO - [cached since 13.34s ago] (0, datetime.datetime(2025, 4, 18, 18, 44, 19, 986753), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:44:19,989 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - [cached since 21.56s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - [cached since 13.34s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s
2025-04-18 18:44:19,999 - sqlalchemy.engine.Engine - INFO - [cached since 13.33s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:44:20,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:20,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:44:20,019 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0327秒
2025-04-18 18:45:21,242 - root - INFO - 应用程序关闭中...
2025-04-18 18:45:21,242 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 18:45:21,242 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 18:45:21,242 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 18:45:21,242 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 18:45:21,242 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 18:45:21,250 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 18:45:21,250 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 18:45:21,250 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 18:45:21,250 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 18:45:21,250 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 18:45:21,255 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 18:45:21,255 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 18:45:21,255 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 18:45:21,255 - root - INFO - 任务调度器已停止
2025-04-18 18:45:21,255 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 18:45:21,255 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 18:45:21,255 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 18:45:21,255 - data.session - INFO - 数据库连接已关闭
2025-04-18 18:45:22,538 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 18:45:22,538 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 18:45:22,599 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 18:45:22,646 - data.session - INFO - 正在初始化数据库...
2025-04-18 18:45:22,678 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 18:45:22,695 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:45:22,695 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,695 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:45:22,695 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,695 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:45:22,695 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:45:22,699 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 18:45:22,699 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,699 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 18:45:22,699 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 18:45:22,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 18:45:22,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 18:45:22,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 18:45:22,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,707 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 18:45:22,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,707 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 18:45:22,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,707 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 18:45:22,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,707 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 18:45:22,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,711 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 18:45:22,711 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:45:22,712 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:45:22,712 - data.session - INFO - 数据库表初始化完成
2025-04-18 18:45:23,045 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 18:45:23,045 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 18:45:23,045 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 18:45:23,045 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 18:45:23,045 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 18:45:23,045 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 18:45:23,070 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:45:23,070 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:45:23,070 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:45:23,070 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:45:23,070 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:45:23,070 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:45:23,070 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:45:23,074 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:45:23,080 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 18:45:23,082 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, 1)
2025-04-18 18:45:23,082 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-18 18:45:23,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:45:23,082 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 18:45:23,082 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 18:46:09,800 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:46:09,805 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:46:09,805 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:46:09,805 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:46:09,805 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:46:09,805 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (0, datetime.datetime(2025, 4, 18, 18, 46, 9, 805395), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:46:09,805 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:46:09,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:46:09,813 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:46:09,813 - sqlalchemy.engine.Engine - INFO - [cached since 0.01071s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:46:09,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:46:09,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:46:09,818 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:46:09,818 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:46:09,837 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:46:09,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:46:09,841 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s
2025-04-18 18:46:09,841 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:46:09,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:46:09,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:46:09,858 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0582秒
2025-04-18 18:46:10,585 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:46:10,585 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:46:10,585 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:46:10,585 - sqlalchemy.engine.Engine - INFO - [cached since 0.7808s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:46:10,588 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:46:10,588 - sqlalchemy.engine.Engine - INFO - [cached since 0.7804s ago] (0, datetime.datetime(2025, 4, 18, 18, 46, 10, 588242), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:46:10,588 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:46:10,600 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:46:10,600 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:46:10,604 - sqlalchemy.engine.Engine - INFO - [cached since 0.7984s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:46:10,605 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:46:10,605 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:46:10,605 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:46:10,605 - sqlalchemy.engine.Engine - INFO - [cached since 0.7877s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:46:10,608 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:46:10,608 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s
2025-04-18 18:46:10,608 - sqlalchemy.engine.Engine - INFO - [cached since 0.7682s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:46:10,621 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:46:10,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:46:10,629 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0442秒
2025-04-18 18:50:21,972 - root - INFO - 应用程序关闭中...
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 18:50:21,972 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 18:50:21,972 - root - INFO - 任务调度器已停止
2025-04-18 18:50:21,972 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 18:50:21,972 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 18:50:21,972 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 18:50:21,972 - data.session - INFO - 数据库连接已关闭
2025-04-18 18:50:23,356 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 18:50:23,360 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 18:50:23,418 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 18:50:23,469 - data.session - INFO - 正在初始化数据库...
2025-04-18 18:50:23,494 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 18:50:23,505 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:50:23,505 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,505 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:50:23,505 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,510 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:50:23,510 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,514 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:50:23,519 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 18:50:23,519 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,519 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 18:50:23,523 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,530 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 18:50:23,530 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,535 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 18:50:23,536 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,540 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 18:50:23,540 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,540 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 18:50:23,544 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,551 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 18:50:23,553 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,553 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 18:50:23,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,557 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 18:50:23,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,561 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 18:50:23,561 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,565 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 18:50:23,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:50:23,570 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:50:23,570 - data.session - INFO - 数据库表初始化完成
2025-04-18 18:50:23,931 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 18:50:23,931 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 18:50:23,934 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 18:50:23,934 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 18:50:23,935 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 18:50:23,936 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 18:50:23,950 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:50:23,952 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:50:23,952 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:50:23,952 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:50:23,952 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:50:23,952 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:50:23,952 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:50:23,952 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:50:23,961 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 18:50:23,967 - sqlalchemy.engine.Engine - INFO - [generated in 0.00329s] (1, 1)
2025-04-18 18:50:23,969 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-18 18:50:23,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:50:23,973 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 18:50:23,973 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 18:51:13,018 - root - INFO - 应用程序关闭中...
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 18:51:13,018 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 18:51:13,021 - root - INFO - 任务调度器已停止
2025-04-18 18:51:13,021 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 18:51:13,021 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 18:51:13,021 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 18:51:13,021 - data.session - INFO - 数据库连接已关闭
2025-04-18 18:51:14,236 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-18 18:51:14,236 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-18 18:51:14,294 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-18 18:51:14,340 - data.session - INFO - 正在初始化数据库...
2025-04-18 18:51:14,356 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-18 18:51:14,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-18 18:51:14,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-18 18:51:14,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-18 18:51:14,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,368 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-18 18:51:14,368 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,368 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-18 18:51:14,368 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,373 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-18 18:51:14,373 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,373 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-18 18:51:14,373 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,373 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-18 18:51:14,373 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,377 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-18 18:51:14,377 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-18 18:51:14,377 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:14,377 - data.session - INFO - 数据库表初始化完成
2025-04-18 18:51:14,710 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-18 18:51:14,714 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-18 18:51:14,715 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-18 18:51:14,715 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-18 18:51:14,716 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-18 18:51:14,716 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-18 18:51:14,718 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:51:14,719 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-18 18:51:14,720 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:51:14,720 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-18 18:51:14,720 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:51:14,722 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-18 18:51:14,722 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-18 18:51:14,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:14,731 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-18 18:51:14,731 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1, 1)
2025-04-18 18:51:14,732 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-18 18:51:14,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:14,732 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-18 18:51:14,732 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-18 18:51:20,372 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-18 18:51:20,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,376 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:20,376 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:20,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,379 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:20,379 - sqlalchemy.engine.Engine - INFO - [cached since 0.003467s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:20,380 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,380 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:51:20,380 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:51:20,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,380 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:20,380 - sqlalchemy.engine.Engine - INFO - [cached since 0.006294s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:20,384 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:51:20,384 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (1, datetime.datetime(2025, 4, 18, 18, 51, 20, 384820), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:51:20,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,392 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:51:20,392 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1, datetime.datetime(2025, 4, 18, 18, 51, 20, 392874), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:51:20,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,397 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-18 18:51:20,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,398 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:20,398 - sqlalchemy.engine.Engine - INFO - [cached since 0.02148s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:20,398 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:51:20,398 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('eb60ec8e-15d8-4c43-a7bf-3780f524bf0e', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 51, 20, 398003), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 51, 20, 398003), datetime.datetime(2025, 4, 18, 18, 51, 20, 398003), 0)
2025-04-18 18:51:20,401 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,405 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,409 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,409 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] ('eb60ec8e-15d8-4c43-a7bf-3780f524bf0e',)
2025-04-18 18:51:20,409 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,409 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: eb60ec8e-15d8-4c43-a7bf-3780f524bf0e, 优先级: 1
2025-04-18 18:51:20,409 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0371秒
2025-04-18 18:51:20,413 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,413 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,413 - sqlalchemy.engine.Engine - INFO - [cached since 0.006875s ago] ('eb60ec8e-15d8-4c43-a7bf-3780f524bf0e',)
2025-04-18 18:51:20,413 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:20,418 - sqlalchemy.engine.Engine - INFO - [cached since 0.04124s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:20,418 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,418 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (datetime.datetime(2025, 4, 18, 18, 51, 20, 418029), datetime.datetime(2025, 4, 18, 18, 51, 20, 418029), 'eb60ec8e-15d8-4c43-a7bf-3780f524bf0e')
2025-04-18 18:51:20,418 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,426 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,426 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,430 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 51, 20, 426555), 'eb60ec8e-15d8-4c43-a7bf-3780f524bf0e')
2025-04-18 18:51:20,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,439 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:51:20,439 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,443 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:51:20,443 - sqlalchemy.engine.Engine - INFO - [generated in 0.00210s] ('9a86adb8-1aab-4870-929b-d08af2bf6bbd', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb60ec8e-15d8-4c43-a7bf-3780f524bf0e', datetime.datetime(2025, 4, 18, 18, 51, 20, 439628), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 51, 20, 443730), datetime.datetime(2025, 4, 18, 18, 51, 20, 443730), 0)
2025-04-18 18:51:20,447 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,460 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,465 - sqlalchemy.engine.Engine - INFO - [generated in 0.00378s] ('9a86adb8-1aab-4870-929b-d08af2bf6bbd',)
2025-04-18 18:51:20,465 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:51:20,469 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:51:20,473 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,473 - sqlalchemy.engine.Engine - INFO - [generated in 0.00142s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 51, 20, 473467), '9a86adb8-1aab-4870-929b-d08af2bf6bbd')
2025-04-18 18:51:20,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,485 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:51:20,485 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:51:20,490 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:51:20,490 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,494 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:51:20,494 - sqlalchemy.engine.Engine - INFO - [cached since 0.05249s ago] ('466fc9a9-2635-422b-a506-af32734e8e20', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb60ec8e-15d8-4c43-a7bf-3780f524bf0e', datetime.datetime(2025, 4, 18, 18, 51, 20, 490371), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 51, 20, 494744), datetime.datetime(2025, 4, 18, 18, 51, 20, 494744), 0)
2025-04-18 18:51:20,499 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,515 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 466fc9a9-2635-422b-a506-af32734e8e20
2025-04-18 18:51:20,520 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,520 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,524 - sqlalchemy.engine.Engine - INFO - [cached since 0.0636s ago] ('466fc9a9-2635-422b-a506-af32734e8e20',)
2025-04-18 18:51:20,528 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:51:20,528 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:51:20,528 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,528 - sqlalchemy.engine.Engine - INFO - [cached since 0.05575s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 51, 20, 528543), '466fc9a9-2635-422b-a506-af32734e8e20')
2025-04-18 18:51:20,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,541 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:51:20,545 - sqlalchemy.engine.Engine - INFO - [generated in 0.00115s] ('eb60ec8e-15d8-4c43-a7bf-3780f524bf0e',)
2025-04-18 18:51:20,545 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: eb60ec8e-15d8-4c43-a7bf-3780f524bf0e
2025-04-18 18:51:20,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,549 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:51:20,549 - services.execution.handlers.foundation - INFO - 任务 eb60ec8e-15d8-4c43-a7bf-3780f524bf0e 打印: ['eb60ec8e-15d8-4c43-a7bf-3780f524bf0e']
2025-04-18 18:51:20,549 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,554 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:51:20,554 - sqlalchemy.engine.Engine - INFO - [generated in 0.00159s] ('74a8d045-6f8a-4853-8cc2-ab30737af4e5', 1, '{"success": true, "message": "打印成功", "output": {"message": ["eb60ec8e-15d8-4c43-a7bf-3780f524bf0e"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb60ec8e-15d8-4c43-a7bf-3780f524bf0e', datetime.datetime(2025, 4, 18, 18, 51, 20, 554082), datetime.datetime(2025, 4, 18, 18, 51, 20, 554082), 0)
2025-04-18 18:51:20,558 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,566 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,566 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,571 - sqlalchemy.engine.Engine - INFO - [cached since 0.1113s ago] ('466fc9a9-2635-422b-a506-af32734e8e20',)
2025-04-18 18:51:20,571 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:51:20,571 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:51:20,575 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,575 - sqlalchemy.engine.Engine - INFO - [generated in 0.00123s] (datetime.datetime(2025, 4, 18, 18, 51, 20, 575803), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 51, 20, 575803), '466fc9a9-2635-422b-a506-af32734e8e20')
2025-04-18 18:51:20,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,588 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:51:20,593 - sqlalchemy.engine.Engine - INFO - [cached since 0.03938s ago] ('8b90532a-612c-4e21-b95f-87231378401e', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["eb60ec8e-15d8-4c43-a7bf-3780f524bf0e"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb60ec8e-15d8-4c43-a7bf-3780f524bf0e', datetime.datetime(2025, 4, 18, 18, 51, 20, 588934), datetime.datetime(2025, 4, 18, 18, 51, 20, 588934), 0)
2025-04-18 18:51:20,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,606 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,607 - sqlalchemy.engine.Engine - INFO - [cached since 0.1465s ago] ('9a86adb8-1aab-4870-929b-d08af2bf6bbd',)
2025-04-18 18:51:20,610 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:51:20,610 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:51:20,616 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,617 - sqlalchemy.engine.Engine - INFO - [cached since 0.04014s ago] (datetime.datetime(2025, 4, 18, 18, 51, 20, 616803), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 51, 20, 616803), '9a86adb8-1aab-4870-929b-d08af2bf6bbd')
2025-04-18 18:51:20,617 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,625 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,625 - sqlalchemy.engine.Engine - INFO - [generated in 0.00084s] (datetime.datetime(2025, 4, 18, 18, 51, 20, 625844), '任务执行成功', 1000, 199, datetime.datetime(2025, 4, 18, 18, 51, 20, 625844), 'eb60ec8e-15d8-4c43-a7bf-3780f524bf0e')
2025-04-18 18:51:20,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,641 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: eb60ec8e-15d8-4c43-a7bf-3780f524bf0e, 结果: True
2025-04-18 18:51:20,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,738 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:20,738 - sqlalchemy.engine.Engine - INFO - [cached since 0.3652s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:20,743 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:51:20,743 - sqlalchemy.engine.Engine - INFO - [cached since 0.3446s ago] ('4fc8a203-7ada-42f8-b0f9-bd4f381486ff', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 51, 20, 743236), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 51, 20, 743236), datetime.datetime(2025, 4, 18, 18, 51, 20, 743236), 0)
2025-04-18 18:51:20,743 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,755 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,755 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,759 - sqlalchemy.engine.Engine - INFO - [cached since 0.3496s ago] ('4fc8a203-7ada-42f8-b0f9-bd4f381486ff',)
2025-04-18 18:51:20,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,760 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:51:20,760 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: 4fc8a203-7ada-42f8-b0f9-bd4f381486ff, 优先级: 1
2025-04-18 18:51:20,760 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,760 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,760 - sqlalchemy.engine.Engine - INFO - [cached since 0.353s ago] ('4fc8a203-7ada-42f8-b0f9-bd4f381486ff',)
2025-04-18 18:51:20,763 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:20,763 - sqlalchemy.engine.Engine - INFO - [cached since 0.3873s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:20,763 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,763 - sqlalchemy.engine.Engine - INFO - [cached since 0.3462s ago] (datetime.datetime(2025, 4, 18, 18, 51, 20, 763319), datetime.datetime(2025, 4, 18, 18, 51, 20, 763319), '4fc8a203-7ada-42f8-b0f9-bd4f381486ff')
2025-04-18 18:51:20,763 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,771 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,773 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,773 - sqlalchemy.engine.Engine - INFO - [cached since 0.3446s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 51, 20, 773528), '4fc8a203-7ada-42f8-b0f9-bd4f381486ff')
2025-04-18 18:51:20,775 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,782 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:51:20,782 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,788 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:51:20,788 - sqlalchemy.engine.Engine - INFO - [cached since 0.346s ago] ('ca500cfe-8001-4834-a6e3-821ff2e11aab', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4fc8a203-7ada-42f8-b0f9-bd4f381486ff', datetime.datetime(2025, 4, 18, 18, 51, 20, 782180), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 51, 20, 788454), datetime.datetime(2025, 4, 18, 18, 51, 20, 788454), 0)
2025-04-18 18:51:20,788 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,798 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,798 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,801 - sqlalchemy.engine.Engine - INFO - [cached since 0.3411s ago] ('ca500cfe-8001-4834-a6e3-821ff2e11aab',)
2025-04-18 18:51:20,805 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:51:20,805 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:51:20,809 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,810 - sqlalchemy.engine.Engine - INFO - [cached since 0.3367s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 51, 20, 809769), 'ca500cfe-8001-4834-a6e3-821ff2e11aab')
2025-04-18 18:51:20,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,822 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:51:20,826 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:51:20,830 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:51:20,830 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,834 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:51:20,838 - sqlalchemy.engine.Engine - INFO - [cached since 0.3954s ago] ('199456c9-6888-4973-be63-757cee98f11f', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4fc8a203-7ada-42f8-b0f9-bd4f381486ff', datetime.datetime(2025, 4, 18, 18, 51, 20, 830399), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 51, 20, 834574), datetime.datetime(2025, 4, 18, 18, 51, 20, 834574), 0)
2025-04-18 18:51:20,838 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,846 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 199456c9-6888-4973-be63-757cee98f11f
2025-04-18 18:51:20,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,850 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,855 - sqlalchemy.engine.Engine - INFO - [cached since 0.3942s ago] ('199456c9-6888-4973-be63-757cee98f11f',)
2025-04-18 18:51:20,855 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:51:20,855 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:51:20,855 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,859 - sqlalchemy.engine.Engine - INFO - [cached since 0.3831s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 51, 20, 855419), '199456c9-6888-4973-be63-757cee98f11f')
2025-04-18 18:51:20,859 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,869 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:51:20,872 - sqlalchemy.engine.Engine - INFO - [cached since 0.33s ago] ('4fc8a203-7ada-42f8-b0f9-bd4f381486ff',)
2025-04-18 18:51:20,872 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 4fc8a203-7ada-42f8-b0f9-bd4f381486ff
2025-04-18 18:51:20,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,880 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:51:20,880 - services.execution.handlers.foundation - INFO - 任务 4fc8a203-7ada-42f8-b0f9-bd4f381486ff 打印: ['4fc8a203-7ada-42f8-b0f9-bd4f381486ff']
2025-04-18 18:51:20,880 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,880 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:51:20,885 - sqlalchemy.engine.Engine - INFO - [cached since 0.331s ago] ('0cc3f1d4-5cd5-45ed-b197-22bb89500182', 1, '{"success": true, "message": "打印成功", "output": {"message": ["4fc8a203-7ada-42f8-b0f9-bd4f381486ff"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4fc8a203-7ada-42f8-b0f9-bd4f381486ff', datetime.datetime(2025, 4, 18, 18, 51, 20, 880773), datetime.datetime(2025, 4, 18, 18, 51, 20, 880773), 0)
2025-04-18 18:51:20,885 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,893 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,893 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,898 - sqlalchemy.engine.Engine - INFO - [cached since 0.4382s ago] ('199456c9-6888-4973-be63-757cee98f11f',)
2025-04-18 18:51:20,898 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:51:20,898 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:51:20,902 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,902 - sqlalchemy.engine.Engine - INFO - [cached since 0.3255s ago] (datetime.datetime(2025, 4, 18, 18, 51, 20, 898276), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 51, 20, 898276), '199456c9-6888-4973-be63-757cee98f11f')
2025-04-18 18:51:20,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,915 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,919 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:51:20,923 - sqlalchemy.engine.Engine - INFO - [cached since 0.3697s ago] ('fc3a6ea2-4e17-4023-9f9a-fedfbfc2416d', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["4fc8a203-7ada-42f8-b0f9-bd4f381486ff"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4fc8a203-7ada-42f8-b0f9-bd4f381486ff', datetime.datetime(2025, 4, 18, 18, 51, 20, 919236), datetime.datetime(2025, 4, 18, 18, 51, 20, 919236), 0)
2025-04-18 18:51:20,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,931 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,932 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,932 - sqlalchemy.engine.Engine - INFO - [cached since 0.4715s ago] ('ca500cfe-8001-4834-a6e3-821ff2e11aab',)
2025-04-18 18:51:20,933 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:51:20,933 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:51:20,934 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:20,934 - sqlalchemy.engine.Engine - INFO - [cached since 0.3573s ago] (datetime.datetime(2025, 4, 18, 18, 51, 20, 933810), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 51, 20, 934359), 'ca500cfe-8001-4834-a6e3-821ff2e11aab')
2025-04-18 18:51:20,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:20,942 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:20,943 - sqlalchemy.engine.Engine - INFO - [cached since 0.3173s ago] (datetime.datetime(2025, 4, 18, 18, 51, 20, 942821), '任务执行成功', 1000, 171, datetime.datetime(2025, 4, 18, 18, 51, 20, 942821), '4fc8a203-7ada-42f8-b0f9-bd4f381486ff')
2025-04-18 18:51:20,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:20,951 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: 4fc8a203-7ada-42f8-b0f9-bd4f381486ff, 结果: True
2025-04-18 18:51:23,772 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,772 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:23,773 - sqlalchemy.engine.Engine - INFO - [cached since 3.397s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:23,774 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:51:23,774 - sqlalchemy.engine.Engine - INFO - [cached since 3.375s ago] ('76edb909-2502-47e2-a1ab-c5e5622fb273', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 51, 23, 773856), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 51, 23, 774387), datetime.datetime(2025, 4, 18, 18, 51, 23, 774387), 0)
2025-04-18 18:51:23,776 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,784 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:23,784 - sqlalchemy.engine.Engine - INFO - [cached since 3.375s ago] ('76edb909-2502-47e2-a1ab-c5e5622fb273',)
2025-04-18 18:51:23,785 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,785 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:51:23,785 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: 76edb909-2502-47e2-a1ab-c5e5622fb273, 优先级: 1
2025-04-18 18:51:23,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,787 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:23,787 - sqlalchemy.engine.Engine - INFO - [cached since 3.379s ago] ('76edb909-2502-47e2-a1ab-c5e5622fb273',)
2025-04-18 18:51:23,787 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:23,787 - sqlalchemy.engine.Engine - INFO - [cached since 3.413s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:23,790 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:23,790 - sqlalchemy.engine.Engine - INFO - [cached since 3.372s ago] (datetime.datetime(2025, 4, 18, 18, 51, 23, 790382), datetime.datetime(2025, 4, 18, 18, 51, 23, 790382), '76edb909-2502-47e2-a1ab-c5e5622fb273')
2025-04-18 18:51:23,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,794 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:23,794 - sqlalchemy.engine.Engine - INFO - [cached since 3.368s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 51, 23, 794580), '76edb909-2502-47e2-a1ab-c5e5622fb273')
2025-04-18 18:51:23,798 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,807 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:51:23,807 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,807 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:51:23,807 - sqlalchemy.engine.Engine - INFO - [cached since 3.364s ago] ('ece5d188-f21e-490f-ae4f-3e774697395c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '76edb909-2502-47e2-a1ab-c5e5622fb273', datetime.datetime(2025, 4, 18, 18, 51, 23, 807281), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 51, 23, 807281), datetime.datetime(2025, 4, 18, 18, 51, 23, 807281), 0)
2025-04-18 18:51:23,808 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,812 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,812 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:23,812 - sqlalchemy.engine.Engine - INFO - [cached since 3.354s ago] ('ece5d188-f21e-490f-ae4f-3e774697395c',)
2025-04-18 18:51:23,816 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:51:23,816 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:51:23,816 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:23,817 - sqlalchemy.engine.Engine - INFO - [cached since 3.341s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 51, 23, 816617), 'ece5d188-f21e-490f-ae4f-3e774697395c')
2025-04-18 18:51:23,817 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,824 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:51:23,824 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:51:23,824 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:51:23,824 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,824 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:51:23,824 - sqlalchemy.engine.Engine - INFO - [cached since 3.383s ago] ('b2eea027-5449-4610-b7ea-46ab9079a46b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '76edb909-2502-47e2-a1ab-c5e5622fb273', datetime.datetime(2025, 4, 18, 18, 51, 23, 824657), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 51, 23, 824657), datetime.datetime(2025, 4, 18, 18, 51, 23, 824657), 0)
2025-04-18 18:51:23,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,833 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b2eea027-5449-4610-b7ea-46ab9079a46b
2025-04-18 18:51:23,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,834 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:23,834 - sqlalchemy.engine.Engine - INFO - [cached since 3.374s ago] ('b2eea027-5449-4610-b7ea-46ab9079a46b',)
2025-04-18 18:51:23,834 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:51:23,834 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:51:23,834 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:23,834 - sqlalchemy.engine.Engine - INFO - [cached since 3.361s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 51, 23, 834275), 'b2eea027-5449-4610-b7ea-46ab9079a46b')
2025-04-18 18:51:23,837 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,845 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,845 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:51:23,845 - sqlalchemy.engine.Engine - INFO - [cached since 3.302s ago] ('76edb909-2502-47e2-a1ab-c5e5622fb273',)
2025-04-18 18:51:23,845 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 76edb909-2502-47e2-a1ab-c5e5622fb273
2025-04-18 18:51:23,845 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,845 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:51:23,845 - services.execution.handlers.foundation - INFO - 任务 76edb909-2502-47e2-a1ab-c5e5622fb273 打印: ['76edb909-2502-47e2-a1ab-c5e5622fb273']
2025-04-18 18:51:23,845 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,849 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:51:23,849 - sqlalchemy.engine.Engine - INFO - [cached since 3.296s ago] ('0e4d02b5-27eb-4e5d-aa20-816840cf7819', 1, '{"success": true, "message": "打印成功", "output": {"message": ["76edb909-2502-47e2-a1ab-c5e5622fb273"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '76edb909-2502-47e2-a1ab-c5e5622fb273', datetime.datetime(2025, 4, 18, 18, 51, 23, 849852), datetime.datetime(2025, 4, 18, 18, 51, 23, 849852), 0)
2025-04-18 18:51:23,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,859 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:23,860 - sqlalchemy.engine.Engine - INFO - [cached since 3.399s ago] ('b2eea027-5449-4610-b7ea-46ab9079a46b',)
2025-04-18 18:51:23,860 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:51:23,860 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:51:23,860 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:23,860 - sqlalchemy.engine.Engine - INFO - [cached since 3.284s ago] (datetime.datetime(2025, 4, 18, 18, 51, 23, 860099), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 51, 23, 860099), 'b2eea027-5449-4610-b7ea-46ab9079a46b')
2025-04-18 18:51:23,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,866 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:51:23,866 - sqlalchemy.engine.Engine - INFO - [cached since 3.315s ago] ('c3e24386-bf89-44c2-9fa6-e811f5513155', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["76edb909-2502-47e2-a1ab-c5e5622fb273"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '76edb909-2502-47e2-a1ab-c5e5622fb273', datetime.datetime(2025, 4, 18, 18, 51, 23, 866520), datetime.datetime(2025, 4, 18, 18, 51, 23, 866520), 0)
2025-04-18 18:51:23,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,874 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:23,874 - sqlalchemy.engine.Engine - INFO - [cached since 3.417s ago] ('ece5d188-f21e-490f-ae4f-3e774697395c',)
2025-04-18 18:51:23,874 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:51:23,874 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:51:23,879 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:23,879 - sqlalchemy.engine.Engine - INFO - [cached since 3.301s ago] (datetime.datetime(2025, 4, 18, 18, 51, 23, 874887), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 51, 23, 879238), 'ece5d188-f21e-490f-ae4f-3e774697395c')
2025-04-18 18:51:23,879 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:23,884 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:23,884 - sqlalchemy.engine.Engine - INFO - [cached since 3.259s ago] (datetime.datetime(2025, 4, 18, 18, 51, 23, 884548), '任务执行成功', 1000, 89, datetime.datetime(2025, 4, 18, 18, 51, 23, 884548), '76edb909-2502-47e2-a1ab-c5e5622fb273')
2025-04-18 18:51:23,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:23,892 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: 76edb909-2502-47e2-a1ab-c5e5622fb273, 结果: True
2025-04-18 18:51:26,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,822 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:26,822 - sqlalchemy.engine.Engine - INFO - [cached since 6.446s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:26,823 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-18 18:51:26,823 - sqlalchemy.engine.Engine - INFO - [cached since 6.424s ago] ('d005e042-57be-4171-9a3b-8e669a3b431d', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 18, 18, 51, 26, 823500), None, None, 1002, '{}', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 18, 18, 51, 26, 823500), datetime.datetime(2025, 4, 18, 18, 51, 26, 823500), 0)
2025-04-18 18:51:26,823 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,837 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,841 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:26,841 - sqlalchemy.engine.Engine - INFO - [cached since 6.432s ago] ('d005e042-57be-4171-9a3b-8e669a3b431d',)
2025-04-18 18:51:26,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,842 - services.execution.task_scheduler - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-18 18:51:26,844 - services.execution.task_scheduler - INFO - 工作线程 0 获取到任务: d005e042-57be-4171-9a3b-8e669a3b431d, 优先级: 1
2025-04-18 18:51:26,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,844 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:26,844 - sqlalchemy.engine.Engine - INFO - [cached since 6.436s ago] ('d005e042-57be-4171-9a3b-8e669a3b431d',)
2025-04-18 18:51:26,845 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:26,845 - sqlalchemy.engine.Engine - INFO - [cached since 6.47s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:26,847 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:26,847 - sqlalchemy.engine.Engine - INFO - [cached since 6.429s ago] (datetime.datetime(2025, 4, 18, 18, 51, 26, 847873), datetime.datetime(2025, 4, 18, 18, 51, 26, 847873), 'd005e042-57be-4171-9a3b-8e669a3b431d')
2025-04-18 18:51:26,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,854 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:26,854 - sqlalchemy.engine.Engine - INFO - [cached since 6.427s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 18, 18, 51, 26, 854013), 'd005e042-57be-4171-9a3b-8e669a3b431d')
2025-04-18 18:51:26,858 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,866 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-18 18:51:26,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,870 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:51:26,870 - sqlalchemy.engine.Engine - INFO - [cached since 6.428s ago] ('397245ec-e495-48ea-9297-9e69ceaeece8', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd005e042-57be-4171-9a3b-8e669a3b431d', datetime.datetime(2025, 4, 18, 18, 51, 26, 866306), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 51, 26, 870633), datetime.datetime(2025, 4, 18, 18, 51, 26, 870633), 0)
2025-04-18 18:51:26,874 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,887 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,890 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:26,892 - sqlalchemy.engine.Engine - INFO - [cached since 6.431s ago] ('397245ec-e495-48ea-9297-9e69ceaeece8',)
2025-04-18 18:51:26,895 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:51:26,897 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:51:26,898 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:26,904 - sqlalchemy.engine.Engine - INFO - [cached since 6.428s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 51, 26, 898107), '397245ec-e495-48ea-9297-9e69ceaeece8')
2025-04-18 18:51:26,904 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,914 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-18 18:51:26,916 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-18 18:51:26,921 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-18 18:51:26,922 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,923 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-18 18:51:26,925 - sqlalchemy.engine.Engine - INFO - [cached since 6.481s ago] ('99babd33-b0e2-4774-ab56-9e011ddffcbd', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd005e042-57be-4171-9a3b-8e669a3b431d', datetime.datetime(2025, 4, 18, 18, 51, 26, 922337), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 18, 18, 51, 26, 923345), datetime.datetime(2025, 4, 18, 18, 51, 26, 923345), 0)
2025-04-18 18:51:26,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,936 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 99babd33-b0e2-4774-ab56-9e011ddffcbd
2025-04-18 18:51:26,937 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,939 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:26,943 - sqlalchemy.engine.Engine - INFO - [cached since 6.482s ago] ('99babd33-b0e2-4774-ab56-9e011ddffcbd',)
2025-04-18 18:51:26,944 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:51:26,945 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:51:26,946 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:26,950 - sqlalchemy.engine.Engine - INFO - [cached since 6.475s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 18, 18, 51, 26, 946790), '99babd33-b0e2-4774-ab56-9e011ddffcbd')
2025-04-18 18:51:26,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,971 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-18 18:51:26,971 - sqlalchemy.engine.Engine - INFO - [cached since 6.427s ago] ('d005e042-57be-4171-9a3b-8e669a3b431d',)
2025-04-18 18:51:26,973 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: d005e042-57be-4171-9a3b-8e669a3b431d
2025-04-18 18:51:26,974 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,974 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-18 18:51:26,974 - services.execution.handlers.foundation - INFO - 任务 d005e042-57be-4171-9a3b-8e669a3b431d 打印: ['d005e042-57be-4171-9a3b-8e669a3b431d']
2025-04-18 18:51:26,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,975 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:51:26,976 - sqlalchemy.engine.Engine - INFO - [cached since 6.423s ago] ('49bf2758-048b-4df2-86eb-6b8406b6fe00', 1, '{"success": true, "message": "打印成功", "output": {"message": ["d005e042-57be-4171-9a3b-8e669a3b431d"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd005e042-57be-4171-9a3b-8e669a3b431d', datetime.datetime(2025, 4, 18, 18, 51, 26, 975539), datetime.datetime(2025, 4, 18, 18, 51, 26, 975539), 0)
2025-04-18 18:51:26,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,985 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:26,985 - sqlalchemy.engine.Engine - INFO - [cached since 6.524s ago] ('99babd33-b0e2-4774-ab56-9e011ddffcbd',)
2025-04-18 18:51:26,986 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-18 18:51:26,986 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-18 18:51:26,987 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:26,987 - sqlalchemy.engine.Engine - INFO - [cached since 6.41s ago] (datetime.datetime(2025, 4, 18, 18, 51, 26, 987378), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 51, 26, 987378), '99babd33-b0e2-4774-ab56-9e011ddffcbd')
2025-04-18 18:51:26,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:26,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:26,995 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-18 18:51:26,995 - sqlalchemy.engine.Engine - INFO - [cached since 6.441s ago] ('2f66a5bc-7eb6-445f-8b3a-734391416530', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["d005e042-57be-4171-9a3b-8e669a3b431d"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd005e042-57be-4171-9a3b-8e669a3b431d', datetime.datetime(2025, 4, 18, 18, 51, 26, 995117), datetime.datetime(2025, 4, 18, 18, 51, 26, 995117), 0)
2025-04-18 18:51:26,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:27,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:27,002 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-18 18:51:27,002 - sqlalchemy.engine.Engine - INFO - [cached since 6.543s ago] ('397245ec-e495-48ea-9297-9e69ceaeece8',)
2025-04-18 18:51:27,004 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-18 18:51:27,004 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-18 18:51:27,004 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-18 18:51:27,004 - sqlalchemy.engine.Engine - INFO - [cached since 6.428s ago] (datetime.datetime(2025, 4, 18, 18, 51, 27, 4953), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 18, 18, 51, 27, 4953), '397245ec-e495-48ea-9297-9e69ceaeece8')
2025-04-18 18:51:27,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:27,011 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:27,012 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-18 18:51:27,012 - sqlalchemy.engine.Engine - INFO - [cached since 6.386s ago] (datetime.datetime(2025, 4, 18, 18, 51, 27, 11446), '任务执行成功', 1000, 157, datetime.datetime(2025, 4, 18, 18, 51, 27, 12440), 'd005e042-57be-4171-9a3b-8e669a3b431d')
2025-04-18 18:51:27,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:27,020 - services.execution.task_scheduler - INFO - 工作线程 0 完成任务: d005e042-57be-4171-9a3b-8e669a3b431d, 结果: True
2025-04-18 18:51:27,696 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:51:27,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:27,696 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:27,700 - sqlalchemy.engine.Engine - INFO - [cached since 7.327s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:27,706 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:51:27,709 - sqlalchemy.engine.Engine - INFO - [generated in 0.00365s] (0, datetime.datetime(2025, 4, 18, 18, 51, 27, 706168), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:51:27,709 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:27,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:27,722 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:27,722 - sqlalchemy.engine.Engine - INFO - [cached since 7.346s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:27,722 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:27,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:27,725 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:51:27,725 - sqlalchemy.engine.Engine - INFO - [generated in 0.00086s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:51:27,729 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-18 18:51:27,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:27,729 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s
2025-04-18 18:51:27,735 - sqlalchemy.engine.Engine - INFO - [generated in 0.00131s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:27,749 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:27,749 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:51:27,749 - sqlalchemy.engine.Engine - INFO - [cached since 7.357s ago] (0, datetime.datetime(2025, 4, 18, 18, 51, 27, 749990), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:51:27,749 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:27,760 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0645秒
2025-04-18 18:51:39,087 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:51:39,087 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:39,087 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:39,087 - sqlalchemy.engine.Engine - INFO - [cached since 18.71s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:39,091 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:51:39,095 - sqlalchemy.engine.Engine - INFO - [cached since 11.39s ago] (0, datetime.datetime(2025, 4, 18, 18, 51, 39, 91462), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:51:39,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:39,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:39,120 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:39,125 - sqlalchemy.engine.Engine - INFO - [cached since 18.75s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:39,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:39,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:39,129 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:51:39,129 - sqlalchemy.engine.Engine - INFO - [cached since 11.41s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:51:39,133 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:51:39,135 - sqlalchemy.engine.Engine - INFO - [cached since 18.74s ago] (0, datetime.datetime(2025, 4, 18, 18, 51, 39, 133707), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:51:39,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:39,141 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0547秒
2025-04-18 18:51:42,437 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-18 18:51:42,437 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:42,437 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:42,437 - sqlalchemy.engine.Engine - INFO - [cached since 22.06s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:42,441 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:51:42,441 - sqlalchemy.engine.Engine - INFO - [cached since 14.74s ago] (0, datetime.datetime(2025, 4, 18, 18, 51, 42, 441864), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:51:42,446 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:42,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:42,458 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-18 18:51:42,458 - sqlalchemy.engine.Engine - INFO - [cached since 22.08s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-18 18:51:42,458 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:42,464 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-18 18:51:42,466 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s AND t_windtaskdef.status = %s
2025-04-18 18:51:42,471 - sqlalchemy.engine.Engine - INFO - [cached since 14.75s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1)
2025-04-18 18:51:42,471 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-18 18:51:42,475 - sqlalchemy.engine.Engine - INFO - [cached since 22.08s ago] (0, datetime.datetime(2025, 4, 18, 18, 51, 42, 471045), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-18 18:51:42,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-18 18:51:42,475 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0372秒
2025-04-18 18:52:20,183 - root - INFO - 应用程序关闭中...
2025-04-18 18:52:20,183 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-18 18:52:20,183 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-18 18:52:20,183 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-18 18:52:20,183 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-18 18:52:20,183 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-18 18:52:20,183 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-18 18:52:20,183 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-18 18:52:20,193 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-18 18:52:20,193 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-18 18:52:20,193 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-18 18:52:20,193 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-18 18:52:20,193 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-18 18:52:20,193 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-18 18:52:20,204 - root - INFO - 任务调度器已停止
2025-04-18 18:52:20,204 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-18 18:52:20,204 - data.session - INFO - 异步数据库连接已关闭
2025-04-18 18:52:20,204 - data.session - INFO - 正在关闭数据库连接...
2025-04-18 18:52:20,204 - data.session - INFO - 数据库连接已关闭
2025-04-19 10:41:29,185 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:41:29,187 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:41:29,886 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:41:29,887 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:41:29,954 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 10:41:30,016 - data.session - INFO - 正在初始化数据库...
2025-04-19 10:41:30,060 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 10:41:30,063 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:41:30,064 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,065 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:41:30,065 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,065 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:41:30,065 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,066 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:41:30,066 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 10:41:30,066 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,068 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 10:41:30,070 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 10:41:30,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,072 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 10:41:30,072 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,073 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 10:41:30,073 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,074 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 10:41:30,074 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,074 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 10:41:30,075 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,075 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 10:41:30,075 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,076 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 10:41:30,077 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,077 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 10:41:30,077 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,078 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 10:41:30,078 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:41:30,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:41:30,079 - data.session - INFO - 数据库表初始化完成
2025-04-19 10:41:30,484 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 10:41:30,485 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 10:41:30,485 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 10:41:30,485 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 10:41:30,485 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 10:41:30,485 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-19 10:41:30,487 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:41:30,488 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:41:30,488 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:41:30,491 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:41:30,491 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:41:30,491 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:41:30,492 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:41:30,492 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:41:30,500 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 10:41:30,501 - sqlalchemy.engine.Engine - INFO - [generated in 0.00177s] (1, 1)
2025-04-19 10:41:30,503 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-19 10:41:30,503 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:41:30,504 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-19 10:41:30,504 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-19 10:50:18,210 - root - INFO - 应用程序关闭中...
2025-04-19 10:50:18,210 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 10:50:18,211 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 10:50:18,211 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 10:50:18,211 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 10:50:18,211 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 10:50:18,211 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 10:50:18,212 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 10:50:18,212 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 10:50:18,212 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 10:50:18,214 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 10:50:18,214 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-19 10:50:18,214 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-19 10:50:18,215 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-19 10:50:18,215 - root - INFO - 任务调度器已停止
2025-04-19 10:50:18,216 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 10:50:18,216 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 10:50:18,216 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 10:50:18,217 - data.session - INFO - 数据库连接已关闭
2025-04-19 10:50:19,455 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:50:19,456 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:50:19,515 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 10:50:19,562 - data.session - INFO - 正在初始化数据库...
2025-04-19 10:50:19,596 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 10:50:19,615 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:50:19,615 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,615 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:50:19,615 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,617 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:50:19,618 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:50:19,618 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 10:50:19,618 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,619 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 10:50:19,620 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,622 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 10:50:19,622 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,623 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 10:50:19,624 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 10:50:19,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,628 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 10:50:19,628 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,628 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 10:50:19,630 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,632 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 10:50:19,632 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,633 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 10:50:19,634 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,634 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 10:50:19,635 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,635 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 10:50:19,635 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:19,636 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:50:19,637 - data.session - INFO - 数据库表初始化完成
2025-04-19 10:50:19,964 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 10:50:19,965 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 10:50:19,965 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 10:50:19,965 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 10:50:19,965 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 10:50:19,965 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-19 10:50:19,967 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:50:19,969 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:50:19,969 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:50:19,969 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:50:19,969 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:50:19,970 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:50:19,970 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:50:19,970 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:50:19,978 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 10:50:19,978 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1, 1)
2025-04-19 10:50:19,980 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-19 10:50:19,980 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:50:19,981 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-19 10:50:19,981 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-19 10:50:28,266 - root - INFO - 应用程序关闭中...
2025-04-19 10:50:28,266 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 10:50:28,266 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 10:50:28,268 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 10:50:28,268 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 10:50:28,268 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 10:50:28,268 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 10:50:28,268 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 10:50:28,268 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 10:50:28,268 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 10:50:28,268 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 10:50:28,269 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-19 10:50:28,269 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-19 10:50:28,269 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-19 10:50:28,269 - root - INFO - 任务调度器已停止
2025-04-19 10:50:28,269 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 10:50:28,270 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 10:50:28,270 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 10:50:28,270 - data.session - INFO - 数据库连接已关闭
2025-04-19 10:50:30,914 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:50:30,914 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:50:31,595 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:50:31,595 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:50:31,650 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 10:50:31,697 - data.session - INFO - 正在初始化数据库...
2025-04-19 10:50:31,734 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 10:50:31,752 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:50:31,753 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,754 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:50:31,754 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,755 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:50:31,755 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,755 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:50:31,756 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 10:50:31,756 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,757 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 10:50:31,758 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,759 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 10:50:31,760 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,761 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 10:50:31,761 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,763 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 10:50:31,763 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,764 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 10:50:31,764 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,766 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 10:50:31,766 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 10:50:31,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,771 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 10:50:31,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,772 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 10:50:31,772 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,773 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 10:50:31,773 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:50:31,774 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:50:31,774 - data.session - INFO - 数据库表初始化完成
2025-04-19 10:50:32,103 - services.execution.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 10:50:32,104 - services.execution.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 10:50:32,104 - services.execution.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 10:50:32,104 - services.execution.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 10:50:32,104 - services.execution.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 10:50:32,104 - services.execution.task_scheduler - INFO - 定时任务执行器启动
2025-04-19 10:50:32,125 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:50:32,126 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:50:32,127 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:50:32,128 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:50:32,128 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:50:32,128 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:50:32,128 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:50:32,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:50:32,137 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 10:50:32,137 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (1, 1)
2025-04-19 10:50:32,138 - services.execution.task_scheduler - INFO - 已加载 0 个定时任务
2025-04-19 10:50:32,138 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:50:32,138 - services.execution.task_scheduler - INFO - 任务调度器启动成功，工作线程数: 5
2025-04-19 10:50:32,138 - root - INFO - 任务调度器已启动，工作线程数: 5
2025-04-19 10:52:32,866 - root - INFO - 应用程序关闭中...
2025-04-19 10:52:32,866 - services.execution.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 10:52:32,867 - services.execution.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 10:52:32,867 - services.execution.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 10:52:32,867 - services.execution.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 10:52:32,867 - services.execution.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 10:52:32,867 - services.execution.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 10:52:32,868 - services.execution.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 10:52:32,868 - services.execution.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 10:52:32,868 - services.execution.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 10:52:32,868 - services.execution.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 10:52:32,868 - services.execution.task_scheduler - INFO - 定时任务执行器被取消
2025-04-19 10:52:32,869 - services.execution.task_scheduler - INFO - 定时任务执行器结束
2025-04-19 10:52:32,869 - services.execution.task_scheduler - INFO - 任务调度器已停止
2025-04-19 10:52:32,869 - root - INFO - 任务调度器已停止
2025-04-19 10:52:32,869 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 10:52:32,869 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 10:52:32,869 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 10:52:32,869 - data.session - INFO - 数据库连接已关闭
2025-04-19 10:52:34,041 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:52:34,041 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:52:34,096 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 10:52:34,145 - data.session - INFO - 正在初始化数据库...
2025-04-19 10:52:34,157 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 10:52:34,158 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:52:34,158 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,159 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:52:34,159 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,159 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:52:34,159 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:52:34,161 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 10:52:34,161 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,162 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 10:52:34,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,163 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 10:52:34,163 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,165 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 10:52:34,165 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,166 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 10:52:34,166 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,167 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 10:52:34,168 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,169 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 10:52:34,169 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,170 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 10:52:34,170 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,172 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 10:52:34,173 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,173 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 10:52:34,173 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,176 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 10:52:34,176 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:52:34,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:52:34,177 - data.session - INFO - 数据库表初始化完成
2025-04-19 10:56:20,814 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:56:20,814 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:56:21,573 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:56:21,574 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:56:21,634 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 10:56:21,686 - data.session - INFO - 正在初始化数据库...
2025-04-19 10:56:21,709 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 10:56:21,735 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:56:21,736 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,736 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:56:21,736 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,737 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:56:21,737 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,737 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:21,738 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 10:56:21,738 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,739 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 10:56:21,740 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,741 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 10:56:21,741 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,742 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 10:56:21,742 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,743 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 10:56:21,743 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,744 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 10:56:21,744 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,745 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 10:56:21,745 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 10:56:21,746 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,747 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 10:56:21,747 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,748 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 10:56:21,748 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,748 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 10:56:21,749 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:56:21,749 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:21,750 - data.session - INFO - 数据库表初始化完成
2025-04-19 10:56:22,108 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 10:56:22,108 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 10:56:22,109 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 10:56:22,109 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 10:56:22,109 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 10:56:22,109 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 10:56:22,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 10:56:22,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 10:56:22,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 10:56:22,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 10:56:22,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 10:56:22,110 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 10:56:22,110 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 10:56:22,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 10:56:22,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 10:56:22,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 10:56:22,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 10:56:22,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 10:56:22,112 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 10:56:22,112 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 10:56:22,113 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:56:22,114 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:56:22,114 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:56:22,115 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:56:22,115 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:56:22,115 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:56:22,116 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:56:22,116 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,130 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 10:56:22,130 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1, 1)
2025-04-19 10:56:22,131 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 10:56:22,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,132 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 10:56:22,132 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 10:56:22,133 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 10:56:22,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,135 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 10:56:22,135 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1000, 2000, 2001)
2025-04-19 10:56:22,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,139 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:56:22,140 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,140 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 10:56:22,140 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1001, datetime.datetime(2025, 4, 19, 9, 56, 22, 133793))
2025-04-19 10:56:22,141 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 10:56:22,141 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a (优先级 1) 添加到队列 0
2025-04-19 10:56:22,141 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 10:56:22,144 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 (优先级 1) 添加到队列 0
2025-04-19 10:56:22,144 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 10:56:22,144 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 (优先级 1) 添加到队列 0
2025-04-19 10:56:22,144 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 10:56:22,148 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 (优先级 1) 添加到队列 0
2025-04-19 10:56:22,148 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 10:56:22,148 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f (优先级 1) 添加到队列 0
2025-04-19 10:56:22,148 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 10:56:22,148 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce (优先级 1) 添加到队列 0
2025-04-19 10:56:22,148 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 10:56:22,148 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 (优先级 1) 添加到队列 0
2025-04-19 10:56:22,148 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 10:56:22,148 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 (优先级 1) 添加到队列 0
2025-04-19 10:56:22,148 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 10:56:22,149 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d (优先级 1) 添加到队列 0
2025-04-19 10:56:22,149 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 10:56:22,149 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 (优先级 1) 添加到队列 0
2025-04-19 10:56:22,149 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 10:56:22,149 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 (优先级 1) 添加到队列 0
2025-04-19 10:56:22,149 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 10:56:22,149 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af (优先级 1) 添加到队列 0
2025-04-19 10:56:22,149 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 10:56:22,149 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 12 个未完成的任务
2025-04-19 10:56:22,149 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 10:56:22,149 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 10:56:22,151 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,151 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] [(datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), '2c356c7a-265f-4a5c-af76-73bcf0a3661a'), (datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), '730110e1-a1aa-4b19-914f-93539368abf1'), (datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0'), (datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971'), (datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f'), (datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce'), (datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), 'ba19063c-6a94-4204-b181-ae42457f9779'), (datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')  ... displaying 10 of 12 total bound parameter sets ...  (datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6'), (datetime.datetime(2025, 4, 19, 10, 56, 22, 150440), '任务执行超时，被系统自动终止', 2000, datetime.datetime(2025, 4, 19, 10, 56, 22, 151462), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')]
2025-04-19 10:56:22,154 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,164 - services.enhanced_scheduler.task_scheduler - INFO - 清理 12 个僵尸任务
2025-04-19 10:56:22,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 10:56:22,219 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 0 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,220 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 10:56:22,222 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 2 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,222 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 10:56:22,223 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 1 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,224 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 10:56:22,225 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 4 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,225 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 10:56:22,226 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 3 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,227 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,229 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,229 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 10:56:22,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,230 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,230 - sqlalchemy.engine.Engine - INFO - [cached since 0.001567s ago] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 10:56:22,231 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,231 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 231902), '730110e1-a1aa-4b19-914f-93539368abf1')
2025-04-19 10:56:22,232 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,232 - sqlalchemy.engine.Engine - INFO - [cached since 0.001284s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 232901), '2c356c7a-265f-4a5c-af76-73bcf0a3661a')
2025-04-19 10:56:22,233 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,233 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,233 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:56:22,234 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:56:22,234 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:56:22,234 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,234 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,234 - sqlalchemy.engine.Engine - INFO - [cached since 0.00583s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 10:56:22,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,235 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,235 - sqlalchemy.engine.Engine - INFO - [cached since 0.006458s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 10:56:22,236 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,236 - sqlalchemy.engine.Engine - INFO - [cached since 0.004693s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 236902), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0')
2025-04-19 10:56:22,236 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,236 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,236 - sqlalchemy.engine.Engine - INFO - [cached since 0.00786s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 10:56:22,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,238 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,238 - sqlalchemy.engine.Engine - INFO - [cached since 0.00635s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 238396), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f')
2025-04-19 10:56:22,239 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,239 - sqlalchemy.engine.Engine - INFO - [cached since 0.007197s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 239400), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971')
2025-04-19 10:56:22,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,239 - services.enhanced_scheduler.task_scheduler - INFO - 任务 730110e1-a1aa-4b19-914f-93539368abf1 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 10:56:22,240 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 2 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,240 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,241 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,241 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,241 - sqlalchemy.engine.Engine - INFO - [cached since 0.01228s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 10:56:22,242 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,242 - sqlalchemy.engine.Engine - INFO - [cached since 0.01061s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 242406), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce')
2025-04-19 10:56:22,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,245 - services.enhanced_scheduler.task_scheduler - INFO - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 10:56:22,245 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 0 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,247 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,248 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,248 - sqlalchemy.engine.Engine - INFO - [cached since 0.01876s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 10:56:22,248 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,249 - sqlalchemy.engine.Engine - INFO - [cached since 0.01702s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 248526), 'ba19063c-6a94-4204-b181-ae42457f9779')
2025-04-19 10:56:22,249 - services.enhanced_scheduler.task_scheduler - INFO - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 10:56:22,249 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 3 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,250 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,251 - services.enhanced_scheduler.task_scheduler - INFO - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 10:56:22,251 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 1 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,252 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,252 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,252 - sqlalchemy.engine.Engine - INFO - [cached since 0.02326s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 10:56:22,252 - services.enhanced_scheduler.task_scheduler - INFO - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 10:56:22,253 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 4 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,253 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,254 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,254 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,254 - sqlalchemy.engine.Engine - INFO - [cached since 0.02516s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 10:56:22,256 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,256 - sqlalchemy.engine.Engine - INFO - [cached since 0.02441s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 256539), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-19 10:56:22,256 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,257 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,257 - sqlalchemy.engine.Engine - INFO - [cached since 0.02838s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 10:56:22,258 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,258 - sqlalchemy.engine.Engine - INFO - [cached since 0.02663s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 258538), 'dd48f08e-fa29-4272-84d8-18935eecb64d')
2025-04-19 10:56:22,258 - services.enhanced_scheduler.task_scheduler - INFO - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 10:56:22,259 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 2 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,259 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,261 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,261 - sqlalchemy.engine.Engine - INFO - [cached since 0.03177s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 10:56:22,261 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,261 - sqlalchemy.engine.Engine - INFO - [cached since 0.02994s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 261538), 'eb99d8e7-9568-40dd-866b-f4bd259517a7')
2025-04-19 10:56:22,262 - services.enhanced_scheduler.task_scheduler - INFO - 任务 ba19063c-6a94-4204-b181-ae42457f9779 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,262 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 10:56:22,262 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 0 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:56:22,263 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:56:22,263 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,264 - sqlalchemy.engine.Engine - INFO - [cached since 0.03204s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 263541), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6')
2025-04-19 10:56:22,264 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:56:22,264 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,264 - sqlalchemy.engine.Engine - INFO - [cached since 0.03522s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 10:56:22,264 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,265 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:56:22,266 - sqlalchemy.engine.Engine - INFO - [cached since 0.03401s ago] ("任务执行异常，准备第1次重试: 'TaskExecutor' object has no attribute 'set_timeout'", 1002, datetime.datetime(2025, 4, 19, 10, 56, 22, 265538), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')
2025-04-19 10:56:22,266 - services.enhanced_scheduler.task_scheduler - INFO - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:56:22,269 - services.enhanced_scheduler.task_scheduler - INFO - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,276 - services.enhanced_scheduler.task_scheduler - INFO - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,276 - services.enhanced_scheduler.task_scheduler - INFO - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 将在 60 秒后进行第 1 次重试
2025-04-19 10:56:22,279 - services.enhanced_scheduler.task_scheduler - INFO - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,179 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 10:57:22,180 - sqlalchemy.engine.Engine - INFO - [cached since 60.04s ago] (1001, datetime.datetime(2025, 4, 19, 9, 57, 22, 178214))
2025-04-19 10:57:22,181 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,255 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,255 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 10:57:22,256 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,257 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,257 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 10:57:22,257 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,258 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,258 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 10:57:22,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,260 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,260 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 10:57:22,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,260 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,261 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 10:57:22,263 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,263 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,264 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,274 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 (优先级 1) 添加到队列 0
2025-04-19 10:57:22,274 - services.enhanced_scheduler.task_scheduler - INFO - 任务 730110e1-a1aa-4b19-914f-93539368abf1 已重新提交
2025-04-19 10:57:22,274 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce (优先级 1) 添加到队列 0
2025-04-19 10:57:22,275 - services.enhanced_scheduler.task_scheduler - INFO - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 已重新提交
2025-04-19 10:57:22,275 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 (优先级 1) 添加到队列 0
2025-04-19 10:57:22,275 - services.enhanced_scheduler.task_scheduler - INFO - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 已重新提交
2025-04-19 10:57:22,275 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 (优先级 1) 添加到队列 0
2025-04-19 10:57:22,275 - services.enhanced_scheduler.task_scheduler - INFO - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 已重新提交
2025-04-19 10:57:22,276 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:57:22,276 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:57:22,277 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:57:22,277 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a (优先级 1) 添加到队列 0
2025-04-19 10:57:22,277 - services.enhanced_scheduler.task_scheduler - INFO - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 已重新提交
2025-04-19 10:57:22,278 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:57:22,278 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,279 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,279 - sqlalchemy.engine.Engine - INFO - [cached since 60.05s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 10:57:22,279 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:57:22,280 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:57:22,280 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:57:22,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,281 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,281 - sqlalchemy.engine.Engine - INFO - [cached since 60.05s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 10:57:22,282 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,282 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,283 - sqlalchemy.engine.Engine - INFO - [cached since 60.05s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 10:57:22,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,286 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,286 - sqlalchemy.engine.Engine - INFO - [cached since 60.06s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 10:57:22,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,288 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,288 - sqlalchemy.engine.Engine - INFO - [cached since 60.06s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 10:57:22,288 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,289 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,289 - sqlalchemy.engine.Engine - INFO - [cached since 60.06s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 10:57:22,290 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f (优先级 1) 添加到队列 0
2025-04-19 10:57:22,290 - services.enhanced_scheduler.task_scheduler - INFO - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 已重新提交
2025-04-19 10:57:22,291 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,291 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,292 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,292 - sqlalchemy.engine.Engine - INFO - [cached since 60.06s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 10:57:22,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,294 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 (优先级 1) 添加到队列 0
2025-04-19 10:57:22,294 - services.enhanced_scheduler.task_scheduler - INFO - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 已重新提交
2025-04-19 10:57:22,294 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af (优先级 1) 添加到队列 0
2025-04-19 10:57:22,294 - services.enhanced_scheduler.task_scheduler - INFO - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 已重新提交
2025-04-19 10:57:22,295 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 (优先级 1) 添加到队列 0
2025-04-19 10:57:22,295 - services.enhanced_scheduler.task_scheduler - INFO - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 已重新提交
2025-04-19 10:57:22,295 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 (优先级 1) 添加到队列 0
2025-04-19 10:57:22,295 - services.enhanced_scheduler.task_scheduler - INFO - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 已重新提交
2025-04-19 10:57:22,295 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 (优先级 1) 添加到队列 0
2025-04-19 10:57:22,295 - services.enhanced_scheduler.task_scheduler - INFO - 任务 ba19063c-6a94-4204-b181-ae42457f9779 已重新提交
2025-04-19 10:57:22,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 10:57:22,331 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 0 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,332 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 10:57:22,334 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 4 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,334 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,335 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,335 - sqlalchemy.engine.Engine - INFO - [cached since 60.11s ago] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 10:57:22,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,336 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,336 - sqlalchemy.engine.Engine - INFO - [cached since 60.11s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 10:57:22,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,339 - services.enhanced_scheduler.task_scheduler - INFO - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 10:57:22,340 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 0 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,341 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,344 - services.enhanced_scheduler.task_scheduler - INFO - 任务 730110e1-a1aa-4b19-914f-93539368abf1 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 10:57:22,344 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 4 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,346 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,346 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,347 - sqlalchemy.engine.Engine - INFO - [cached since 60.12s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 10:57:22,347 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,347 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,347 - sqlalchemy.engine.Engine - INFO - [cached since 60.12s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 10:57:22,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,349 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,350 - services.enhanced_scheduler.task_scheduler - INFO - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 10:57:22,350 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 0 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,351 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,351 - services.enhanced_scheduler.task_scheduler - INFO - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 10:57:22,352 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 4 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,353 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,354 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,354 - sqlalchemy.engine.Engine - INFO - [cached since 60.12s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 10:57:22,354 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,354 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,354 - sqlalchemy.engine.Engine - INFO - [cached since 60.13s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 10:57:22,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 10:57:22,356 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 3 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,356 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 10:57:22,357 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 2 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,358 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 10:57:22,358 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 1 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,359 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,360 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,360 - sqlalchemy.engine.Engine - INFO - [cached since 60.13s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 10:57:22,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,360 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,361 - sqlalchemy.engine.Engine - INFO - [cached since 60.13s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 10:57:22,361 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,361 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,362 - sqlalchemy.engine.Engine - INFO - [cached since 60.13s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 10:57:22,362 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,363 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,364 - services.enhanced_scheduler.task_scheduler - INFO - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 10:57:22,364 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 0 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,365 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,366 - services.enhanced_scheduler.task_scheduler - INFO - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 10:57:22,366 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 4 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,367 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,367 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,368 - sqlalchemy.engine.Engine - INFO - [cached since 60.14s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 10:57:22,368 - services.enhanced_scheduler.task_scheduler - INFO - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,368 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,368 - sqlalchemy.engine.Engine - INFO - [cached since 60.14s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 10:57:22,369 - services.enhanced_scheduler.task_scheduler - INFO - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,369 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,369 - services.enhanced_scheduler.task_scheduler - INFO - 任务 ba19063c-6a94-4204-b181-ae42457f9779 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,370 - services.enhanced_scheduler.task_scheduler - INFO - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,371 - services.enhanced_scheduler.task_scheduler - INFO - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 将在 60 秒后进行第 1 次重试
2025-04-19 10:57:22,389 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,390 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d (优先级 1) 添加到队列 0
2025-04-19 10:57:22,391 - services.enhanced_scheduler.task_scheduler - INFO - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 已重新提交
2025-04-19 10:57:22,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 10:57:22,471 - services.enhanced_scheduler.task_scheduler - ERROR - 工作线程 1 执行任务异常: 'TaskExecutor' object has no attribute 'set_timeout'
2025-04-19 10:57:22,472 - services.enhanced_scheduler.task_scheduler - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 602, in _worker
    executor.set_timeout(self.task_timeout)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TaskExecutor' object has no attribute 'set_timeout'

2025-04-19 10:57:22,473 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:57:22,473 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:57:22,474 - sqlalchemy.engine.Engine - INFO - [cached since 60.25s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 10:57:22,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:57:22,476 - services.enhanced_scheduler.task_scheduler - INFO - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 将在 60 秒后进行第 1 次重试
2025-04-19 10:58:12,621 - root - INFO - 应用程序关闭中...
2025-04-19 10:58:12,622 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 10:58:12,623 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 10:58:12,623 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 10:58:12,623 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 10:58:12,623 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 10:58:12,623 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 10:58:12,623 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 10:58:12,626 - services.enhanced_scheduler.task_persistence - INFO - 备份 12 个任务到 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json
2025-04-19 10:58:12,626 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 10:58:12,627 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 10:58:12,627 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 10:58:12,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 10:58:12,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 10:58:12,627 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 10:58:12,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 10:58:12,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 10:58:12,628 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 10:58:12,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 10:58:12,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 10:58:12,628 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 10:58:12,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 10:58:12,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 10:58:12,630 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 10:58:12,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 10:58:12,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 10:58:12,630 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 10:58:12,631 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 10:58:12,631 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 10:58:12,631 - root - INFO - 增强版任务调度器已停止
2025-04-19 10:58:12,631 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 10:58:12,631 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 10:58:12,632 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 10:58:12,632 - data.session - INFO - 数据库连接已关闭
2025-04-19 10:58:14,077 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:58:14,078 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:58:14,138 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 10:58:14,186 - data.session - INFO - 正在初始化数据库...
2025-04-19 10:58:14,196 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 10:58:14,216 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:58:14,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,217 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:58:14,217 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,218 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:58:14,218 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,218 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,218 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 10:58:14,218 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,220 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 10:58:14,220 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,221 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 10:58:14,221 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,222 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 10:58:14,222 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,224 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 10:58:14,224 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,224 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 10:58:14,225 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,225 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 10:58:14,226 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,226 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 10:58:14,227 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,227 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 10:58:14,228 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,229 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 10:58:14,229 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,230 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 10:58:14,230 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:14,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,231 - data.session - INFO - 数据库表初始化完成
2025-04-19 10:58:14,582 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 10:58:14,582 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 10:58:14,583 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 10:58:14,583 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 10:58:14,583 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 10:58:14,584 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 10:58:14,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 10:58:14,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 10:58:14,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 10:58:14,585 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 10:58:14,585 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 10:58:14,585 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 10:58:14,585 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 10:58:14,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 10:58:14,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 10:58:14,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 10:58:14,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 10:58:14,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 10:58:14,587 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 10:58:14,588 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 10:58:14,605 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:14,606 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:58:14,606 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:58:14,607 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:58:14,608 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:58:14,608 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:58:14,609 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:58:14,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,618 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 10:58:14,618 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1, 1)
2025-04-19 10:58:14,620 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 10:58:14,620 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,621 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 10:58:14,622 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 10:58:14,622 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 10:58:14,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,624 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 10:58:14,624 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (1000, 2000, 2001)
2025-04-19 10:58:14,651 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,653 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:14,655 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,656 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 10:58:14,657 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1001, datetime.datetime(2025, 4, 19, 9, 58, 14, 622396))
2025-04-19 10:58:14,657 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载 12 个任务
2025-04-19 10:58:14,657 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 10:58:14,658 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a (优先级 1) 添加到队列 0
2025-04-19 10:58:14,658 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 10:58:14,658 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 (优先级 1) 添加到队列 0
2025-04-19 10:58:14,659 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 10:58:14,659 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 (优先级 1) 添加到队列 0
2025-04-19 10:58:14,659 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 10:58:14,659 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 (优先级 1) 添加到队列 0
2025-04-19 10:58:14,659 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 10:58:14,659 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f (优先级 1) 添加到队列 0
2025-04-19 10:58:14,660 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 10:58:14,660 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce (优先级 1) 添加到队列 0
2025-04-19 10:58:14,660 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 10:58:14,660 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 (优先级 1) 添加到队列 0
2025-04-19 10:58:14,660 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 10:58:14,660 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 (优先级 1) 添加到队列 0
2025-04-19 10:58:14,661 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 10:58:14,661 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d (优先级 1) 添加到队列 0
2025-04-19 10:58:14,661 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 10:58:14,661 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 (优先级 1) 添加到队列 0
2025-04-19 10:58:14,661 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 10:58:14,661 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 (优先级 1) 添加到队列 0
2025-04-19 10:58:14,661 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 10:58:14,662 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af (优先级 1) 添加到队列 0
2025-04-19 10:58:14,662 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 10:58:14,662 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 12 个未完成的任务
2025-04-19 10:58:14,662 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 10:58:14,662 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 10:58:14,663 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 10:58:14,696 - services.execution.task_executor - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 设置超时时间: 3600秒
2025-04-19 10:58:14,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 10:58:14,697 - services.execution.task_executor - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 设置超时时间: 3600秒
2025-04-19 10:58:14,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 10:58:14,697 - services.execution.task_executor - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 设置超时时间: 3600秒
2025-04-19 10:58:14,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 10:58:14,698 - services.execution.task_executor - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 设置超时时间: 3600秒
2025-04-19 10:58:14,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 10:58:14,699 - services.execution.task_executor - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 设置超时时间: 3600秒
2025-04-19 10:58:14,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,700 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,701 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 10:58:14,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,702 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,702 - sqlalchemy.engine.Engine - INFO - [cached since 0.00185s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 10:58:14,703 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,704 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:14,705 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,705 - sqlalchemy.engine.Engine - INFO - [cached since 0.001574s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:14,706 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,707 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,707 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:14,708 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:14,708 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:14,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,709 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,709 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 709940), '2c356c7a-265f-4a5c-af76-73bcf0a3661a')
2025-04-19 10:58:14,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,711 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,711 - sqlalchemy.engine.Engine - INFO - [cached since 0.001556s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 711940), '730110e1-a1aa-4b19-914f-93539368abf1')
2025-04-19 10:58:14,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,711 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,712 - sqlalchemy.engine.Engine - INFO - [cached since 0.01148s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 10:58:14,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,713 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,713 - sqlalchemy.engine.Engine - INFO - [cached since 0.01236s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 10:58:14,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,713 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,713 - sqlalchemy.engine.Engine - INFO - [cached since 0.01315s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 10:58:14,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,714 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,714 - sqlalchemy.engine.Engine - INFO - [cached since 0.0111s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 10:58:14,715 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,715 - sqlalchemy.engine.Engine - INFO - [cached since 0.01203s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:14,716 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,718 - sqlalchemy.engine.Engine - INFO - [cached since 0.01356s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 10:58:14,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,719 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,719 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,721 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,722 - sqlalchemy.engine.Engine - INFO - [cached since 0.01181s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 721066), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0')
2025-04-19 10:58:14,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,722 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,723 - sqlalchemy.engine.Engine - INFO - [cached since 0.01256s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 722067), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f')
2025-04-19 10:58:14,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,723 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,723 - sqlalchemy.engine.Engine - INFO - [cached since 0.01315s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 723067), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971')
2025-04-19 10:58:14,723 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,725 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,726 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,727 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,728 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('033ab003-9f4d-42da-a035-58fd75fe2995', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 58, 14, 725067), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 727066), datetime.datetime(2025, 4, 19, 10, 58, 14, 727066), 0)
2025-04-19 10:58:14,730 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,735 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,736 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,736 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,736 - sqlalchemy.engine.Engine - INFO - [cached since 0.009302s ago] ('6114b3fc-23a1-4869-9ad8-af543565a740', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 58, 14, 735065), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 736066), datetime.datetime(2025, 4, 19, 10, 58, 14, 736066), 0)
2025-04-19 10:58:14,738 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,740 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,741 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,741 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,742 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,743 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,744 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('033ab003-9f4d-42da-a035-58fd75fe2995',)
2025-04-19 10:58:14,744 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,745 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,745 - sqlalchemy.engine.Engine - INFO - [cached since 0.01788s ago] ('b75d9091-3185-458e-9311-951e0eda8777', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 58, 14, 741066), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 745066), datetime.datetime(2025, 4, 19, 10, 58, 14, 745066), 0)
2025-04-19 10:58:14,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,746 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,746 - sqlalchemy.engine.Engine - INFO - [cached since 0.01902s ago] ('7eea1976-1765-43e4-906c-2b0d4cdba05a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 58, 14, 740066), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 746067), datetime.datetime(2025, 4, 19, 10, 58, 14, 746067), 0)
2025-04-19 10:58:14,747 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,747 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,748 - sqlalchemy.engine.Engine - INFO - [cached since 0.02035s ago] ('734e4799-f4ab-4a53-bd78-9ab4ebda0c4f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 58, 14, 741066), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 747067), datetime.datetime(2025, 4, 19, 10, 58, 14, 747067), 0)
2025-04-19 10:58:14,748 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,749 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,750 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,750 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 750077), '033ab003-9f4d-42da-a035-58fd75fe2995')
2025-04-19 10:58:14,751 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,751 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,753 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,753 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,753 - sqlalchemy.engine.Engine - INFO - [cached since 0.0102s ago] ('6114b3fc-23a1-4869-9ad8-af543565a740',)
2025-04-19 10:58:14,754 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,754 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,755 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,756 - sqlalchemy.engine.Engine - INFO - [cached since 0.005564s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 755068), '6114b3fc-23a1-4869-9ad8-af543565a740')
2025-04-19 10:58:14,756 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,764 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,764 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,764 - sqlalchemy.engine.Engine - INFO - [cached since 0.02068s ago] ('b75d9091-3185-458e-9311-951e0eda8777',)
2025-04-19 10:58:14,766 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,766 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,766 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,766 - sqlalchemy.engine.Engine - INFO - [cached since 0.01651s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 766071), 'b75d9091-3185-458e-9311-951e0eda8777')
2025-04-19 10:58:14,770 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:14,770 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:14,770 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:14,773 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:14,773 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:14,773 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:14,775 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,777 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,778 - sqlalchemy.engine.Engine - INFO - [cached since 0.05112s ago] ('af055940-b37f-43f6-8096-fc9bbf3f29c6', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 58, 14, 770599), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 777607), datetime.datetime(2025, 4, 19, 10, 58, 14, 777607), 0)
2025-04-19 10:58:14,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,779 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,780 - sqlalchemy.engine.Engine - INFO - [cached since 0.05296s ago] ('dd05b08d-952d-4040-a02f-1faf78ebf7b7', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 58, 14, 773607), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 779621), datetime.datetime(2025, 4, 19, 10, 58, 14, 779621), 0)
2025-04-19 10:58:14,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,780 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,780 - sqlalchemy.engine.Engine - INFO - [cached since 0.03766s ago] ('7eea1976-1765-43e4-906c-2b0d4cdba05a',)
2025-04-19 10:58:14,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,781 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,781 - sqlalchemy.engine.Engine - INFO - [cached since 0.03822s ago] ('734e4799-f4ab-4a53-bd78-9ab4ebda0c4f',)
2025-04-19 10:58:14,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,782 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,782 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,782 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,782 - sqlalchemy.engine.Engine - INFO - [cached since 0.033s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 782608), '7eea1976-1765-43e4-906c-2b0d4cdba05a')
2025-04-19 10:58:14,783 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,784 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,785 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,785 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,785 - sqlalchemy.engine.Engine - INFO - [cached since 0.03582s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 785618), '734e4799-f4ab-4a53-bd78-9ab4ebda0c4f')
2025-04-19 10:58:14,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,786 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:14,787 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:14,787 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:14,788 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,788 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,789 - sqlalchemy.engine.Engine - INFO - [cached since 0.06208s ago] ('b48c3b3f-d963-4fd7-b5ca-d388b70dd900', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 58, 14, 788607), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 788607), datetime.datetime(2025, 4, 19, 10, 58, 14, 788607), 0)
2025-04-19 10:58:14,789 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: af055940-b37f-43f6-8096-fc9bbf3f29c6
2025-04-19 10:58:14,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,792 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,792 - sqlalchemy.engine.Engine - INFO - [cached since 0.04923s ago] ('af055940-b37f-43f6-8096-fc9bbf3f29c6',)
2025-04-19 10:58:14,793 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,793 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,793 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,793 - sqlalchemy.engine.Engine - INFO - [cached since 0.04381s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 793607), 'af055940-b37f-43f6-8096-fc9bbf3f29c6')
2025-04-19 10:58:14,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,798 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: dd05b08d-952d-4040-a02f-1faf78ebf7b7
2025-04-19 10:58:14,798 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:14,799 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:14,801 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:14,803 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:14,803 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:14,804 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:14,804 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,804 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,805 - sqlalchemy.engine.Engine - INFO - [cached since 0.06204s ago] ('dd05b08d-952d-4040-a02f-1faf78ebf7b7',)
2025-04-19 10:58:14,805 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,806 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,806 - sqlalchemy.engine.Engine - INFO - [cached since 0.07952s ago] ('c0650cb9-0421-489a-b914-060e287d031a', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 58, 14, 802609), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 806608), datetime.datetime(2025, 4, 19, 10, 58, 14, 806608), 0)
2025-04-19 10:58:14,807 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,808 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,808 - sqlalchemy.engine.Engine - INFO - [cached since 0.08149s ago] ('bad0b369-9471-4328-8ec1-c178531b0e53', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 58, 14, 804607), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 808608), datetime.datetime(2025, 4, 19, 10, 58, 14, 808608), 0)
2025-04-19 10:58:14,809 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,809 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,810 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,810 - sqlalchemy.engine.Engine - INFO - [cached since 0.06032s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 809609), 'dd05b08d-952d-4040-a02f-1faf78ebf7b7')
2025-04-19 10:58:14,810 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,810 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b48c3b3f-d963-4fd7-b5ca-d388b70dd900
2025-04-19 10:58:14,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,814 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,814 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,815 - sqlalchemy.engine.Engine - INFO - [cached since 0.0719s ago] ('b48c3b3f-d963-4fd7-b5ca-d388b70dd900',)
2025-04-19 10:58:14,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,815 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:14,816 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 10:58:14,816 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,817 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,817 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,817 - sqlalchemy.engine.Engine - INFO - [cached since 0.06789s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 817608), 'b48c3b3f-d963-4fd7-b5ca-d388b70dd900')
2025-04-19 10:58:14,818 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 2c356c7a-265f-4a5c-af76-73bcf0a3661a
2025-04-19 10:58:14,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,819 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c0650cb9-0421-489a-b914-060e287d031a
2025-04-19 10:58:14,820 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:14,820 - services.execution.handlers.foundation - INFO - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 打印: ['2c356c7a-265f-4a5c-af76-73bcf0a3661a']
2025-04-19 10:58:14,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,820 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,821 - sqlalchemy.engine.Engine - INFO - [cached since 0.07799s ago] ('c0650cb9-0421-489a-b914-060e287d031a',)
2025-04-19 10:58:14,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,822 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,823 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('3442f465-e86b-45ed-b88b-30af371167f0', 1, '{"success": true, "message": "打印成功", "output": {"message": ["2c356c7a-265f-4a5c-af76-73bcf0a3661a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 58, 14, 822608), datetime.datetime(2025, 4, 19, 10, 58, 14, 822608), 0)
2025-04-19 10:58:14,828 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,828 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,828 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,828 - sqlalchemy.engine.Engine - INFO - [cached since 0.07888s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 828607), 'c0650cb9-0421-489a-b914-060e287d031a')
2025-04-19 10:58:14,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,830 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: bad0b369-9471-4328-8ec1-c178531b0e53
2025-04-19 10:58:14,830 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,831 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,831 - sqlalchemy.engine.Engine - INFO - [cached since 0.08815s ago] ('bad0b369-9471-4328-8ec1-c178531b0e53',)
2025-04-19 10:58:14,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,832 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:14,832 - sqlalchemy.engine.Engine - INFO - [cached since 0.01667s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 10:58:14,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,835 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:14,835 - sqlalchemy.engine.Engine - INFO - [cached since 0.01934s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 10:58:14,835 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,835 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,836 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,836 - sqlalchemy.engine.Engine - INFO - [cached since 0.08643s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 836607), 'bad0b369-9471-4328-8ec1-c178531b0e53')
2025-04-19 10:58:14,836 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 730110e1-a1aa-4b19-914f-93539368abf1
2025-04-19 10:58:14,836 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,837 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,837 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f
2025-04-19 10:58:14,838 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,838 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:14,839 - services.execution.handlers.foundation - INFO - 任务 730110e1-a1aa-4b19-914f-93539368abf1 打印: ['730110e1-a1aa-4b19-914f-93539368abf1']
2025-04-19 10:58:14,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,840 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,840 - sqlalchemy.engine.Engine - INFO - [cached since 0.01762s ago] ('cc3fa852-1a85-465e-864f-ad17e90f91de', 1, '{"success": true, "message": "打印成功", "output": {"message": ["730110e1-a1aa-4b19-914f-93539368abf1"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 58, 14, 840608), datetime.datetime(2025, 4, 19, 10, 58, 14, 840608), 0)
2025-04-19 10:58:14,841 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:14,841 - services.execution.handlers.foundation - INFO - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 打印: ['9760da26-b0ca-4baa-8c15-8afe4be7dd2f']
2025-04-19 10:58:14,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,842 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,842 - sqlalchemy.engine.Engine - INFO - [cached since 0.09919s ago] ('af055940-b37f-43f6-8096-fc9bbf3f29c6',)
2025-04-19 10:58:14,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,843 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,843 - sqlalchemy.engine.Engine - INFO - [cached since 0.02075s ago] ('1e5d997f-6387-4450-a519-59fcd603319a', 1, '{"success": true, "message": "打印成功", "output": {"message": ["9760da26-b0ca-4baa-8c15-8afe4be7dd2f"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 58, 14, 843607), datetime.datetime(2025, 4, 19, 10, 58, 14, 843607), 0)
2025-04-19 10:58:14,844 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,844 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,848 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,848 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 19, 10, 58, 14, 845608), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 848607), 'af055940-b37f-43f6-8096-fc9bbf3f29c6')
2025-04-19 10:58:14,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,851 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,851 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:14,851 - sqlalchemy.engine.Engine - INFO - [cached since 0.03568s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 10:58:14,851 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,851 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,852 - sqlalchemy.engine.Engine - INFO - [cached since 0.1088s ago] ('dd05b08d-952d-4040-a02f-1faf78ebf7b7',)
2025-04-19 10:58:14,852 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,852 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:14,852 - sqlalchemy.engine.Engine - INFO - [cached since 0.03673s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 10:58:14,852 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0
2025-04-19 10:58:14,852 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,853 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,853 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,853 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,853 - sqlalchemy.engine.Engine - INFO - [cached since 0.005644s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 853608), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 853608), 'dd05b08d-952d-4040-a02f-1faf78ebf7b7')
2025-04-19 10:58:14,854 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971
2025-04-19 10:58:14,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,855 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:14,855 - services.execution.handlers.foundation - INFO - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 打印: ['79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0']
2025-04-19 10:58:14,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,855 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,855 - sqlalchemy.engine.Engine - INFO - [cached since 0.03307s ago] ('de7476c9-05d1-4b4d-aac3-defb1dd111ec', 1, '{"success": true, "message": "打印成功", "output": {"message": ["79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 58, 14, 855608), datetime.datetime(2025, 4, 19, 10, 58, 14, 855608), 0)
2025-04-19 10:58:14,856 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:14,856 - services.execution.handlers.foundation - INFO - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 打印: ['7b8ccb78-ec9d-4157-a7c2-f1a39c73b971']
2025-04-19 10:58:14,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,857 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,857 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,857 - sqlalchemy.engine.Engine - INFO - [cached since 0.03487s ago] ('5c4dc629-f584-478f-bd9c-f4640be46a30', 1, '{"success": true, "message": "打印成功", "output": {"message": ["7b8ccb78-ec9d-4157-a7c2-f1a39c73b971"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 58, 14, 857655), datetime.datetime(2025, 4, 19, 10, 58, 14, 857655), 0)
2025-04-19 10:58:14,858 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,859 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,859 - sqlalchemy.engine.Engine - INFO - [cached since 0.1162s ago] ('b48c3b3f-d963-4fd7-b5ca-d388b70dd900',)
2025-04-19 10:58:14,860 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,860 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,860 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,861 - sqlalchemy.engine.Engine - INFO - [cached since 0.0135s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 860611), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 860611), 'b48c3b3f-d963-4fd7-b5ca-d388b70dd900')
2025-04-19 10:58:14,863 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,863 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,864 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,864 - sqlalchemy.engine.Engine - INFO - [cached since 0.04166s ago] ('fe62bf69-371a-4668-a579-ab80b1a8d5eb', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["2c356c7a-265f-4a5c-af76-73bcf0a3661a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 58, 14, 864612), datetime.datetime(2025, 4, 19, 10, 58, 14, 864612), 0)
2025-04-19 10:58:14,865 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,868 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,868 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,868 - sqlalchemy.engine.Engine - INFO - [cached since 0.1255s ago] ('c0650cb9-0421-489a-b914-060e287d031a',)
2025-04-19 10:58:14,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,869 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,869 - sqlalchemy.engine.Engine - INFO - [cached since 0.04667s ago] ('2efc437e-71b4-4f87-b3b2-d4277703ce54', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["730110e1-a1aa-4b19-914f-93539368abf1"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 58, 14, 869659), datetime.datetime(2025, 4, 19, 10, 58, 14, 869659), 0)
2025-04-19 10:58:14,870 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,870 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,870 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,872 - sqlalchemy.engine.Engine - INFO - [cached since 0.02449s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 870611), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 870611), 'c0650cb9-0421-489a-b914-060e287d031a')
2025-04-19 10:58:14,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,874 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,875 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,875 - sqlalchemy.engine.Engine - INFO - [cached since 0.1323s ago] ('bad0b369-9471-4328-8ec1-c178531b0e53',)
2025-04-19 10:58:14,876 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:14,876 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,876 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,876 - sqlalchemy.engine.Engine - INFO - [cached since 0.02829s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 876691), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 876691), 'bad0b369-9471-4328-8ec1-c178531b0e53')
2025-04-19 10:58:14,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,878 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,878 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,878 - sqlalchemy.engine.Engine - INFO - [cached since 0.1357s ago] ('033ab003-9f4d-42da-a035-58fd75fe2995',)
2025-04-19 10:58:14,879 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,880 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,880 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,880 - sqlalchemy.engine.Engine - INFO - [cached since 0.03251s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 880696), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 880696), '033ab003-9f4d-42da-a035-58fd75fe2995')
2025-04-19 10:58:14,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,881 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,882 - sqlalchemy.engine.Engine - INFO - [cached since 0.05934s ago] ('cd729e7d-9d76-4371-9a77-24f4ea4d35cb', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["9760da26-b0ca-4baa-8c15-8afe4be7dd2f"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 58, 14, 881691), datetime.datetime(2025, 4, 19, 10, 58, 14, 881691), 0)
2025-04-19 10:58:14,882 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,882 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,884 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,884 - sqlalchemy.engine.Engine - INFO - [cached since 0.06159s ago] ('fa67c9da-597f-48cf-ba20-2314e3eecd7b', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 58, 14, 884691), datetime.datetime(2025, 4, 19, 10, 58, 14, 884691), 0)
2025-04-19 10:58:14,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,884 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,885 - sqlalchemy.engine.Engine - INFO - [cached since 0.1423s ago] ('6114b3fc-23a1-4869-9ad8-af543565a740',)
2025-04-19 10:58:14,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,887 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,888 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,888 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,888 - sqlalchemy.engine.Engine - INFO - [cached since 0.0408s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 888691), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 888691), '6114b3fc-23a1-4869-9ad8-af543565a740')
2025-04-19 10:58:14,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,889 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:14,890 - sqlalchemy.engine.Engine - INFO - [cached since 0.06732s ago] ('505d45d7-19b5-44a5-94de-0a7589fe1d65', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["7b8ccb78-ec9d-4157-a7c2-f1a39c73b971"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 58, 14, 889752), datetime.datetime(2025, 4, 19, 10, 58, 14, 889752), 0)
2025-04-19 10:58:14,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,893 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,894 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,894 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] (datetime.datetime(2025, 4, 19, 10, 58, 14, 893697), '任务执行成功', 1000, 184, datetime.datetime(2025, 4, 19, 10, 58, 14, 894691), '2c356c7a-265f-4a5c-af76-73bcf0a3661a')
2025-04-19 10:58:14,895 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,895 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,896 - sqlalchemy.engine.Engine - INFO - [cached since 0.1529s ago] ('b75d9091-3185-458e-9311-951e0eda8777',)
2025-04-19 10:58:14,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,897 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,897 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,898 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,898 - sqlalchemy.engine.Engine - INFO - [cached since 0.05046s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 898722), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 898722), 'b75d9091-3185-458e-9311-951e0eda8777')
2025-04-19 10:58:14,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,902 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,903 - sqlalchemy.engine.Engine - INFO - [cached since 0.1607s ago] ('7eea1976-1765-43e4-906c-2b0d4cdba05a',)
2025-04-19 10:58:14,904 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,904 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,906 - sqlalchemy.engine.Engine - INFO - [cached since 0.01254s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 901691), '任务执行成功', 1000, 190, datetime.datetime(2025, 4, 19, 10, 58, 14, 904690), '730110e1-a1aa-4b19-914f-93539368abf1')
2025-04-19 10:58:14,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,907 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,907 - sqlalchemy.engine.Engine - INFO - [cached since 0.1643s ago] ('734e4799-f4ab-4a53-bd78-9ab4ebda0c4f',)
2025-04-19 10:58:14,908 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,908 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,909 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,909 - sqlalchemy.engine.Engine - INFO - [cached since 0.06109s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 908691), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 909690), '7eea1976-1765-43e4-906c-2b0d4cdba05a')
2025-04-19 10:58:14,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 结果: True
2025-04-19 10:58:14,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 10:58:14,910 - services.execution.task_executor - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 设置超时时间: 3600秒
2025-04-19 10:58:14,910 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,910 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,910 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,911 - sqlalchemy.engine.Engine - INFO - [cached since 0.0628s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 910691), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 14, 910691), '734e4799-f4ab-4a53-bd78-9ab4ebda0c4f')
2025-04-19 10:58:14,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,913 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,913 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,913 - sqlalchemy.engine.Engine - INFO - [cached since 0.2131s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 10:58:14,914 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,914 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,915 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,915 - sqlalchemy.engine.Engine - INFO - [cached since 0.02137s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 914691), '任务执行成功', 1000, 194, datetime.datetime(2025, 4, 19, 10, 58, 14, 915762), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f')
2025-04-19 10:58:14,916 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,917 - sqlalchemy.engine.Engine - INFO - [cached since 0.2131s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:14,917 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,918 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 730110e1-a1aa-4b19-914f-93539368abf1, 结果: True
2025-04-19 10:58:14,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 10:58:14,918 - services.execution.task_executor - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 设置超时时间: 3600秒
2025-04-19 10:58:14,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,919 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,919 - sqlalchemy.engine.Engine - INFO - [cached since 0.2184s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 10:58:14,919 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,920 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,920 - sqlalchemy.engine.Engine - INFO - [cached since 0.2106s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 920691), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce')
2025-04-19 10:58:14,921 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,921 - sqlalchemy.engine.Engine - INFO - [cached since 0.2179s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:14,922 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,923 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,924 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,924 - sqlalchemy.engine.Engine - INFO - [cached since 0.03009s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 923691), '任务执行成功', 1000, 203, datetime.datetime(2025, 4, 19, 10, 58, 14, 924691), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0')
2025-04-19 10:58:14,924 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,925 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,925 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,925 - sqlalchemy.engine.Engine - INFO - [cached since 0.2156s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 925691), 'ba19063c-6a94-4204-b181-ae42457f9779')
2025-04-19 10:58:14,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 结果: True
2025-04-19 10:58:14,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 10:58:14,931 - services.execution.task_executor - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 设置超时时间: 3600秒
2025-04-19 10:58:14,931 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,931 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,932 - sqlalchemy.engine.Engine - INFO - [cached since 0.03785s ago] (datetime.datetime(2025, 4, 19, 10, 58, 14, 928691), '任务执行成功', 1000, 208, datetime.datetime(2025, 4, 19, 10, 58, 14, 931726), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971')
2025-04-19 10:58:14,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,932 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,932 - sqlalchemy.engine.Engine - INFO - [cached since 0.2319s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 10:58:14,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,933 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,933 - sqlalchemy.engine.Engine - INFO - [cached since 0.2299s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:14,934 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,938 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 结果: True
2025-04-19 10:58:14,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 10:58:14,938 - services.execution.task_executor - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 设置超时时间: 3600秒
2025-04-19 10:58:14,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,939 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,939 - sqlalchemy.engine.Engine - INFO - [cached since 0.2127s ago] ('3c68e03d-280e-4508-a103-c3835790163e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 58, 14, 936690), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 939691), datetime.datetime(2025, 4, 19, 10, 58, 14, 939691), 0)
2025-04-19 10:58:14,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,940 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,941 - sqlalchemy.engine.Engine - INFO - [cached since 0.2405s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 10:58:14,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,942 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,942 - sqlalchemy.engine.Engine - INFO - [cached since 0.2388s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:14,943 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,944 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,944 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,945 - sqlalchemy.engine.Engine - INFO - [cached since 0.2179s ago] ('77f3dd9f-2ff3-4eb2-9322-b3975e755fff', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 58, 14, 943692), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 944692), datetime.datetime(2025, 4, 19, 10, 58, 14, 944692), 0)
2025-04-19 10:58:14,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,945 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,945 - sqlalchemy.engine.Engine - INFO - [cached since 0.2358s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 945691), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-19 10:58:14,945 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,946 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,947 - sqlalchemy.engine.Engine - INFO - [cached since 0.2373s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 946691), 'dd48f08e-fa29-4272-84d8-18935eecb64d')
2025-04-19 10:58:14,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,949 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 结果: True
2025-04-19 10:58:14,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 10:58:14,951 - services.execution.task_executor - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 设置超时时间: 3600秒
2025-04-19 10:58:14,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,953 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,954 - sqlalchemy.engine.Engine - INFO - [cached since 0.2532s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 10:58:14,954 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:14,954 - sqlalchemy.engine.Engine - INFO - [cached since 0.2509s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:14,955 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,957 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,957 - sqlalchemy.engine.Engine - INFO - [cached since 0.2143s ago] ('77f3dd9f-2ff3-4eb2-9322-b3975e755fff',)
2025-04-19 10:58:14,957 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,958 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,958 - sqlalchemy.engine.Engine - INFO - [cached since 0.2312s ago] ('4a1be5c1-6210-449d-831c-06043dffe44d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 58, 14, 955691), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 957694), datetime.datetime(2025, 4, 19, 10, 58, 14, 957694), 0)
2025-04-19 10:58:14,958 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,959 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,959 - sqlalchemy.engine.Engine - INFO - [cached since 0.2163s ago] ('3c68e03d-280e-4508-a103-c3835790163e',)
2025-04-19 10:58:14,960 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,960 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,960 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,960 - sqlalchemy.engine.Engine - INFO - [cached since 0.2109s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 960694), '77f3dd9f-2ff3-4eb2-9322-b3975e755fff')
2025-04-19 10:58:14,961 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,961 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,961 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,961 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,961 - sqlalchemy.engine.Engine - INFO - [cached since 0.2121s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 961694), '3c68e03d-280e-4508-a103-c3835790163e')
2025-04-19 10:58:14,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,963 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,963 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:14,963 - sqlalchemy.engine.Engine - INFO - [cached since 0.2535s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 14, 963694), 'eb99d8e7-9568-40dd-866b-f4bd259517a7')
2025-04-19 10:58:14,963 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,964 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,964 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,964 - sqlalchemy.engine.Engine - INFO - [cached since 0.2374s ago] ('a42d393b-37a7-4fe5-81cc-181eeb97bb7d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 58, 14, 963694), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 964693), datetime.datetime(2025, 4, 19, 10, 58, 14, 964693), 0)
2025-04-19 10:58:14,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,965 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,970 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,970 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,970 - sqlalchemy.engine.Engine - INFO - [cached since 0.2275s ago] ('4a1be5c1-6210-449d-831c-06043dffe44d',)
2025-04-19 10:58:14,972 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,972 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,972 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,972 - sqlalchemy.engine.Engine - INFO - [cached since 0.222s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 972006), '4a1be5c1-6210-449d-831c-06043dffe44d')
2025-04-19 10:58:14,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,976 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:14,977 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:14,977 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:14,977 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:14,977 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:14,978 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:14,979 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:14,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,980 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,981 - sqlalchemy.engine.Engine - INFO - [cached since 0.2534s ago] ('b7e35efe-1dfc-4fc7-aba4-422abe9fe272', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 58, 14, 979005), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 980005), datetime.datetime(2025, 4, 19, 10, 58, 14, 980005), 0)
2025-04-19 10:58:14,981 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,982 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,982 - sqlalchemy.engine.Engine - INFO - [cached since 0.239s ago] ('a42d393b-37a7-4fe5-81cc-181eeb97bb7d',)
2025-04-19 10:58:14,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,987 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,987 - sqlalchemy.engine.Engine - INFO - [cached since 0.2601s ago] ('b7cc78cc-3808-418d-8c49-67925681a2f5', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 58, 14, 977005), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 986013), datetime.datetime(2025, 4, 19, 10, 58, 14, 986013), 0)
2025-04-19 10:58:14,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,988 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,989 - sqlalchemy.engine.Engine - INFO - [cached since 0.2614s ago] ('76a31a26-aaa1-4545-9a6d-df125cbb46b7', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 58, 14, 978005), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 988005), datetime.datetime(2025, 4, 19, 10, 58, 14, 988005), 0)
2025-04-19 10:58:14,989 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:14,990 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:14,990 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,991 - sqlalchemy.engine.Engine - INFO - [cached since 0.2411s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 14, 990005), 'a42d393b-37a7-4fe5-81cc-181eeb97bb7d')
2025-04-19 10:58:14,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,992 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:14,994 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:14,994 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:14,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,997 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,997 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:14,997 - sqlalchemy.engine.Engine - INFO - [cached since 0.2701s ago] ('fbf14801-8858-4244-901d-16ec3d184687', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 58, 14, 994005), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 14, 997005), datetime.datetime(2025, 4, 19, 10, 58, 14, 997005), 0)
2025-04-19 10:58:14,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:14,998 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b7cc78cc-3808-418d-8c49-67925681a2f5
2025-04-19 10:58:14,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:14,999 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:14,999 - sqlalchemy.engine.Engine - INFO - [cached since 0.256s ago] ('b7cc78cc-3808-418d-8c49-67925681a2f5',)
2025-04-19 10:58:15,000 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,000 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,001 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,001 - sqlalchemy.engine.Engine - INFO - [cached since 0.2511s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 1005), 'b7cc78cc-3808-418d-8c49-67925681a2f5')
2025-04-19 10:58:15,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,005 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,006 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,006 - sqlalchemy.engine.Engine - INFO - [cached since 0.2624s ago] ('b7e35efe-1dfc-4fc7-aba4-422abe9fe272',)
2025-04-19 10:58:15,007 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,007 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,008 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,008 - sqlalchemy.engine.Engine - INFO - [cached since 0.258s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 8006), 'b7e35efe-1dfc-4fc7-aba4-422abe9fe272')
2025-04-19 10:58:15,009 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,012 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 76a31a26-aaa1-4545-9a6d-df125cbb46b7
2025-04-19 10:58:15,013 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,013 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,013 - sqlalchemy.engine.Engine - INFO - [cached since 0.2698s ago] ('76a31a26-aaa1-4545-9a6d-df125cbb46b7',)
2025-04-19 10:58:15,014 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: fbf14801-8858-4244-901d-16ec3d184687
2025-04-19 10:58:15,015 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:15,015 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:15,015 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:15,018 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,018 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,019 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,019 - sqlalchemy.engine.Engine - INFO - [cached since 0.2689s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 19006), '76a31a26-aaa1-4545-9a6d-df125cbb46b7')
2025-04-19 10:58:15,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,020 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,021 - sqlalchemy.engine.Engine - INFO - [cached since 0.2772s ago] ('fbf14801-8858-4244-901d-16ec3d184687',)
2025-04-19 10:58:15,021 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,021 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:15,022 - sqlalchemy.engine.Engine - INFO - [cached since 0.2946s ago] ('98767228-0669-4aa6-855a-fcd71cfe2f16', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 58, 15, 16005), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 15, 21010), datetime.datetime(2025, 4, 19, 10, 58, 15, 21010), 0)
2025-04-19 10:58:15,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,023 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,024 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,024 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,025 - sqlalchemy.engine.Engine - INFO - [cached since 0.2751s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 24006), 'fbf14801-8858-4244-901d-16ec3d184687')
2025-04-19 10:58:15,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,029 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:15,029 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:15,029 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:15,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,030 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:15,031 - sqlalchemy.engine.Engine - INFO - [cached since 0.2147s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 10:58:15,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,033 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:15,033 - sqlalchemy.engine.Engine - INFO - [cached since 0.3062s ago] ('cfa5d4b5-67b1-4361-a211-f4554f13d0db', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 58, 15, 29053), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 15, 33006), datetime.datetime(2025, 4, 19, 10, 58, 15, 33006), 0)
2025-04-19 10:58:15,034 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ba19063c-6a94-4204-b181-ae42457f9779
2025-04-19 10:58:15,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,035 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,036 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:15,036 - sqlalchemy.engine.Engine - INFO - [cached since 0.2205s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 10:58:15,037 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 98767228-0669-4aa6-855a-fcd71cfe2f16
2025-04-19 10:58:15,038 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:15,039 - services.execution.handlers.foundation - INFO - 任务 ba19063c-6a94-4204-b181-ae42457f9779 打印: ['ba19063c-6a94-4204-b181-ae42457f9779']
2025-04-19 10:58:15,040 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: aaeb5784-4124-49b3-9c2b-4c69d5085dce
2025-04-19 10:58:15,040 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,041 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,041 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,042 - sqlalchemy.engine.Engine - INFO - [cached since 0.2986s ago] ('98767228-0669-4aa6-855a-fcd71cfe2f16',)
2025-04-19 10:58:15,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,043 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,043 - sqlalchemy.engine.Engine - INFO - [cached since 0.2201s ago] ('3fb31395-66b9-4802-86a4-96682e9ed6fe', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ba19063c-6a94-4204-b181-ae42457f9779"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 58, 15, 43005), datetime.datetime(2025, 4, 19, 10, 58, 15, 43005), 0)
2025-04-19 10:58:15,044 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,044 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,044 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,045 - sqlalchemy.engine.Engine - INFO - [cached since 0.2946s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 44005), '98767228-0669-4aa6-855a-fcd71cfe2f16')
2025-04-19 10:58:15,046 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:15,046 - services.execution.handlers.foundation - INFO - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 打印: ['aaeb5784-4124-49b3-9c2b-4c69d5085dce']
2025-04-19 10:58:15,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,048 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,048 - sqlalchemy.engine.Engine - INFO - [cached since 0.2247s ago] ('601a7f6a-21c7-4e30-9976-a40f68ec2755', 1, '{"success": true, "message": "打印成功", "output": {"message": ["aaeb5784-4124-49b3-9c2b-4c69d5085dce"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 58, 15, 48005), datetime.datetime(2025, 4, 19, 10, 58, 15, 48005), 0)
2025-04-19 10:58:15,048 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,049 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: cfa5d4b5-67b1-4361-a211-f4554f13d0db
2025-04-19 10:58:15,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,049 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:15,050 - sqlalchemy.engine.Engine - INFO - [cached since 0.234s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 10:58:15,052 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,053 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,053 - sqlalchemy.engine.Engine - INFO - [cached since 0.3098s ago] ('cfa5d4b5-67b1-4361-a211-f4554f13d0db',)
2025-04-19 10:58:15,053 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80
2025-04-19 10:58:15,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,055 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,055 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,055 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,056 - sqlalchemy.engine.Engine - INFO - [cached since 0.3057s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 55005), 'cfa5d4b5-67b1-4361-a211-f4554f13d0db')
2025-04-19 10:58:15,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,058 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,058 - sqlalchemy.engine.Engine - INFO - [cached since 0.3147s ago] ('b7cc78cc-3808-418d-8c49-67925681a2f5',)
2025-04-19 10:58:15,059 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:15,059 - services.execution.handlers.foundation - INFO - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 打印: ['bdbb2c58-e8f5-4916-8457-d80bbf4c8a80']
2025-04-19 10:58:15,064 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,064 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,064 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,064 - sqlalchemy.engine.Engine - INFO - [cached since 0.216s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 64008), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 64008), 'b7cc78cc-3808-418d-8c49-67925681a2f5')
2025-04-19 10:58:15,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,065 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,065 - sqlalchemy.engine.Engine - INFO - [cached since 0.2424s ago] ('6ed502f7-dbf7-412a-a580-48c04a619a28', 1, '{"success": true, "message": "打印成功", "output": {"message": ["bdbb2c58-e8f5-4916-8457-d80bbf4c8a80"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 58, 15, 65008), datetime.datetime(2025, 4, 19, 10, 58, 15, 65008), 0)
2025-04-19 10:58:15,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,068 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,069 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,069 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:15,069 - sqlalchemy.engine.Engine - INFO - [cached since 0.2533s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 10:58:15,069 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,070 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,070 - sqlalchemy.engine.Engine - INFO - [cached since 0.3272s ago] ('76a31a26-aaa1-4545-9a6d-df125cbb46b7',)
2025-04-19 10:58:15,070 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: dd48f08e-fa29-4272-84d8-18935eecb64d
2025-04-19 10:58:15,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,071 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,072 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,072 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,072 - sqlalchemy.engine.Engine - INFO - [cached since 0.2242s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 72515), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 72515), '76a31a26-aaa1-4545-9a6d-df125cbb46b7')
2025-04-19 10:58:15,073 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,074 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,074 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:15,074 - sqlalchemy.engine.Engine - INFO - [cached since 0.259s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 10:58:15,076 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:15,076 - services.execution.handlers.foundation - INFO - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 打印: ['dd48f08e-fa29-4272-84d8-18935eecb64d']
2025-04-19 10:58:15,077 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,077 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,077 - sqlalchemy.engine.Engine - INFO - [cached since 0.2549s ago] ('dce63f68-7e97-4428-a666-ec2844e1e4b3', 1, '{"success": true, "message": "打印成功", "output": {"message": ["dd48f08e-fa29-4272-84d8-18935eecb64d"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 58, 15, 77516), datetime.datetime(2025, 4, 19, 10, 58, 15, 77516), 0)
2025-04-19 10:58:15,078 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: eb99d8e7-9568-40dd-866b-f4bd259517a7
2025-04-19 10:58:15,078 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,078 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,080 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,080 - sqlalchemy.engine.Engine - INFO - [cached since 0.2573s ago] ('e5e838ce-7ff8-4f89-b68d-0c0622f449e6', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ba19063c-6a94-4204-b181-ae42457f9779"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 58, 15, 80516), datetime.datetime(2025, 4, 19, 10, 58, 15, 80516), 0)
2025-04-19 10:58:15,080 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:15,080 - services.execution.handlers.foundation - INFO - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 打印: ['eb99d8e7-9568-40dd-866b-f4bd259517a7']
2025-04-19 10:58:15,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,081 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,081 - sqlalchemy.engine.Engine - INFO - [cached since 0.259s ago] ('47c90b59-1b30-4db3-93b8-00014af37358', 1, '{"success": true, "message": "打印成功", "output": {"message": ["eb99d8e7-9568-40dd-866b-f4bd259517a7"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 58, 15, 81515), datetime.datetime(2025, 4, 19, 10, 58, 15, 81515), 0)
2025-04-19 10:58:15,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,084 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,084 - sqlalchemy.engine.Engine - INFO - [cached since 0.262s ago] ('176ff76a-01d9-4d24-9a1b-c71a8cee4507', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["aaeb5784-4124-49b3-9c2b-4c69d5085dce"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 58, 15, 84535), datetime.datetime(2025, 4, 19, 10, 58, 15, 84535), 0)
2025-04-19 10:58:15,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,085 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,085 - sqlalchemy.engine.Engine - INFO - [cached since 0.3425s ago] ('fbf14801-8858-4244-901d-16ec3d184687',)
2025-04-19 10:58:15,086 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,087 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,087 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,087 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,087 - sqlalchemy.engine.Engine - INFO - [cached since 0.2395s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 87516), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 87516), 'fbf14801-8858-4244-901d-16ec3d184687')
2025-04-19 10:58:15,088 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,089 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,090 - sqlalchemy.engine.Engine - INFO - [cached since 0.3467s ago] ('98767228-0669-4aa6-855a-fcd71cfe2f16',)
2025-04-19 10:58:15,090 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,090 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,091 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,091 - sqlalchemy.engine.Engine - INFO - [cached since 0.2428s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 90515), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 91516), '98767228-0669-4aa6-855a-fcd71cfe2f16')
2025-04-19 10:58:15,091 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,093 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,094 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,094 - sqlalchemy.engine.Engine - INFO - [cached since 0.3511s ago] ('cfa5d4b5-67b1-4361-a211-f4554f13d0db',)
2025-04-19 10:58:15,095 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,095 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,095 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,096 - sqlalchemy.engine.Engine - INFO - [cached since 0.2478s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 95516), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 95516), 'cfa5d4b5-67b1-4361-a211-f4554f13d0db')
2025-04-19 10:58:15,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,098 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,098 - sqlalchemy.engine.Engine - INFO - [cached since 0.3556s ago] ('77f3dd9f-2ff3-4eb2-9322-b3975e755fff',)
2025-04-19 10:58:15,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,102 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,102 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,102 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,103 - sqlalchemy.engine.Engine - INFO - [cached since 0.2547s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 102515), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 102515), '77f3dd9f-2ff3-4eb2-9322-b3975e755fff')
2025-04-19 10:58:15,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,104 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,105 - sqlalchemy.engine.Engine - INFO - [cached since 0.3618s ago] ('3c68e03d-280e-4508-a103-c3835790163e',)
2025-04-19 10:58:15,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,105 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,105 - sqlalchemy.engine.Engine - INFO - [cached since 0.2828s ago] ('6fd21981-34cb-4643-a544-7a1a17c5d023', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["bdbb2c58-e8f5-4916-8457-d80bbf4c8a80"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 58, 15, 105516), datetime.datetime(2025, 4, 19, 10, 58, 15, 105516), 0)
2025-04-19 10:58:15,107 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,108 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,108 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,108 - sqlalchemy.engine.Engine - INFO - [cached since 0.2606s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 108515), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 108515), '3c68e03d-280e-4508-a103-c3835790163e')
2025-04-19 10:58:15,110 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,110 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,112 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,112 - sqlalchemy.engine.Engine - INFO - [cached since 0.2894s ago] ('3083ebfc-0621-4ca4-bd5b-146f456a5a97', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["dd48f08e-fa29-4272-84d8-18935eecb64d"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 58, 15, 112516), datetime.datetime(2025, 4, 19, 10, 58, 15, 112516), 0)
2025-04-19 10:58:15,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,113 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,114 - sqlalchemy.engine.Engine - INFO - [cached since 0.2911s ago] ('7db6eddb-1ea4-400b-a827-899972852455', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["eb99d8e7-9568-40dd-866b-f4bd259517a7"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 58, 15, 113516), datetime.datetime(2025, 4, 19, 10, 58, 15, 113516), 0)
2025-04-19 10:58:15,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,121 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,121 - sqlalchemy.engine.Engine - INFO - [cached since 0.2271s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 120525), '任务执行成功', 1000, 195, datetime.datetime(2025, 4, 19, 10, 58, 15, 121515), 'ba19063c-6a94-4204-b181-ae42457f9779')
2025-04-19 10:58:15,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,127 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,127 - sqlalchemy.engine.Engine - INFO - [cached since 0.384s ago] ('a42d393b-37a7-4fe5-81cc-181eeb97bb7d',)
2025-04-19 10:58:15,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,128 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,129 - sqlalchemy.engine.Engine - INFO - [cached since 0.3863s ago] ('4a1be5c1-6210-449d-831c-06043dffe44d',)
2025-04-19 10:58:15,130 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,131 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,131 - sqlalchemy.engine.Engine - INFO - [cached since 0.237s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 127516), '任务执行成功', 1000, 207, datetime.datetime(2025, 4, 19, 10, 58, 15, 131516), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce')
2025-04-19 10:58:15,134 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,134 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,134 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,134 - sqlalchemy.engine.Engine - INFO - [cached since 0.2864s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 134515), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 134515), '4a1be5c1-6210-449d-831c-06043dffe44d')
2025-04-19 10:58:15,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,135 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,135 - sqlalchemy.engine.Engine - INFO - [cached since 0.3926s ago] ('b7e35efe-1dfc-4fc7-aba4-422abe9fe272',)
2025-04-19 10:58:15,136 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,136 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,137 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,137 - sqlalchemy.engine.Engine - INFO - [cached since 0.2891s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 136516), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 136516), 'a42d393b-37a7-4fe5-81cc-181eeb97bb7d')
2025-04-19 10:58:15,140 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,142 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,143 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,143 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,144 - sqlalchemy.engine.Engine - INFO - [cached since 0.2958s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 143526), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 143526), 'b7e35efe-1dfc-4fc7-aba4-422abe9fe272')
2025-04-19 10:58:15,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: ba19063c-6a94-4204-b181-ae42457f9779, 结果: True
2025-04-19 10:58:15,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 10:58:15,145 - services.execution.task_executor - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 设置超时时间: 3600秒
2025-04-19 10:58:15,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,146 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,146 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,146 - sqlalchemy.engine.Engine - INFO - [cached since 0.4455s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 10:58:15,147 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:15,148 - sqlalchemy.engine.Engine - INFO - [cached since 0.444s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 10:58:15,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 结果: True
2025-04-19 10:58:15,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 10:58:15,151 - services.execution.task_executor - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 设置超时时间: 3600秒
2025-04-19 10:58:15,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,152 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,152 - sqlalchemy.engine.Engine - INFO - [cached since 0.4524s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 10:58:15,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,154 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,154 - sqlalchemy.engine.Engine - INFO - [cached since 0.4442s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 15, 154017), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6')
2025-04-19 10:58:15,155 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:15,155 - sqlalchemy.engine.Engine - INFO - [cached since 0.4511s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:15,156 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,160 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,160 - sqlalchemy.engine.Engine - INFO - [cached since 0.2661s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 157029), '任务执行成功', 1000, 213, datetime.datetime(2025, 4, 19, 10, 58, 15, 160028), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-19 10:58:15,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,161 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,162 - sqlalchemy.engine.Engine - INFO - [cached since 0.2672s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 159037), '任务执行成功', 1000, 212, datetime.datetime(2025, 4, 19, 10, 58, 15, 161028), 'dd48f08e-fa29-4272-84d8-18935eecb64d')
2025-04-19 10:58:15,163 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,164 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,164 - sqlalchemy.engine.Engine - INFO - [cached since 0.2693s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 161028), '任务执行成功', 1000, 198, datetime.datetime(2025, 4, 19, 10, 58, 15, 164029), 'eb99d8e7-9568-40dd-866b-f4bd259517a7')
2025-04-19 10:58:15,164 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,165 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,165 - sqlalchemy.engine.Engine - INFO - [cached since 0.4547s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 15, 165029), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')
2025-04-19 10:58:15,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,166 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:15,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,168 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:15,169 - sqlalchemy.engine.Engine - INFO - [cached since 0.4415s ago] ('751ac23e-0570-47c5-a6a5-75f0827065cb', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 58, 15, 166029), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 15, 168028), datetime.datetime(2025, 4, 19, 10, 58, 15, 168028), 0)
2025-04-19 10:58:15,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 结果: True
2025-04-19 10:58:15,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 结果: True
2025-04-19 10:58:15,175 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:15,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,176 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:15,176 - sqlalchemy.engine.Engine - INFO - [cached since 0.4495s ago] ('5fcf2bf5-a6f0-4703-953f-608c720fa5d6', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 58, 15, 175646), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 15, 176646), datetime.datetime(2025, 4, 19, 10, 58, 15, 176646), 0)
2025-04-19 10:58:15,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,181 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 结果: True
2025-04-19 10:58:15,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,181 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,182 - sqlalchemy.engine.Engine - INFO - [cached since 0.4388s ago] ('751ac23e-0570-47c5-a6a5-75f0827065cb',)
2025-04-19 10:58:15,182 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,182 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,182 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,183 - sqlalchemy.engine.Engine - INFO - [cached since 0.4332s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 182645), '751ac23e-0570-47c5-a6a5-75f0827065cb')
2025-04-19 10:58:15,183 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,187 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,187 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,187 - sqlalchemy.engine.Engine - INFO - [cached since 0.4447s ago] ('5fcf2bf5-a6f0-4703-953f-608c720fa5d6',)
2025-04-19 10:58:15,188 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,188 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,189 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,189 - sqlalchemy.engine.Engine - INFO - [cached since 0.4396s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 189646), '5fcf2bf5-a6f0-4703-953f-608c720fa5d6')
2025-04-19 10:58:15,190 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,193 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:15,193 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:15,193 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:15,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,194 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:15,195 - sqlalchemy.engine.Engine - INFO - [cached since 0.4679s ago] ('b3c5f3e9-6b1d-4c27-88dd-49ca8c1abc03', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 58, 15, 193646), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 15, 194647), datetime.datetime(2025, 4, 19, 10, 58, 15, 194647), 0)
2025-04-19 10:58:15,196 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,198 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:15,199 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:15,199 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:15,199 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,200 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:15,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.4738s ago] ('2b36fce4-710e-42b2-8a32-e647052f323e', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 58, 15, 199646), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 15, 200646), datetime.datetime(2025, 4, 19, 10, 58, 15, 200646), 0)
2025-04-19 10:58:15,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,205 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b3c5f3e9-6b1d-4c27-88dd-49ca8c1abc03
2025-04-19 10:58:15,205 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,205 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,206 - sqlalchemy.engine.Engine - INFO - [cached since 0.463s ago] ('b3c5f3e9-6b1d-4c27-88dd-49ca8c1abc03',)
2025-04-19 10:58:15,206 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,206 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,207 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,207 - sqlalchemy.engine.Engine - INFO - [cached since 0.4575s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 207647), 'b3c5f3e9-6b1d-4c27-88dd-49ca8c1abc03')
2025-04-19 10:58:15,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,213 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2b36fce4-710e-42b2-8a32-e647052f323e
2025-04-19 10:58:15,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,213 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,214 - sqlalchemy.engine.Engine - INFO - [cached since 0.471s ago] ('2b36fce4-710e-42b2-8a32-e647052f323e',)
2025-04-19 10:58:15,214 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,215 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,215 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,216 - sqlalchemy.engine.Engine - INFO - [cached since 0.4663s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 15, 215663), '2b36fce4-710e-42b2-8a32-e647052f323e')
2025-04-19 10:58:15,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,219 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:15,219 - sqlalchemy.engine.Engine - INFO - [cached since 0.4042s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 10:58:15,220 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6
2025-04-19 10:58:15,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,221 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:15,221 - services.execution.handlers.foundation - INFO - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 打印: ['f8e0d6d2-7851-48af-8a61-2129bbc6d7c6']
2025-04-19 10:58:15,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,222 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,222 - sqlalchemy.engine.Engine - INFO - [cached since 0.3999s ago] ('d1823a08-1161-412c-a57d-888f8c526372', 1, '{"success": true, "message": "打印成功", "output": {"message": ["f8e0d6d2-7851-48af-8a61-2129bbc6d7c6"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 58, 15, 222646), datetime.datetime(2025, 4, 19, 10, 58, 15, 222646), 0)
2025-04-19 10:58:15,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,227 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:15,227 - sqlalchemy.engine.Engine - INFO - [cached since 0.4121s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 10:58:15,228 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ff8fbdc2-670a-443f-81f5-d0790d7dc2af
2025-04-19 10:58:15,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,229 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:15,229 - services.execution.handlers.foundation - INFO - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 打印: ['ff8fbdc2-670a-443f-81f5-d0790d7dc2af']
2025-04-19 10:58:15,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,230 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,230 - sqlalchemy.engine.Engine - INFO - [cached since 0.4078s ago] ('f330bd93-0f18-4174-83e9-fe4b8a8ae591', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ff8fbdc2-670a-443f-81f5-d0790d7dc2af"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 58, 15, 230646), datetime.datetime(2025, 4, 19, 10, 58, 15, 230646), 0)
2025-04-19 10:58:15,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,234 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,234 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,234 - sqlalchemy.engine.Engine - INFO - [cached since 0.4915s ago] ('b3c5f3e9-6b1d-4c27-88dd-49ca8c1abc03',)
2025-04-19 10:58:15,235 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,235 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,236 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,238 - sqlalchemy.engine.Engine - INFO - [cached since 0.3902s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 236646), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 236646), 'b3c5f3e9-6b1d-4c27-88dd-49ca8c1abc03')
2025-04-19 10:58:15,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,242 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,243 - sqlalchemy.engine.Engine - INFO - [cached since 0.4999s ago] ('2b36fce4-710e-42b2-8a32-e647052f323e',)
2025-04-19 10:58:15,243 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:15,243 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,244 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,244 - sqlalchemy.engine.Engine - INFO - [cached since 0.3962s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 244646), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 244646), '2b36fce4-710e-42b2-8a32-e647052f323e')
2025-04-19 10:58:15,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,248 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,248 - sqlalchemy.engine.Engine - INFO - [cached since 0.4254s ago] ('ced8cd46-4454-44d0-af94-2b9c761e3251', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["f8e0d6d2-7851-48af-8a61-2129bbc6d7c6"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 58, 15, 248647), datetime.datetime(2025, 4, 19, 10, 58, 15, 248647), 0)
2025-04-19 10:58:15,248 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,253 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:15,254 - sqlalchemy.engine.Engine - INFO - [cached since 0.4313s ago] ('01e9c801-129e-4dfa-9729-977f64e93ea7', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ff8fbdc2-670a-443f-81f5-d0790d7dc2af"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 58, 15, 253646), datetime.datetime(2025, 4, 19, 10, 58, 15, 253646), 0)
2025-04-19 10:58:15,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,260 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,261 - sqlalchemy.engine.Engine - INFO - [cached since 0.5178s ago] ('751ac23e-0570-47c5-a6a5-75f0827065cb',)
2025-04-19 10:58:15,261 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,262 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,262 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,263 - sqlalchemy.engine.Engine - INFO - [cached since 0.4148s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 262649), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 262649), '751ac23e-0570-47c5-a6a5-75f0827065cb')
2025-04-19 10:58:15,263 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,265 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,266 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,266 - sqlalchemy.engine.Engine - INFO - [cached since 0.5232s ago] ('5fcf2bf5-a6f0-4703-953f-608c720fa5d6',)
2025-04-19 10:58:15,267 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:15,267 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:15,267 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:15,267 - sqlalchemy.engine.Engine - INFO - [cached since 0.4195s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 267650), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 15, 267650), '5fcf2bf5-a6f0-4703-953f-608c720fa5d6')
2025-04-19 10:58:15,268 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,270 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,271 - sqlalchemy.engine.Engine - INFO - [cached since 0.3771s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 270658), '任务执行成功', 1000, 118, datetime.datetime(2025, 4, 19, 10, 58, 15, 270658), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6')
2025-04-19 10:58:15,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,277 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:15,277 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:15,278 - sqlalchemy.engine.Engine - INFO - [cached since 0.384s ago] (datetime.datetime(2025, 4, 19, 10, 58, 15, 277822), '任务执行成功', 1000, 115, datetime.datetime(2025, 4, 19, 10, 58, 15, 277822), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')
2025-04-19 10:58:15,278 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:15,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 结果: True
2025-04-19 10:58:15,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 结果: True
2025-04-19 10:58:19,959 - root - INFO - 应用程序关闭中...
2025-04-19 10:58:19,959 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 10:58:19,959 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 10:58:19,959 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 10:58:19,960 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 10:58:19,960 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 10:58:19,960 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 10:58:19,960 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 10:58:19,960 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 10:58:19,961 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 10:58:19,961 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 10:58:19,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 10:58:19,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 10:58:19,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 10:58:19,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 10:58:19,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 10:58:19,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 10:58:19,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 10:58:19,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 10:58:19,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 10:58:19,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 10:58:19,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 10:58:19,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 10:58:19,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 10:58:19,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 10:58:19,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 10:58:19,963 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 10:58:19,963 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 10:58:19,963 - root - INFO - 增强版任务调度器已停止
2025-04-19 10:58:19,963 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 10:58:19,963 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 10:58:19,964 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 10:58:19,964 - data.session - INFO - 数据库连接已关闭
2025-04-19 10:58:21,329 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:58:21,329 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:58:21,400 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 10:58:21,456 - data.session - INFO - 正在初始化数据库...
2025-04-19 10:58:21,502 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 10:58:21,520 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:58:21,520 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,521 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:58:21,521 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,523 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:58:21,523 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:21,524 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 10:58:21,524 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,525 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 10:58:21,526 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,527 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 10:58:21,527 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,530 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 10:58:21,530 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,531 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 10:58:21,531 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,532 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 10:58:21,532 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,533 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 10:58:21,533 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,535 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 10:58:21,535 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,538 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 10:58:21,538 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,539 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 10:58:21,540 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,541 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 10:58:21,541 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:58:21,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:21,545 - data.session - INFO - 数据库表初始化完成
2025-04-19 10:58:21,924 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 10:58:21,924 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 10:58:21,924 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 10:58:21,925 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 10:58:21,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 10:58:21,925 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 10:58:21,926 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 10:58:21,926 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 10:58:21,926 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 10:58:21,926 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 10:58:21,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 10:58:21,927 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 10:58:21,927 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 10:58:21,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 10:58:21,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 10:58:21,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 10:58:21,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 10:58:21,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 10:58:21,929 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 10:58:21,930 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 10:58:21,955 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:21,956 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:58:21,956 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:58:21,959 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:58:21,959 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:58:21,960 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:58:21,961 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:58:21,965 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:21,974 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 10:58:21,975 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (1, 1)
2025-04-19 10:58:21,977 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 10:58:21,977 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:21,978 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 10:58:21,979 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 10:58:21,979 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 10:58:21,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:21,982 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 10:58:21,983 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1000, 2000, 2001)
2025-04-19 10:58:22,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,001 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:22,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,004 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 10:58:22,005 - sqlalchemy.engine.Engine - INFO - [generated in 0.00104s] (1001, datetime.datetime(2025, 4, 19, 9, 58, 21, 979667))
2025-04-19 10:58:22,007 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载 12 个任务
2025-04-19 10:58:22,007 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 10:58:22,008 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a (优先级 1) 添加到队列 0
2025-04-19 10:58:22,008 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 10:58:22,008 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 (优先级 1) 添加到队列 0
2025-04-19 10:58:22,008 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 10:58:22,008 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 (优先级 1) 添加到队列 0
2025-04-19 10:58:22,008 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 10:58:22,008 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 (优先级 1) 添加到队列 0
2025-04-19 10:58:22,008 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 10:58:22,008 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f (优先级 1) 添加到队列 0
2025-04-19 10:58:22,008 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 10:58:22,008 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce (优先级 1) 添加到队列 0
2025-04-19 10:58:22,008 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 10:58:22,009 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 (优先级 1) 添加到队列 0
2025-04-19 10:58:22,009 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 10:58:22,009 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 (优先级 1) 添加到队列 0
2025-04-19 10:58:22,009 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 10:58:22,009 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d (优先级 1) 添加到队列 0
2025-04-19 10:58:22,009 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 10:58:22,010 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 (优先级 1) 添加到队列 0
2025-04-19 10:58:22,010 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 10:58:22,010 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 (优先级 1) 添加到队列 0
2025-04-19 10:58:22,010 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 10:58:22,010 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af (优先级 1) 添加到队列 0
2025-04-19 10:58:22,010 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 10:58:22,011 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 12 个未完成的任务
2025-04-19 10:58:22,011 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 10:58:22,011 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 10:58:22,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 10:58:22,014 - services.execution.task_executor - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 设置超时时间: 3600秒
2025-04-19 10:58:22,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 10:58:22,015 - services.execution.task_executor - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 设置超时时间: 3600秒
2025-04-19 10:58:22,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 10:58:22,015 - services.execution.task_executor - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 设置超时时间: 3600秒
2025-04-19 10:58:22,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 10:58:22,016 - services.execution.task_executor - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 设置超时时间: 3600秒
2025-04-19 10:58:22,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 10:58:22,016 - services.execution.task_executor - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 设置超时时间: 3600秒
2025-04-19 10:58:22,017 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,018 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,019 - sqlalchemy.engine.Engine - INFO - [generated in 0.00113s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 10:58:22,020 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,021 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:22,021 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:22,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,023 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:22,024 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:22,024 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,025 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,025 - sqlalchemy.engine.Engine - INFO - [cached since 0.007277s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 10:58:22,026 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,027 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,027 - sqlalchemy.engine.Engine - INFO - [cached since 0.009685s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 10:58:22,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,029 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,029 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 29625), '2c356c7a-265f-4a5c-af76-73bcf0a3661a')
2025-04-19 10:58:22,029 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:58:22,030 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,030 - sqlalchemy.engine.Engine - INFO - [cached since 0.009758s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:22,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,031 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,032 - sqlalchemy.engine.Engine - INFO - [cached since 0.01414s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 10:58:22,033 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,033 - sqlalchemy.engine.Engine - INFO - [cached since 0.01246s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 10:58:22,033 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,035 - sqlalchemy.engine.Engine - INFO - [cached since 0.0148s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:22,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,036 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,037 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,037 - sqlalchemy.engine.Engine - INFO - [cached since 0.01945s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 10:58:22,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,038 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,038 - sqlalchemy.engine.Engine - INFO - [cached since 0.01838s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 10:58:22,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,039 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,040 - sqlalchemy.engine.Engine - INFO - [cached since 0.0114s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 39978), '730110e1-a1aa-4b19-914f-93539368abf1')
2025-04-19 10:58:22,040 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,041 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,041 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,041 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,042 - sqlalchemy.engine.Engine - INFO - [cached since 0.0135s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 41978), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0')
2025-04-19 10:58:22,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,042 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,042 - sqlalchemy.engine.Engine - INFO - [cached since 0.01401s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 42979), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971')
2025-04-19 10:58:22,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,044 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,044 - sqlalchemy.engine.Engine - INFO - [cached since 0.01588s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 44980), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f')
2025-04-19 10:58:22,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,045 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,049 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,049 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('bd8999a7-53a9-4111-a67c-81529f9454dc', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 58, 22, 47977), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 48979), datetime.datetime(2025, 4, 19, 10, 58, 22, 48979), 0)
2025-04-19 10:58:22,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,050 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,051 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,052 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,052 - sqlalchemy.engine.Engine - INFO - [cached since 0.003529s ago] ('82541381-936f-487b-87b6-95c43d07d720', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 58, 22, 51978), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 52989), datetime.datetime(2025, 4, 19, 10, 58, 22, 52989), 0)
2025-04-19 10:58:22,052 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,057 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,057 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,058 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,059 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,059 - sqlalchemy.engine.Engine - INFO - [cached since 0.009813s ago] ('9f9a6f9d-2608-48bc-887a-0aa2855ec75a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 58, 22, 57426), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 59431), datetime.datetime(2025, 4, 19, 10, 58, 22, 59431), 0)
2025-04-19 10:58:22,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,059 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,059 - sqlalchemy.engine.Engine - INFO - [cached since 0.0105s ago] ('a7480f9d-36fb-4c59-baa3-854449e20cbf', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 58, 22, 58452), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 59431), datetime.datetime(2025, 4, 19, 10, 58, 22, 59431), 0)
2025-04-19 10:58:22,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,060 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,060 - sqlalchemy.engine.Engine - INFO - [cached since 0.01128s ago] ('3d7d7d8a-289c-44e2-8254-eafaa25425c1', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 58, 22, 58452), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 60433), datetime.datetime(2025, 4, 19, 10, 58, 22, 60433), 0)
2025-04-19 10:58:22,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,064 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,065 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,065 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('bd8999a7-53a9-4111-a67c-81529f9454dc',)
2025-04-19 10:58:22,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,065 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,066 - sqlalchemy.engine.Engine - INFO - [cached since 0.0009079s ago] ('82541381-936f-487b-87b6-95c43d07d720',)
2025-04-19 10:58:22,066 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,066 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,067 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,067 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 67959), 'bd8999a7-53a9-4111-a67c-81529f9454dc')
2025-04-19 10:58:22,068 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,068 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,068 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,068 - sqlalchemy.engine.Engine - INFO - [cached since 0.00142s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 68958), '82541381-936f-487b-87b6-95c43d07d720')
2025-04-19 10:58:22,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,072 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,072 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,072 - sqlalchemy.engine.Engine - INFO - [cached since 0.006749s ago] ('9f9a6f9d-2608-48bc-887a-0aa2855ec75a',)
2025-04-19 10:58:22,072 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,072 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,072 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,073 - sqlalchemy.engine.Engine - INFO - [cached since 0.005544s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 72959), '9f9a6f9d-2608-48bc-887a-0aa2855ec75a')
2025-04-19 10:58:22,073 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,075 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,075 - sqlalchemy.engine.Engine - INFO - [cached since 0.01053s ago] ('3d7d7d8a-289c-44e2-8254-eafaa25425c1',)
2025-04-19 10:58:22,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,076 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,076 - sqlalchemy.engine.Engine - INFO - [cached since 0.01118s ago] ('a7480f9d-36fb-4c59-baa3-854449e20cbf',)
2025-04-19 10:58:22,076 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,076 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,077 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,077 - sqlalchemy.engine.Engine - INFO - [cached since 0.00967s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 77959), '3d7d7d8a-289c-44e2-8254-eafaa25425c1')
2025-04-19 10:58:22,077 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,077 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,079 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,079 - sqlalchemy.engine.Engine - INFO - [cached since 0.0108s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 79066), 'a7480f9d-36fb-4c59-baa3-854449e20cbf')
2025-04-19 10:58:22,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,087 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,087 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,087 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,088 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,088 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,088 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,088 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,089 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,089 - sqlalchemy.engine.Engine - INFO - [cached since 0.03984s ago] ('0ee6bd2a-8c1d-4503-b3b1-67e0c023d23e', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 58, 22, 87388), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 89399), datetime.datetime(2025, 4, 19, 10, 58, 22, 89399), 0)
2025-04-19 10:58:22,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,090 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,090 - sqlalchemy.engine.Engine - INFO - [cached since 0.04081s ago] ('dcf992c3-205c-41a5-9a86-2134bf68305c', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 58, 22, 88402), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 90399), datetime.datetime(2025, 4, 19, 10, 58, 22, 90399), 0)
2025-04-19 10:58:22,090 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,091 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,091 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,091 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,091 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,092 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,092 - sqlalchemy.engine.Engine - INFO - [cached since 0.04339s ago] ('94ba5768-0d59-413b-9b81-1eb8d6007e7c', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 58, 22, 92396), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 92396), datetime.datetime(2025, 4, 19, 10, 58, 22, 92396), 0)
2025-04-19 10:58:22,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,098 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,098 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,098 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,098 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,098 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,099 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,099 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,099 - sqlalchemy.engine.Engine - INFO - [cached since 0.0506s ago] ('3a799801-3818-48f0-931e-0c0f3d185a09', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 58, 22, 99642), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 99642), datetime.datetime(2025, 4, 19, 10, 58, 22, 99642), 0)
2025-04-19 10:58:22,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,100 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,102 - sqlalchemy.engine.Engine - INFO - [cached since 0.05266s ago] ('2196e344-5c23-4e7c-9550-98f42d0c629d', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 58, 22, 98556), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 100651), datetime.datetime(2025, 4, 19, 10, 58, 22, 100651), 0)
2025-04-19 10:58:22,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,106 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 0ee6bd2a-8c1d-4503-b3b1-67e0c023d23e
2025-04-19 10:58:22,106 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: dcf992c3-205c-41a5-9a86-2134bf68305c
2025-04-19 10:58:22,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,107 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,107 - sqlalchemy.engine.Engine - INFO - [cached since 0.04184s ago] ('0ee6bd2a-8c1d-4503-b3b1-67e0c023d23e',)
2025-04-19 10:58:22,107 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 94ba5768-0d59-413b-9b81-1eb8d6007e7c
2025-04-19 10:58:22,107 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,108 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,108 - sqlalchemy.engine.Engine - INFO - [cached since 0.04281s ago] ('94ba5768-0d59-413b-9b81-1eb8d6007e7c',)
2025-04-19 10:58:22,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,108 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,108 - sqlalchemy.engine.Engine - INFO - [cached since 0.04338s ago] ('dcf992c3-205c-41a5-9a86-2134bf68305c',)
2025-04-19 10:58:22,112 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,112 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,114 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,115 - sqlalchemy.engine.Engine - INFO - [cached since 0.04789s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 114686), '0ee6bd2a-8c1d-4503-b3b1-67e0c023d23e')
2025-04-19 10:58:22,118 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,118 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,118 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,118 - sqlalchemy.engine.Engine - INFO - [cached since 0.05048s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 118137), 'dcf992c3-205c-41a5-9a86-2134bf68305c')
2025-04-19 10:58:22,120 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,120 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,121 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,121 - sqlalchemy.engine.Engine - INFO - [cached since 0.05286s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 121045), '94ba5768-0d59-413b-9b81-1eb8d6007e7c')
2025-04-19 10:58:22,121 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 3a799801-3818-48f0-931e-0c0f3d185a09
2025-04-19 10:58:22,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,122 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2196e344-5c23-4e7c-9550-98f42d0c629d
2025-04-19 10:58:22,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,122 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,122 - sqlalchemy.engine.Engine - INFO - [cached since 0.05729s ago] ('2196e344-5c23-4e7c-9550-98f42d0c629d',)
2025-04-19 10:58:22,123 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,123 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,123 - sqlalchemy.engine.Engine - INFO - [cached since 0.05791s ago] ('3a799801-3818-48f0-931e-0c0f3d185a09',)
2025-04-19 10:58:22,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,124 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,124 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,124 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,124 - sqlalchemy.engine.Engine - INFO - [cached since 0.05703s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 124653), '2196e344-5c23-4e7c-9550-98f42d0c629d')
2025-04-19 10:58:22,125 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,125 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,125 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,127 - sqlalchemy.engine.Engine - INFO - [cached since 0.05974s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 125668), '3a799801-3818-48f0-931e-0c0f3d185a09')
2025-04-19 10:58:22,127 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,128 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,133 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,133 - sqlalchemy.engine.Engine - INFO - [generated in 0.00017s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 10:58:22,133 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 2c356c7a-265f-4a5c-af76-73bcf0a3661a
2025-04-19 10:58:22,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,134 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,134 - services.execution.handlers.foundation - INFO - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 打印: ['2c356c7a-265f-4a5c-af76-73bcf0a3661a']
2025-04-19 10:58:22,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,135 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,135 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('c780c2d1-0b93-44f0-bc79-0ed8b6c73892', 1, '{"success": true, "message": "打印成功", "output": {"message": ["2c356c7a-265f-4a5c-af76-73bcf0a3661a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 58, 22, 135667), datetime.datetime(2025, 4, 19, 10, 58, 22, 135667), 0)
2025-04-19 10:58:22,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,136 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,136 - sqlalchemy.engine.Engine - INFO - [cached since 0.003716s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 10:58:22,136 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,137 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,137 - sqlalchemy.engine.Engine - INFO - [cached since 0.004503s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 10:58:22,137 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0
2025-04-19 10:58:22,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,139 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 730110e1-a1aa-4b19-914f-93539368abf1
2025-04-19 10:58:22,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,139 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,140 - services.execution.handlers.foundation - INFO - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 打印: ['79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0']
2025-04-19 10:58:22,140 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,140 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,140 - sqlalchemy.engine.Engine - INFO - [cached since 0.005479s ago] ('a2e74a7e-5d8a-41e5-bfd1-72de7e26fa1a', 1, '{"success": true, "message": "打印成功", "output": {"message": ["79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 58, 22, 140667), datetime.datetime(2025, 4, 19, 10, 58, 22, 140667), 0)
2025-04-19 10:58:22,141 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,141 - services.execution.handlers.foundation - INFO - 任务 730110e1-a1aa-4b19-914f-93539368abf1 打印: ['730110e1-a1aa-4b19-914f-93539368abf1']
2025-04-19 10:58:22,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,141 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,142 - sqlalchemy.engine.Engine - INFO - [cached since 0.006808s ago] ('f2d2d2db-e4e3-4928-a30c-84c6def674c4', 1, '{"success": true, "message": "打印成功", "output": {"message": ["730110e1-a1aa-4b19-914f-93539368abf1"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 58, 22, 141668), datetime.datetime(2025, 4, 19, 10, 58, 22, 141668), 0)
2025-04-19 10:58:22,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,143 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,143 - sqlalchemy.engine.Engine - INFO - [cached since 0.01044s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 10:58:22,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,143 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,143 - sqlalchemy.engine.Engine - INFO - [cached since 0.01091s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 10:58:22,144 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f
2025-04-19 10:58:22,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,144 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971
2025-04-19 10:58:22,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,145 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,145 - services.execution.handlers.foundation - INFO - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 打印: ['9760da26-b0ca-4baa-8c15-8afe4be7dd2f']
2025-04-19 10:58:22,145 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,145 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,146 - sqlalchemy.engine.Engine - INFO - [cached since 0.08065s ago] ('dcf992c3-205c-41a5-9a86-2134bf68305c',)
2025-04-19 10:58:22,147 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,147 - services.execution.handlers.foundation - INFO - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 打印: ['7b8ccb78-ec9d-4157-a7c2-f1a39c73b971']
2025-04-19 10:58:22,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,147 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,148 - sqlalchemy.engine.Engine - INFO - [cached since 0.01308s ago] ('9bb7b56a-1869-47d6-ab7d-4f6ce9fc1d08', 1, '{"success": true, "message": "打印成功", "output": {"message": ["9760da26-b0ca-4baa-8c15-8afe4be7dd2f"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 58, 22, 147667), datetime.datetime(2025, 4, 19, 10, 58, 22, 147667), 0)
2025-04-19 10:58:22,148 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,149 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,150 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,150 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (datetime.datetime(2025, 4, 19, 10, 58, 22, 149748), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 150666), 'dcf992c3-205c-41a5-9a86-2134bf68305c')
2025-04-19 10:58:22,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,151 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,151 - sqlalchemy.engine.Engine - INFO - [cached since 0.01636s ago] ('8a807d00-b9ac-4173-9610-bcc5db1171f7', 1, '{"success": true, "message": "打印成功", "output": {"message": ["7b8ccb78-ec9d-4157-a7c2-f1a39c73b971"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 58, 22, 151888), datetime.datetime(2025, 4, 19, 10, 58, 22, 151888), 0)
2025-04-19 10:58:22,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,153 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,153 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,153 - sqlalchemy.engine.Engine - INFO - [cached since 0.08789s ago] ('94ba5768-0d59-413b-9b81-1eb8d6007e7c',)
2025-04-19 10:58:22,153 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,154 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,154 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,154 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,154 - sqlalchemy.engine.Engine - INFO - [cached since 0.003991s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 154414), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 154414), '94ba5768-0d59-413b-9b81-1eb8d6007e7c')
2025-04-19 10:58:22,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,155 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,155 - sqlalchemy.engine.Engine - INFO - [cached since 0.09049s ago] ('0ee6bd2a-8c1d-4503-b3b1-67e0c023d23e',)
2025-04-19 10:58:22,156 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,156 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,156 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,157 - sqlalchemy.engine.Engine - INFO - [cached since 0.006409s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 156601), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 156601), '0ee6bd2a-8c1d-4503-b3b1-67e0c023d23e')
2025-04-19 10:58:22,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,160 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,160 - sqlalchemy.engine.Engine - INFO - [cached since 0.09532s ago] ('2196e344-5c23-4e7c-9550-98f42d0c629d',)
2025-04-19 10:58:22,161 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,161 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,161 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,161 - sqlalchemy.engine.Engine - INFO - [cached since 0.01149s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 161888), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 161888), '2196e344-5c23-4e7c-9550-98f42d0c629d')
2025-04-19 10:58:22,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,165 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,166 - sqlalchemy.engine.Engine - INFO - [cached since 0.03071s ago] ('58dedc9b-f229-41a0-927a-c8e7e91fe2af', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["2c356c7a-265f-4a5c-af76-73bcf0a3661a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 58, 22, 165576), datetime.datetime(2025, 4, 19, 10, 58, 22, 165576), 0)
2025-04-19 10:58:22,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,166 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,166 - sqlalchemy.engine.Engine - INFO - [cached since 0.1014s ago] ('3a799801-3818-48f0-931e-0c0f3d185a09',)
2025-04-19 10:58:22,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,167 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,167 - sqlalchemy.engine.Engine - INFO - [cached since 0.03208s ago] ('0298ed8b-dccf-42bb-b424-b133e21dd5b0', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 58, 22, 167781), datetime.datetime(2025, 4, 19, 10, 58, 22, 167781), 0)
2025-04-19 10:58:22,167 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,167 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,168 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,168 - sqlalchemy.engine.Engine - INFO - [cached since 0.01793s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 167781), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 168784), '3a799801-3818-48f0-931e-0c0f3d185a09')
2025-04-19 10:58:22,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,169 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,169 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,169 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,169 - sqlalchemy.engine.Engine - INFO - [cached since 0.03522s ago] ('15262ecc-88f4-4059-a770-9292bc03f881', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["730110e1-a1aa-4b19-914f-93539368abf1"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 58, 22, 169785), datetime.datetime(2025, 4, 19, 10, 58, 22, 169785), 0)
2025-04-19 10:58:22,171 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,173 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,173 - sqlalchemy.engine.Engine - INFO - [cached since 0.03789s ago] ('c13eb4a4-022c-4d0d-8d94-d1d87e100c50', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["9760da26-b0ca-4baa-8c15-8afe4be7dd2f"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 58, 22, 173465), datetime.datetime(2025, 4, 19, 10, 58, 22, 173465), 0)
2025-04-19 10:58:22,174 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,179 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,180 - sqlalchemy.engine.Engine - INFO - [cached since 0.1146s ago] ('bd8999a7-53a9-4111-a67c-81529f9454dc',)
2025-04-19 10:58:22,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,180 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,181 - sqlalchemy.engine.Engine - INFO - [cached since 0.1156s ago] ('9f9a6f9d-2608-48bc-887a-0aa2855ec75a',)
2025-04-19 10:58:22,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,181 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,181 - sqlalchemy.engine.Engine - INFO - [cached since 0.04634s ago] ('10135406-1315-4463-b5a4-9811d1b34554', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["7b8ccb78-ec9d-4157-a7c2-f1a39c73b971"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 58, 22, 181465), datetime.datetime(2025, 4, 19, 10, 58, 22, 181465), 0)
2025-04-19 10:58:22,181 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,182 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,182 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,182 - sqlalchemy.engine.Engine - INFO - [cached since 0.03252s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 182988), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 182988), '9f9a6f9d-2608-48bc-887a-0aa2855ec75a')
2025-04-19 10:58:22,183 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,183 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,183 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,183 - sqlalchemy.engine.Engine - INFO - [cached since 0.03362s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 183994), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 183994), 'bd8999a7-53a9-4111-a67c-81529f9454dc')
2025-04-19 10:58:22,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,185 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,185 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,185 - sqlalchemy.engine.Engine - INFO - [cached since 0.1209s ago] ('3d7d7d8a-289c-44e2-8254-eafaa25425c1',)
2025-04-19 10:58:22,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,186 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,186 - sqlalchemy.engine.Engine - INFO - [cached since 0.1214s ago] ('82541381-936f-487b-87b6-95c43d07d720',)
2025-04-19 10:58:22,186 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,188 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,188 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,188 - sqlalchemy.engine.Engine - INFO - [cached since 0.03714s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 188000), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 188000), '3d7d7d8a-289c-44e2-8254-eafaa25425c1')
2025-04-19 10:58:22,188 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,188 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,188 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,188 - sqlalchemy.engine.Engine - INFO - [cached since 0.03807s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 188993), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 188993), '82541381-936f-487b-87b6-95c43d07d720')
2025-04-19 10:58:22,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,191 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,192 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,192 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (datetime.datetime(2025, 4, 19, 10, 58, 22, 191373), '任务执行成功', 1000, 151, datetime.datetime(2025, 4, 19, 10, 58, 22, 192376), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0')
2025-04-19 10:58:22,192 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,195 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,195 - sqlalchemy.engine.Engine - INFO - [cached since 0.003164s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 194389), '任务执行成功', 1000, 169, datetime.datetime(2025, 4, 19, 10, 58, 22, 195377), '2c356c7a-265f-4a5c-af76-73bcf0a3661a')
2025-04-19 10:58:22,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,195 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,195 - sqlalchemy.engine.Engine - INFO - [cached since 0.1303s ago] ('a7480f9d-36fb-4c59-baa3-854449e20cbf',)
2025-04-19 10:58:22,196 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,196 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,196 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,197 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,197 - sqlalchemy.engine.Engine - INFO - [cached since 0.0463s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 196376), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 197377), 'a7480f9d-36fb-4c59-baa3-854449e20cbf')
2025-04-19 10:58:22,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,200 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,201 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,201 - sqlalchemy.engine.Engine - INFO - [cached since 0.00908s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 200387), '任务执行成功', 1000, 156, datetime.datetime(2025, 4, 19, 10, 58, 22, 201377), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f')
2025-04-19 10:58:22,202 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,202 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,202 - sqlalchemy.engine.Engine - INFO - [cached since 0.01089s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 201377), '任务执行成功', 1000, 161, datetime.datetime(2025, 4, 19, 10, 58, 22, 202378), '730110e1-a1aa-4b19-914f-93539368abf1')
2025-04-19 10:58:22,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 结果: True
2025-04-19 10:58:22,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 10:58:22,206 - services.execution.task_executor - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 设置超时时间: 3600秒
2025-04-19 10:58:22,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 结果: True
2025-04-19 10:58:22,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 10:58:22,207 - services.execution.task_executor - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 设置超时时间: 3600秒
2025-04-19 10:58:22,207 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,207 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,207 - sqlalchemy.engine.Engine - INFO - [cached since 0.1895s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 10:58:22,208 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,208 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,208 - sqlalchemy.engine.Engine - INFO - [cached since 0.19s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 10:58:22,208 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,209 - sqlalchemy.engine.Engine - INFO - [cached since 0.1882s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:22,209 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,210 - sqlalchemy.engine.Engine - INFO - [cached since 0.189s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:22,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,211 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 结果: True
2025-04-19 10:58:22,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 10:58:22,212 - services.execution.task_executor - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 设置超时时间: 3600秒
2025-04-19 10:58:22,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,212 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,213 - sqlalchemy.engine.Engine - INFO - [cached since 0.1839s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 212376), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce')
2025-04-19 10:58:22,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,214 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,214 - sqlalchemy.engine.Engine - INFO - [cached since 0.1963s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 10:58:22,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,215 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,215 - sqlalchemy.engine.Engine - INFO - [cached since 0.1863s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 215468), 'ba19063c-6a94-4204-b181-ae42457f9779')
2025-04-19 10:58:22,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,215 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,216 - sqlalchemy.engine.Engine - INFO - [cached since 0.02406s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 211376), '任务执行成功', 1000, 170, datetime.datetime(2025, 4, 19, 10, 58, 22, 215468), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971')
2025-04-19 10:58:22,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,217 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,217 - sqlalchemy.engine.Engine - INFO - [cached since 0.1967s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:22,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 730110e1-a1aa-4b19-914f-93539368abf1, 结果: True
2025-04-19 10:58:22,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 10:58:22,218 - services.execution.task_executor - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 设置超时时间: 3600秒
2025-04-19 10:58:22,219 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,220 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,220 - sqlalchemy.engine.Engine - INFO - [cached since 0.2023s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 10:58:22,221 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,221 - sqlalchemy.engine.Engine - INFO - [cached since 0.2006s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:22,222 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,222 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,222 - sqlalchemy.engine.Engine - INFO - [cached since 0.1937s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 222376), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-19 10:58:22,223 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,224 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,224 - sqlalchemy.engine.Engine - INFO - [cached since 0.1749s ago] ('1e3ab14f-4f00-4e67-8152-07424710e922', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 58, 22, 223376), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 224377), datetime.datetime(2025, 4, 19, 10, 58, 22, 224377), 0)
2025-04-19 10:58:22,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,225 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,225 - sqlalchemy.engine.Engine - INFO - [cached since 0.1961s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 225376), 'dd48f08e-fa29-4272-84d8-18935eecb64d')
2025-04-19 10:58:22,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,226 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,229 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 结果: True
2025-04-19 10:58:22,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 10:58:22,230 - services.execution.task_executor - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 设置超时时间: 3600秒
2025-04-19 10:58:22,231 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,231 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,231 - sqlalchemy.engine.Engine - INFO - [cached since 0.1822s ago] ('c45f57fa-a9ac-4da9-97f3-c44b432f611d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 58, 22, 229387), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 231376), datetime.datetime(2025, 4, 19, 10, 58, 22, 231376), 0)
2025-04-19 10:58:22,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,232 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,233 - sqlalchemy.engine.Engine - INFO - [cached since 0.2148s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 10:58:22,233 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,234 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,234 - sqlalchemy.engine.Engine - INFO - [cached since 0.2135s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:22,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,235 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,236 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,236 - sqlalchemy.engine.Engine - INFO - [cached since 0.1706s ago] ('1e3ab14f-4f00-4e67-8152-07424710e922',)
2025-04-19 10:58:22,236 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,236 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,236 - sqlalchemy.engine.Engine - INFO - [cached since 0.1874s ago] ('754c8fc9-b3ee-4b31-8740-1cdfa3ad553a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 58, 22, 235472), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 236376), datetime.datetime(2025, 4, 19, 10, 58, 22, 236376), 0)
2025-04-19 10:58:22,237 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,237 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,238 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,238 - sqlalchemy.engine.Engine - INFO - [cached since 0.17s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 237376), '1e3ab14f-4f00-4e67-8152-07424710e922')
2025-04-19 10:58:22,238 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,238 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,238 - sqlalchemy.engine.Engine - INFO - [cached since 0.2096s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 238376), 'eb99d8e7-9568-40dd-866b-f4bd259517a7')
2025-04-19 10:58:22,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,239 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,240 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,240 - sqlalchemy.engine.Engine - INFO - [cached since 0.1909s ago] ('822726d7-df5f-4cfd-a89b-30f54eb758b7', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 58, 22, 239376), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 240376), datetime.datetime(2025, 4, 19, 10, 58, 22, 240376), 0)
2025-04-19 10:58:22,240 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,245 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,245 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,245 - sqlalchemy.engine.Engine - INFO - [cached since 0.1802s ago] ('c45f57fa-a9ac-4da9-97f3-c44b432f611d',)
2025-04-19 10:58:22,246 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,246 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,246 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,247 - sqlalchemy.engine.Engine - INFO - [cached since 0.179s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 246376), 'c45f57fa-a9ac-4da9-97f3-c44b432f611d')
2025-04-19 10:58:22,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,253 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,253 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,253 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,254 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,254 - sqlalchemy.engine.Engine - INFO - [cached since 0.1885s ago] ('754c8fc9-b3ee-4b31-8740-1cdfa3ad553a',)
2025-04-19 10:58:22,254 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,255 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,255 - sqlalchemy.engine.Engine - INFO - [cached since 0.1899s ago] ('822726d7-df5f-4cfd-a89b-30f54eb758b7',)
2025-04-19 10:58:22,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,256 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,256 - sqlalchemy.engine.Engine - INFO - [cached since 0.2067s ago] ('2e900f26-8a6e-4e8c-b034-c85b68fe99ee', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 58, 22, 253376), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 256377), datetime.datetime(2025, 4, 19, 10, 58, 22, 256377), 0)
2025-04-19 10:58:22,256 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,256 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,257 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,257 - sqlalchemy.engine.Engine - INFO - [cached since 0.189s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 256377), '754c8fc9-b3ee-4b31-8740-1cdfa3ad553a')
2025-04-19 10:58:22,257 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,257 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,257 - sqlalchemy.engine.Engine - INFO - [cached since 0.2082s ago] ('f4086084-a3b2-4853-8c36-9db79f358527', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 58, 22, 254376), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 257376), datetime.datetime(2025, 4, 19, 10, 58, 22, 257376), 0)
2025-04-19 10:58:22,258 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,258 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,258 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,259 - sqlalchemy.engine.Engine - INFO - [cached since 0.1908s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 258376), '822726d7-df5f-4cfd-a89b-30f54eb758b7')
2025-04-19 10:58:22,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,260 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,260 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,260 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,261 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,261 - sqlalchemy.engine.Engine - INFO - [cached since 0.212s ago] ('442c7730-26f8-4785-98e7-b734d89e85f4', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 58, 22, 260376), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 261385), datetime.datetime(2025, 4, 19, 10, 58, 22, 261385), 0)
2025-04-19 10:58:22,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,269 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,269 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,269 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,270 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,270 - sqlalchemy.engine.Engine - INFO - [cached since 0.2212s ago] ('18f5b222-fddd-4241-bf3f-51b53d75e872', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 58, 22, 269461), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 270453), datetime.datetime(2025, 4, 19, 10, 58, 22, 270453), 0)
2025-04-19 10:58:22,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,271 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2e900f26-8a6e-4e8c-b034-c85b68fe99ee
2025-04-19 10:58:22,272 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 442c7730-26f8-4785-98e7-b734d89e85f4
2025-04-19 10:58:22,272 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,272 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,272 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,272 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,273 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,273 - sqlalchemy.engine.Engine - INFO - [cached since 0.2077s ago] ('2e900f26-8a6e-4e8c-b034-c85b68fe99ee',)
2025-04-19 10:58:22,273 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,273 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,273 - sqlalchemy.engine.Engine - INFO - [cached since 0.2083s ago] ('f4086084-a3b2-4853-8c36-9db79f358527',)
2025-04-19 10:58:22,274 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,274 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,274 - sqlalchemy.engine.Engine - INFO - [cached since 0.2088s ago] ('442c7730-26f8-4785-98e7-b734d89e85f4',)
2025-04-19 10:58:22,274 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,274 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,274 - sqlalchemy.engine.Engine - INFO - [cached since 0.2256s ago] ('12f64fc6-d3d2-410f-8dd3-3ece3198440e', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 58, 22, 272461), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 274452), datetime.datetime(2025, 4, 19, 10, 58, 22, 274452), 0)
2025-04-19 10:58:22,275 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,275 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,275 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,275 - sqlalchemy.engine.Engine - INFO - [cached since 0.2078s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 275452), '2e900f26-8a6e-4e8c-b034-c85b68fe99ee')
2025-04-19 10:58:22,276 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,276 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,276 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,276 - sqlalchemy.engine.Engine - INFO - [cached since 0.2086s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 276498), 'f4086084-a3b2-4853-8c36-9db79f358527')
2025-04-19 10:58:22,277 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,277 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,277 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,277 - sqlalchemy.engine.Engine - INFO - [cached since 0.2096s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 277456), '442c7730-26f8-4785-98e7-b734d89e85f4')
2025-04-19 10:58:22,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,278 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,279 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,279 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 18f5b222-fddd-4241-bf3f-51b53d75e872
2025-04-19 10:58:22,279 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,280 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,280 - sqlalchemy.engine.Engine - INFO - [cached since 0.2148s ago] ('18f5b222-fddd-4241-bf3f-51b53d75e872',)
2025-04-19 10:58:22,280 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,280 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,281 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,281 - sqlalchemy.engine.Engine - INFO - [cached since 0.2134s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 281545), '18f5b222-fddd-4241-bf3f-51b53d75e872')
2025-04-19 10:58:22,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,286 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 12f64fc6-d3d2-410f-8dd3-3ece3198440e
2025-04-19 10:58:22,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,287 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,287 - sqlalchemy.engine.Engine - INFO - [cached since 0.2216s ago] ('12f64fc6-d3d2-410f-8dd3-3ece3198440e',)
2025-04-19 10:58:22,288 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,288 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,288 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,288 - sqlalchemy.engine.Engine - INFO - [cached since 0.2201s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 288051), '12f64fc6-d3d2-410f-8dd3-3ece3198440e')
2025-04-19 10:58:22,289 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,292 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,292 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,292 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,293 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,293 - sqlalchemy.engine.Engine - INFO - [cached since 0.1598s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 10:58:22,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,294 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,294 - sqlalchemy.engine.Engine - INFO - [cached since 0.2445s ago] ('97d2efc0-ce96-4a5f-8fb5-97d518751dcb', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 58, 22, 292050), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 294051), datetime.datetime(2025, 4, 19, 10, 58, 22, 294051), 0)
2025-04-19 10:58:22,294 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,294 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,294 - sqlalchemy.engine.Engine - INFO - [cached since 0.1613s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 10:58:22,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,295 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,295 - sqlalchemy.engine.Engine - INFO - [cached since 0.1617s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 10:58:22,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,295 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ba19063c-6a94-4204-b181-ae42457f9779
2025-04-19 10:58:22,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,296 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80
2025-04-19 10:58:22,296 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,296 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: aaeb5784-4124-49b3-9c2b-4c69d5085dce
2025-04-19 10:58:22,296 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,297 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,297 - services.execution.handlers.foundation - INFO - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 打印: ['bdbb2c58-e8f5-4916-8457-d80bbf4c8a80']
2025-04-19 10:58:22,297 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,297 - services.execution.handlers.foundation - INFO - 任务 ba19063c-6a94-4204-b181-ae42457f9779 打印: ['ba19063c-6a94-4204-b181-ae42457f9779']
2025-04-19 10:58:22,298 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,298 - services.execution.handlers.foundation - INFO - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 打印: ['aaeb5784-4124-49b3-9c2b-4c69d5085dce']
2025-04-19 10:58:22,298 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,298 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,298 - sqlalchemy.engine.Engine - INFO - [cached since 0.163s ago] ('47da487e-15ca-44fb-a6cd-caa66ce81369', 1, '{"success": true, "message": "打印成功", "output": {"message": ["bdbb2c58-e8f5-4916-8457-d80bbf4c8a80"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 58, 22, 298051), datetime.datetime(2025, 4, 19, 10, 58, 22, 298051), 0)
2025-04-19 10:58:22,299 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,299 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,300 - sqlalchemy.engine.Engine - INFO - [cached since 0.1643s ago] ('5086ac05-e79b-4fb0-8f3c-c10d46bd2c45', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ba19063c-6a94-4204-b181-ae42457f9779"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 58, 22, 299050), datetime.datetime(2025, 4, 19, 10, 58, 22, 299050), 0)
2025-04-19 10:58:22,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,301 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,301 - sqlalchemy.engine.Engine - INFO - [cached since 0.1654s ago] ('d828c465-3fce-4143-b35b-01a439c383e8', 1, '{"success": true, "message": "打印成功", "output": {"message": ["aaeb5784-4124-49b3-9c2b-4c69d5085dce"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 58, 22, 301056), datetime.datetime(2025, 4, 19, 10, 58, 22, 301056), 0)
2025-04-19 10:58:22,301 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,301 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,302 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,302 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,302 - sqlalchemy.engine.Engine - INFO - [cached since 0.169s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 10:58:22,302 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: dd48f08e-fa29-4272-84d8-18935eecb64d
2025-04-19 10:58:22,303 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,303 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,303 - services.execution.handlers.foundation - INFO - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 打印: ['dd48f08e-fa29-4272-84d8-18935eecb64d']
2025-04-19 10:58:22,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,304 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,304 - sqlalchemy.engine.Engine - INFO - [cached since 0.1686s ago] ('9784fa79-05c5-4c6b-a13f-2d4f3b4b8bb6', 1, '{"success": true, "message": "打印成功", "output": {"message": ["dd48f08e-fa29-4272-84d8-18935eecb64d"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 58, 22, 304051), datetime.datetime(2025, 4, 19, 10, 58, 22, 304051), 0)
2025-04-19 10:58:22,304 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 97d2efc0-ce96-4a5f-8fb5-97d518751dcb
2025-04-19 10:58:22,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,305 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,305 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,305 - sqlalchemy.engine.Engine - INFO - [cached since 0.2397s ago] ('97d2efc0-ce96-4a5f-8fb5-97d518751dcb',)
2025-04-19 10:58:22,306 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,306 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,306 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,306 - sqlalchemy.engine.Engine - INFO - [cached since 0.2384s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 306051), '97d2efc0-ce96-4a5f-8fb5-97d518751dcb')
2025-04-19 10:58:22,307 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,310 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,310 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,311 - sqlalchemy.engine.Engine - INFO - [cached since 0.2451s ago] ('18f5b222-fddd-4241-bf3f-51b53d75e872',)
2025-04-19 10:58:22,312 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,312 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,312 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,312 - sqlalchemy.engine.Engine - INFO - [cached since 0.1612s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 312064), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 312064), '18f5b222-fddd-4241-bf3f-51b53d75e872')
2025-04-19 10:58:22,312 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,312 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,312 - sqlalchemy.engine.Engine - INFO - [cached since 0.247s ago] ('2e900f26-8a6e-4e8c-b034-c85b68fe99ee',)
2025-04-19 10:58:22,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,314 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,314 - sqlalchemy.engine.Engine - INFO - [cached since 0.2485s ago] ('442c7730-26f8-4785-98e7-b734d89e85f4',)
2025-04-19 10:58:22,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,315 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,315 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,315 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,315 - sqlalchemy.engine.Engine - INFO - [cached since 0.1645s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 315051), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 315051), '2e900f26-8a6e-4e8c-b034-c85b68fe99ee')
2025-04-19 10:58:22,316 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,316 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,316 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,317 - sqlalchemy.engine.Engine - INFO - [cached since 0.1658s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 316050), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 316050), '442c7730-26f8-4785-98e7-b734d89e85f4')
2025-04-19 10:58:22,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,317 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,318 - sqlalchemy.engine.Engine - INFO - [cached since 0.1844s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 10:58:22,318 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,318 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,319 - sqlalchemy.engine.Engine - INFO - [cached since 0.2532s ago] ('12f64fc6-d3d2-410f-8dd3-3ece3198440e',)
2025-04-19 10:58:22,319 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: eb99d8e7-9568-40dd-866b-f4bd259517a7
2025-04-19 10:58:22,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,320 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,320 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,320 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,320 - sqlalchemy.engine.Engine - INFO - [cached since 0.1698s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 320051), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 320051), '12f64fc6-d3d2-410f-8dd3-3ece3198440e')
2025-04-19 10:58:22,321 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,321 - services.execution.handlers.foundation - INFO - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 打印: ['eb99d8e7-9568-40dd-866b-f4bd259517a7']
2025-04-19 10:58:22,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,322 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,322 - sqlalchemy.engine.Engine - INFO - [cached since 0.1863s ago] ('fdfdae50-9d98-4973-8c04-2cd51acb60d1', 1, '{"success": true, "message": "打印成功", "output": {"message": ["eb99d8e7-9568-40dd-866b-f4bd259517a7"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 58, 22, 322050), datetime.datetime(2025, 4, 19, 10, 58, 22, 322050), 0)
2025-04-19 10:58:22,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,323 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,323 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,323 - sqlalchemy.engine.Engine - INFO - [cached since 0.1879s ago] ('f142d468-2b26-4b0f-84e7-f07c9fb23b60', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["bdbb2c58-e8f5-4916-8457-d80bbf4c8a80"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 58, 22, 323050), datetime.datetime(2025, 4, 19, 10, 58, 22, 323050), 0)
2025-04-19 10:58:22,324 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,326 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,326 - sqlalchemy.engine.Engine - INFO - [cached since 0.1908s ago] ('de09f3fb-c003-4f63-a0ba-a26925bcbdb3', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["aaeb5784-4124-49b3-9c2b-4c69d5085dce"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 58, 22, 326051), datetime.datetime(2025, 4, 19, 10, 58, 22, 326051), 0)
2025-04-19 10:58:22,327 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,332 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,332 - sqlalchemy.engine.Engine - INFO - [cached since 0.1963s ago] ('bac1dab7-604c-428d-91a5-462bca5f4f1b', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ba19063c-6a94-4204-b181-ae42457f9779"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 58, 22, 332051), datetime.datetime(2025, 4, 19, 10, 58, 22, 332051), 0)
2025-04-19 10:58:22,333 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,334 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,334 - sqlalchemy.engine.Engine - INFO - [cached since 0.1987s ago] ('67b10a1b-d634-4032-93c6-5d9a5b5c8a7a', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["dd48f08e-fa29-4272-84d8-18935eecb64d"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 58, 22, 334049), datetime.datetime(2025, 4, 19, 10, 58, 22, 334049), 0)
2025-04-19 10:58:22,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,335 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,335 - sqlalchemy.engine.Engine - INFO - [cached since 0.2694s ago] ('97d2efc0-ce96-4a5f-8fb5-97d518751dcb',)
2025-04-19 10:58:22,335 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,336 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,336 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,336 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,336 - sqlalchemy.engine.Engine - INFO - [cached since 0.1853s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 336050), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 336050), '97d2efc0-ce96-4a5f-8fb5-97d518751dcb')
2025-04-19 10:58:22,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,337 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,337 - sqlalchemy.engine.Engine - INFO - [cached since 0.2715s ago] ('754c8fc9-b3ee-4b31-8740-1cdfa3ad553a',)
2025-04-19 10:58:22,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,338 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,338 - sqlalchemy.engine.Engine - INFO - [cached since 0.2725s ago] ('1e3ab14f-4f00-4e67-8152-07424710e922',)
2025-04-19 10:58:22,338 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,339 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,339 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,339 - sqlalchemy.engine.Engine - INFO - [cached since 0.1882s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 339050), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 339050), '754c8fc9-b3ee-4b31-8740-1cdfa3ad553a')
2025-04-19 10:58:22,339 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,340 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,340 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,340 - sqlalchemy.engine.Engine - INFO - [cached since 0.1896s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 340051), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 340051), '1e3ab14f-4f00-4e67-8152-07424710e922')
2025-04-19 10:58:22,341 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,341 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,342 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,343 - sqlalchemy.engine.Engine - INFO - [cached since 0.2779s ago] ('c45f57fa-a9ac-4da9-97f3-c44b432f611d',)
2025-04-19 10:58:22,344 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,344 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,344 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,345 - sqlalchemy.engine.Engine - INFO - [cached since 0.1939s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 344050), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 344050), 'c45f57fa-a9ac-4da9-97f3-c44b432f611d')
2025-04-19 10:58:22,345 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,349 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,349 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,349 - sqlalchemy.engine.Engine - INFO - [cached since 0.2836s ago] ('822726d7-df5f-4cfd-a89b-30f54eb758b7',)
2025-04-19 10:58:22,350 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,350 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,350 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,350 - sqlalchemy.engine.Engine - INFO - [cached since 0.1997s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 350051), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 350051), '822726d7-df5f-4cfd-a89b-30f54eb758b7')
2025-04-19 10:58:22,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,352 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,352 - sqlalchemy.engine.Engine - INFO - [cached since 0.2166s ago] ('c2e464fc-ae3f-47d2-ae2c-273f88aa2c3f', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["eb99d8e7-9568-40dd-866b-f4bd259517a7"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 58, 22, 352051), datetime.datetime(2025, 4, 19, 10, 58, 22, 352051), 0)
2025-04-19 10:58:22,352 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,353 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,356 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,356 - sqlalchemy.engine.Engine - INFO - [cached since 0.1638s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 354059), '任务执行成功', 1000, 132, datetime.datetime(2025, 4, 19, 10, 58, 22, 356050), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-19 10:58:22,356 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,356 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,357 - sqlalchemy.engine.Engine - INFO - [cached since 0.1646s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 355051), '任务执行成功', 1000, 142, datetime.datetime(2025, 4, 19, 10, 58, 22, 356050), 'ba19063c-6a94-4204-b181-ae42457f9779')
2025-04-19 10:58:22,357 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,357 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,357 - sqlalchemy.engine.Engine - INFO - [cached since 0.1653s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 355051), '任务执行成功', 1000, 143, datetime.datetime(2025, 4, 19, 10, 58, 22, 357050), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce')
2025-04-19 10:58:22,358 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,358 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,358 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,363 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,363 - sqlalchemy.engine.Engine - INFO - [cached since 0.171s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 362059), '任务执行成功', 1000, 137, datetime.datetime(2025, 4, 19, 10, 58, 22, 363051), 'dd48f08e-fa29-4272-84d8-18935eecb64d')
2025-04-19 10:58:22,363 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: ba19063c-6a94-4204-b181-ae42457f9779, 结果: True
2025-04-19 10:58:22,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 10:58:22,369 - services.execution.task_executor - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 设置超时时间: 3600秒
2025-04-19 10:58:22,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 结果: True
2025-04-19 10:58:22,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 10:58:22,369 - services.execution.task_executor - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 设置超时时间: 3600秒
2025-04-19 10:58:22,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 结果: True
2025-04-19 10:58:22,370 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,370 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,371 - sqlalchemy.engine.Engine - INFO - [cached since 0.3532s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 10:58:22,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,372 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,372 - sqlalchemy.engine.Engine - INFO - [cached since 0.3068s ago] ('f4086084-a3b2-4853-8c36-9db79f358527',)
2025-04-19 10:58:22,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,372 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,372 - sqlalchemy.engine.Engine - INFO - [cached since 0.3547s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 10:58:22,373 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,373 - sqlalchemy.engine.Engine - INFO - [cached since 0.3529s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:58:22,374 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,374 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,374 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,374 - sqlalchemy.engine.Engine - INFO - [cached since 0.2239s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 374591), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 374591), 'f4086084-a3b2-4853-8c36-9db79f358527')
2025-04-19 10:58:22,375 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,376 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:58:22,376 - sqlalchemy.engine.Engine - INFO - [cached since 0.3563s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 10:58:22,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 结果: True
2025-04-19 10:58:22,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,379 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,379 - sqlalchemy.engine.Engine - INFO - [cached since 0.351s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 379673), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')
2025-04-19 10:58:22,380 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,381 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,381 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,381 - sqlalchemy.engine.Engine - INFO - [cached since 0.3526s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 58, 22, 381667), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6')
2025-04-19 10:58:22,381 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,384 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,385 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,385 - sqlalchemy.engine.Engine - INFO - [cached since 0.1929s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 384322), '任务执行成功', 1000, 146, datetime.datetime(2025, 4, 19, 10, 58, 22, 385212), 'eb99d8e7-9568-40dd-866b-f4bd259517a7')
2025-04-19 10:58:22,385 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,389 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,390 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,390 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,390 - sqlalchemy.engine.Engine - INFO - [cached since 0.3409s ago] ('426665ea-5634-4a9b-a75d-acb45154f057', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 58, 22, 389229), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 390213), datetime.datetime(2025, 4, 19, 10, 58, 22, 390213), 0)
2025-04-19 10:58:22,391 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,394 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:58:22,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 结果: True
2025-04-19 10:58:22,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,395 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,395 - sqlalchemy.engine.Engine - INFO - [cached since 0.3459s ago] ('e00a2008-f404-4f67-b458-0b30910568c6', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 58, 22, 394451), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 395455), datetime.datetime(2025, 4, 19, 10, 58, 22, 395455), 0)
2025-04-19 10:58:22,395 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,399 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,399 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,400 - sqlalchemy.engine.Engine - INFO - [cached since 0.3345s ago] ('426665ea-5634-4a9b-a75d-acb45154f057',)
2025-04-19 10:58:22,400 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,400 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,401 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,401 - sqlalchemy.engine.Engine - INFO - [cached since 0.3335s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 401571), '426665ea-5634-4a9b-a75d-acb45154f057')
2025-04-19 10:58:22,402 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,407 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,408 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,408 - sqlalchemy.engine.Engine - INFO - [cached since 0.3433s ago] ('e00a2008-f404-4f67-b458-0b30910568c6',)
2025-04-19 10:58:22,408 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,409 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,409 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,409 - sqlalchemy.engine.Engine - INFO - [cached since 0.3422s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 409929), 'e00a2008-f404-4f67-b458-0b30910568c6')
2025-04-19 10:58:22,410 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,411 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,412 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,412 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,414 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,414 - sqlalchemy.engine.Engine - INFO - [cached since 0.3646s ago] ('297e9f90-7e46-406e-8b8f-676173168378', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 58, 22, 412921), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 414000), datetime.datetime(2025, 4, 19, 10, 58, 22, 414000), 0)
2025-04-19 10:58:22,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,418 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:58:22,418 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:58:22,418 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:58:22,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,419 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:58:22,419 - sqlalchemy.engine.Engine - INFO - [cached since 0.37s ago] ('90d3bc65-dd91-4d31-af17-3d42109b7c72', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 58, 22, 419071), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 58, 22, 419071), datetime.datetime(2025, 4, 19, 10, 58, 22, 419071), 0)
2025-04-19 10:58:22,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,422 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 297e9f90-7e46-406e-8b8f-676173168378
2025-04-19 10:58:22,422 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,423 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,423 - sqlalchemy.engine.Engine - INFO - [cached since 0.3582s ago] ('297e9f90-7e46-406e-8b8f-676173168378',)
2025-04-19 10:58:22,423 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,424 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,424 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,424 - sqlalchemy.engine.Engine - INFO - [cached since 0.3568s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 424977), '297e9f90-7e46-406e-8b8f-676173168378')
2025-04-19 10:58:22,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,426 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 90d3bc65-dd91-4d31-af17-3d42109b7c72
2025-04-19 10:58:22,427 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,427 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,427 - sqlalchemy.engine.Engine - INFO - [cached since 0.3623s ago] ('90d3bc65-dd91-4d31-af17-3d42109b7c72',)
2025-04-19 10:58:22,427 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,428 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,428 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,428 - sqlalchemy.engine.Engine - INFO - [cached since 0.3612s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 58, 22, 428993), '90d3bc65-dd91-4d31-af17-3d42109b7c72')
2025-04-19 10:58:22,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,433 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,433 - sqlalchemy.engine.Engine - INFO - [cached since 0.3s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 10:58:22,434 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ff8fbdc2-670a-443f-81f5-d0790d7dc2af
2025-04-19 10:58:22,434 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,435 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,435 - services.execution.handlers.foundation - INFO - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 打印: ['ff8fbdc2-670a-443f-81f5-d0790d7dc2af']
2025-04-19 10:58:22,435 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,435 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,435 - sqlalchemy.engine.Engine - INFO - [cached since 0.3004s ago] ('d50527d7-340c-4715-a8dd-9d30d400b6aa', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ff8fbdc2-670a-443f-81f5-d0790d7dc2af"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 58, 22, 435031), datetime.datetime(2025, 4, 19, 10, 58, 22, 435031), 0)
2025-04-19 10:58:22,436 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,438 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,438 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:58:22,438 - sqlalchemy.engine.Engine - INFO - [cached since 0.3056s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 10:58:22,439 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6
2025-04-19 10:58:22,439 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,439 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:58:22,439 - services.execution.handlers.foundation - INFO - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 打印: ['f8e0d6d2-7851-48af-8a61-2129bbc6d7c6']
2025-04-19 10:58:22,440 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,440 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,440 - sqlalchemy.engine.Engine - INFO - [cached since 0.3051s ago] ('7abe97e1-9a9a-4bd4-ba2b-d4bbf3b46654', 1, '{"success": true, "message": "打印成功", "output": {"message": ["f8e0d6d2-7851-48af-8a61-2129bbc6d7c6"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 58, 22, 440387), datetime.datetime(2025, 4, 19, 10, 58, 22, 440387), 0)
2025-04-19 10:58:22,440 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,443 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,444 - sqlalchemy.engine.Engine - INFO - [cached since 0.3787s ago] ('297e9f90-7e46-406e-8b8f-676173168378',)
2025-04-19 10:58:22,444 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,444 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,445 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,445 - sqlalchemy.engine.Engine - INFO - [cached since 0.2948s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 444688), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 445687), '297e9f90-7e46-406e-8b8f-676173168378')
2025-04-19 10:58:22,445 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,448 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,448 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,448 - sqlalchemy.engine.Engine - INFO - [cached since 0.3835s ago] ('90d3bc65-dd91-4d31-af17-3d42109b7c72',)
2025-04-19 10:58:22,449 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:58:22,449 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,449 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,449 - sqlalchemy.engine.Engine - INFO - [cached since 0.2994s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 449828), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 449828), '90d3bc65-dd91-4d31-af17-3d42109b7c72')
2025-04-19 10:58:22,450 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,455 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,455 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,455 - sqlalchemy.engine.Engine - INFO - [cached since 0.3208s ago] ('f453d3c6-00d9-41ee-b5a0-9710295e44cb', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ff8fbdc2-670a-443f-81f5-d0790d7dc2af"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 58, 22, 455828), datetime.datetime(2025, 4, 19, 10, 58, 22, 455828), 0)
2025-04-19 10:58:22,456 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,461 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,461 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:58:22,461 - sqlalchemy.engine.Engine - INFO - [cached since 0.3268s ago] ('c108487c-3919-4c75-881f-169d66c9aedf', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["f8e0d6d2-7851-48af-8a61-2129bbc6d7c6"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 58, 22, 461830), datetime.datetime(2025, 4, 19, 10, 58, 22, 461830), 0)
2025-04-19 10:58:22,462 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,465 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,465 - sqlalchemy.engine.Engine - INFO - [cached since 0.4003s ago] ('426665ea-5634-4a9b-a75d-acb45154f057',)
2025-04-19 10:58:22,465 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,467 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,467 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,467 - sqlalchemy.engine.Engine - INFO - [cached since 0.3164s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 467163), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 467163), '426665ea-5634-4a9b-a75d-acb45154f057')
2025-04-19 10:58:22,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,468 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,469 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,469 - sqlalchemy.engine.Engine - INFO - [cached since 0.4043s ago] ('e00a2008-f404-4f67-b458-0b30910568c6',)
2025-04-19 10:58:22,470 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:58:22,470 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:58:22,470 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:58:22,470 - sqlalchemy.engine.Engine - INFO - [cached since 0.3203s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 470938), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 58, 22, 470938), 'e00a2008-f404-4f67-b458-0b30910568c6')
2025-04-19 10:58:22,470 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,474 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,474 - sqlalchemy.engine.Engine - INFO - [cached since 0.2829s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 473783), '任务执行成功', 1000, 94, datetime.datetime(2025, 4, 19, 10, 58, 22, 474782), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')
2025-04-19 10:58:22,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,479 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:58:22,479 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:58:22,479 - sqlalchemy.engine.Engine - INFO - [cached since 0.288s ago] (datetime.datetime(2025, 4, 19, 10, 58, 22, 478790), '任务执行成功', 1000, 98, datetime.datetime(2025, 4, 19, 10, 58, 22, 479784), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6')
2025-04-19 10:58:22,480 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:58:22,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 结果: True
2025-04-19 10:58:22,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 结果: True
2025-04-19 10:59:00,053 - root - INFO - 应用程序关闭中...
2025-04-19 10:59:00,054 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 10:59:00,054 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 10:59:00,054 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 10:59:00,055 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 10:59:00,055 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 10:59:00,055 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 10:59:00,055 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 10:59:00,056 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 10:59:00,056 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 10:59:00,056 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 10:59:00,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 10:59:00,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 10:59:00,057 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 10:59:00,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 10:59:00,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 10:59:00,057 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 10:59:00,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 10:59:00,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 10:59:00,058 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 10:59:00,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 10:59:00,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 10:59:00,058 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 10:59:00,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 10:59:00,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 10:59:00,058 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 10:59:00,058 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 10:59:00,058 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 10:59:00,058 - root - INFO - 增强版任务调度器已停止
2025-04-19 10:59:00,058 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 10:59:00,059 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 10:59:00,059 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 10:59:00,059 - data.session - INFO - 数据库连接已关闭
2025-04-19 10:59:01,597 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:59:01,597 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:59:02,327 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 10:59:02,327 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 10:59:02,383 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 10:59:02,432 - data.session - INFO - 正在初始化数据库...
2025-04-19 10:59:02,457 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 10:59:02,483 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:59:02,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,485 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:59:02,485 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,485 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:59:02,486 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,487 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 10:59:02,487 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,488 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 10:59:02,488 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,489 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 10:59:02,489 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,490 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 10:59:02,490 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,491 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 10:59:02,491 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,492 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 10:59:02,492 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,493 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 10:59:02,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,494 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 10:59:02,494 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,495 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 10:59:02,495 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,496 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 10:59:02,496 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,497 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 10:59:02,497 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 10:59:02,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,499 - data.session - INFO - 数据库表初始化完成
2025-04-19 10:59:02,864 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 10:59:02,865 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 10:59:02,865 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 10:59:02,865 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 10:59:02,865 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 10:59:02,866 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 10:59:02,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 10:59:02,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 10:59:02,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 10:59:02,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 10:59:02,867 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 10:59:02,867 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 10:59:02,867 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 10:59:02,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 10:59:02,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 10:59:02,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 10:59:02,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 10:59:02,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 10:59:02,869 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 10:59:02,869 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 10:59:02,870 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:59:02,870 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 10:59:02,871 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:59:02,871 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 10:59:02,871 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:59:02,872 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 10:59:02,872 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 10:59:02,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,881 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 10:59:02,881 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (1, 1)
2025-04-19 10:59:02,882 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 10:59:02,882 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,884 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 10:59:02,884 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 10:59:02,884 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 10:59:02,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,886 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 10:59:02,886 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1000, 2000, 2001)
2025-04-19 10:59:02,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,887 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:59:02,888 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,888 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 10:59:02,889 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (1001, datetime.datetime(2025, 4, 19, 9, 59, 2, 884211))
2025-04-19 10:59:02,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,890 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载 12 个任务
2025-04-19 10:59:02,890 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 10:59:02,890 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a (优先级 1) 添加到队列 0
2025-04-19 10:59:02,890 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 10:59:02,890 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 (优先级 1) 添加到队列 0
2025-04-19 10:59:02,890 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 10:59:02,890 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 (优先级 1) 添加到队列 0
2025-04-19 10:59:02,890 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 10:59:02,892 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 (优先级 1) 添加到队列 0
2025-04-19 10:59:02,892 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 10:59:02,892 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f (优先级 1) 添加到队列 0
2025-04-19 10:59:02,892 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 10:59:02,892 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce (优先级 1) 添加到队列 0
2025-04-19 10:59:02,892 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 10:59:02,892 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 (优先级 1) 添加到队列 0
2025-04-19 10:59:02,892 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 10:59:02,892 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 (优先级 1) 添加到队列 0
2025-04-19 10:59:02,892 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 10:59:02,892 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d (优先级 1) 添加到队列 0
2025-04-19 10:59:02,892 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 10:59:02,893 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 (优先级 1) 添加到队列 0
2025-04-19 10:59:02,893 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 10:59:02,895 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 (优先级 1) 添加到队列 0
2025-04-19 10:59:02,895 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 10:59:02,895 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af (优先级 1) 添加到队列 0
2025-04-19 10:59:02,895 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 10:59:02,895 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 12 个未完成的任务
2025-04-19 10:59:02,895 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 10:59:02,895 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 10:59:02,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 10:59:02,966 - services.execution.task_executor - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 设置超时时间: 3600秒
2025-04-19 10:59:02,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 10:59:02,966 - services.execution.task_executor - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 设置超时时间: 3600秒
2025-04-19 10:59:02,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 10:59:02,967 - services.execution.task_executor - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 设置超时时间: 3600秒
2025-04-19 10:59:02,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 10:59:02,967 - services.execution.task_executor - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 设置超时时间: 3600秒
2025-04-19 10:59:02,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 10:59:02,968 - services.execution.task_executor - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 设置超时时间: 3600秒
2025-04-19 10:59:02,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,970 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,970 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 10:59:02,970 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,970 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,970 - sqlalchemy.engine.Engine - INFO - [cached since 0.0007583s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 10:59:02,971 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:02,971 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:59:02,972 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:02,972 - sqlalchemy.engine.Engine - INFO - [cached since 0.00115s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:59:02,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,973 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:59:02,973 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:59:02,975 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 10:59:02,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,976 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,979 - sqlalchemy.engine.Engine - INFO - [generated in 0.00299s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 2, 976519), '730110e1-a1aa-4b19-914f-93539368abf1')
2025-04-19 10:59:02,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,979 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,979 - sqlalchemy.engine.Engine - INFO - [cached since 0.009979s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 10:59:02,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,979 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,979 - sqlalchemy.engine.Engine - INFO - [cached since 0.004231s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 2, 979528), '2c356c7a-265f-4a5c-af76-73bcf0a3661a')
2025-04-19 10:59:02,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,980 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,980 - sqlalchemy.engine.Engine - INFO - [cached since 0.01124s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 10:59:02,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,984 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:02,984 - sqlalchemy.engine.Engine - INFO - [cached since 0.01355s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 10:59:02,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,985 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,985 - sqlalchemy.engine.Engine - INFO - [cached since 0.01604s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 10:59:02,986 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,986 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,986 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:02,986 - sqlalchemy.engine.Engine - INFO - [cached since 0.01578s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:59:02,988 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:02,988 - sqlalchemy.engine.Engine - INFO - [cached since 0.01654s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 10:59:02,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,989 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,989 - sqlalchemy.engine.Engine - INFO - [cached since 0.01421s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 2, 989824), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0')
2025-04-19 10:59:02,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,991 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,991 - sqlalchemy.engine.Engine - INFO - [cached since 0.01513s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 2, 991314), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f')
2025-04-19 10:59:02,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,991 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:02,991 - sqlalchemy.engine.Engine - INFO - [cached since 0.01601s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 2, 991314), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971')
2025-04-19 10:59:02,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:02,996 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:02,997 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:02,999 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:02,999 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('140ea634-5e8a-4a12-9798-714767f34ae3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 59, 2, 997051), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 2, 999447), datetime.datetime(2025, 4, 19, 10, 59, 2, 999447), 0)
2025-04-19 10:59:02,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,001 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,001 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,002 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,002 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,003 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,003 - sqlalchemy.engine.Engine - INFO - [cached since 0.005073s ago] ('24cd3e3a-e2ee-49b0-933a-2ad8acd6738f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 59, 3, 1311), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 3744), datetime.datetime(2025, 4, 19, 10, 59, 3, 3744), 0)
2025-04-19 10:59:03,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,004 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,004 - sqlalchemy.engine.Engine - INFO - [cached since 0.005763s ago] ('69c24d4e-a830-4990-b287-ed2b42da38f7', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 59, 3, 2740), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 4745), datetime.datetime(2025, 4, 19, 10, 59, 3, 4745), 0)
2025-04-19 10:59:03,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,005 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,005 - sqlalchemy.engine.Engine - INFO - [cached since 0.006571s ago] ('cf5f5f6c-89be-4a2d-a4c3-0bbaf4656272', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 59, 3, 2740), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 5776), datetime.datetime(2025, 4, 19, 10, 59, 3, 5776), 0)
2025-04-19 10:59:03,005 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,005 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,005 - sqlalchemy.engine.Engine - INFO - [cached since 0.007365s ago] ('94ea6b06-7eed-4012-a91c-04868f4dc716', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 59, 3, 3744), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 5776), datetime.datetime(2025, 4, 19, 10, 59, 3, 5776), 0)
2025-04-19 10:59:03,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,008 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,008 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] ('140ea634-5e8a-4a12-9798-714767f34ae3',)
2025-04-19 10:59:03,011 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,011 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,013 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,013 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 13070), '140ea634-5e8a-4a12-9798-714767f34ae3')
2025-04-19 10:59:03,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,016 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,016 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,016 - sqlalchemy.engine.Engine - INFO - [cached since 0.007844s ago] ('69c24d4e-a830-4990-b287-ed2b42da38f7',)
2025-04-19 10:59:03,017 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,017 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,017 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,017 - sqlalchemy.engine.Engine - INFO - [cached since 0.004757s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 17745), '69c24d4e-a830-4990-b287-ed2b42da38f7')
2025-04-19 10:59:03,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,021 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,021 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,021 - sqlalchemy.engine.Engine - INFO - [cached since 0.01313s ago] ('24cd3e3a-e2ee-49b0-933a-2ad8acd6738f',)
2025-04-19 10:59:03,021 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,022 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,022 - sqlalchemy.engine.Engine - INFO - [cached since 0.01372s ago] ('cf5f5f6c-89be-4a2d-a4c3-0bbaf4656272',)
2025-04-19 10:59:03,022 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,022 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,022 - sqlalchemy.engine.Engine - INFO - [cached since 0.01419s ago] ('94ea6b06-7eed-4012-a91c-04868f4dc716',)
2025-04-19 10:59:03,023 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,023 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,023 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,023 - sqlalchemy.engine.Engine - INFO - [cached since 0.01098s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 23968), '24cd3e3a-e2ee-49b0-933a-2ad8acd6738f')
2025-04-19 10:59:03,025 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,025 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,025 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,025 - sqlalchemy.engine.Engine - INFO - [cached since 0.01207s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 25157), 'cf5f5f6c-89be-4a2d-a4c3-0bbaf4656272')
2025-04-19 10:59:03,025 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,025 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,025 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,026 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,026 - sqlalchemy.engine.Engine - INFO - [cached since 0.01338s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 26643), '94ea6b06-7eed-4012-a91c-04868f4dc716')
2025-04-19 10:59:03,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,029 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,030 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,030 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,032 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,033 - sqlalchemy.engine.Engine - INFO - [cached since 0.03499s ago] ('10ccf429-155d-4dd6-b370-09a52f139357', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 59, 3, 31656), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 32649), datetime.datetime(2025, 4, 19, 10, 59, 3, 32649), 0)
2025-04-19 10:59:03,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,037 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,037 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,037 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,038 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,038 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,038 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,038 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,038 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,038 - sqlalchemy.engine.Engine - INFO - [cached since 0.0402s ago] ('e44faa38-1bed-4088-9d54-1f1e32ab6c3b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 59, 3, 37088), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 38481), datetime.datetime(2025, 4, 19, 10, 59, 3, 38481), 0)
2025-04-19 10:59:03,039 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,039 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,039 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,040 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,040 - sqlalchemy.engine.Engine - INFO - [cached since 0.04188s ago] ('8597a375-c333-45a1-ba6a-7325fa4a9742', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 59, 3, 39898), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 40904), datetime.datetime(2025, 4, 19, 10, 59, 3, 40904), 0)
2025-04-19 10:59:03,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,040 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,040 - sqlalchemy.engine.Engine - INFO - [cached since 0.04262s ago] ('2d16da2a-3fa9-4c96-a92a-989349c4e660', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 59, 3, 38481), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 40904), datetime.datetime(2025, 4, 19, 10, 59, 3, 40904), 0)
2025-04-19 10:59:03,042 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,042 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,042 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,042 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,042 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,046 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,046 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,046 - sqlalchemy.engine.Engine - INFO - [cached since 0.04803s ago] ('24cfe1e5-cd50-43ab-bac7-54bf34244e90', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 59, 3, 45566), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 46566), datetime.datetime(2025, 4, 19, 10, 59, 3, 46566), 0)
2025-04-19 10:59:03,047 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,052 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 10ccf429-155d-4dd6-b370-09a52f139357
2025-04-19 10:59:03,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,052 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,052 - sqlalchemy.engine.Engine - INFO - [cached since 0.04366s ago] ('10ccf429-155d-4dd6-b370-09a52f139357',)
2025-04-19 10:59:03,053 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,053 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,053 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,053 - sqlalchemy.engine.Engine - INFO - [cached since 0.0404s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 53099), '10ccf429-155d-4dd6-b370-09a52f139357')
2025-04-19 10:59:03,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,059 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e44faa38-1bed-4088-9d54-1f1e32ab6c3b
2025-04-19 10:59:03,059 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2d16da2a-3fa9-4c96-a92a-989349c4e660
2025-04-19 10:59:03,059 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 24cfe1e5-cd50-43ab-bac7-54bf34244e90
2025-04-19 10:59:03,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,060 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,060 - sqlalchemy.engine.Engine - INFO - [cached since 0.05115s ago] ('e44faa38-1bed-4088-9d54-1f1e32ab6c3b',)
2025-04-19 10:59:03,060 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 8597a375-c333-45a1-ba6a-7325fa4a9742
2025-04-19 10:59:03,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,061 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,061 - sqlalchemy.engine.Engine - INFO - [cached since 0.05201s ago] ('2d16da2a-3fa9-4c96-a92a-989349c4e660',)
2025-04-19 10:59:03,061 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,062 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,062 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,063 - sqlalchemy.engine.Engine - INFO - [cached since 0.04984s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 62239), 'e44faa38-1bed-4088-9d54-1f1e32ab6c3b')
2025-04-19 10:59:03,063 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,063 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,063 - sqlalchemy.engine.Engine - INFO - [cached since 0.0547s ago] ('8597a375-c333-45a1-ba6a-7325fa4a9742',)
2025-04-19 10:59:03,063 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,064 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,064 - sqlalchemy.engine.Engine - INFO - [cached since 0.05527s ago] ('24cfe1e5-cd50-43ab-bac7-54bf34244e90',)
2025-04-19 10:59:03,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,065 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,067 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,067 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,067 - sqlalchemy.engine.Engine - INFO - [cached since 0.0542s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 67417), '8597a375-c333-45a1-ba6a-7325fa4a9742')
2025-04-19 10:59:03,067 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,067 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,067 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,067 - sqlalchemy.engine.Engine - INFO - [cached since 0.05509s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 67417), '2d16da2a-3fa9-4c96-a92a-989349c4e660')
2025-04-19 10:59:03,068 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,068 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,068 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,068 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,068 - sqlalchemy.engine.Engine - INFO - [cached since 0.05628s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 68890), '24cfe1e5-cd50-43ab-bac7-54bf34244e90')
2025-04-19 10:59:03,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,072 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,072 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,072 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 10:59:03,072 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 730110e1-a1aa-4b19-914f-93539368abf1
2025-04-19 10:59:03,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,073 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,073 - services.execution.handlers.foundation - INFO - 任务 730110e1-a1aa-4b19-914f-93539368abf1 打印: ['730110e1-a1aa-4b19-914f-93539368abf1']
2025-04-19 10:59:03,073 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,075 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,075 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('9a78148b-b932-470a-afba-17e82b187537', 1, '{"success": true, "message": "打印成功", "output": {"message": ["730110e1-a1aa-4b19-914f-93539368abf1"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 59, 3, 73607), datetime.datetime(2025, 4, 19, 10, 59, 3, 73607), 0)
2025-04-19 10:59:03,075 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,076 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,076 - sqlalchemy.engine.Engine - INFO - [cached since 0.003859s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 10:59:03,077 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f
2025-04-19 10:59:03,077 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,077 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,077 - services.execution.handlers.foundation - INFO - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 打印: ['9760da26-b0ca-4baa-8c15-8afe4be7dd2f']
2025-04-19 10:59:03,078 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,079 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,079 - sqlalchemy.engine.Engine - INFO - [cached since 0.004935s ago] ('58d49916-768c-45e0-b81e-4adf14aeb089', 1, '{"success": true, "message": "打印成功", "output": {"message": ["9760da26-b0ca-4baa-8c15-8afe4be7dd2f"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 59, 3, 79481), datetime.datetime(2025, 4, 19, 10, 59, 3, 79481), 0)
2025-04-19 10:59:03,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,082 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,082 - sqlalchemy.engine.Engine - INFO - [cached since 0.01101s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 10:59:03,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,084 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,085 - sqlalchemy.engine.Engine - INFO - [cached since 0.01266s ago] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 10:59:03,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,085 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,085 - sqlalchemy.engine.Engine - INFO - [cached since 0.01315s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 10:59:03,085 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0
2025-04-19 10:59:03,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,086 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 2c356c7a-265f-4a5c-af76-73bcf0a3661a
2025-04-19 10:59:03,086 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,086 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971
2025-04-19 10:59:03,086 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,086 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,087 - services.execution.handlers.foundation - INFO - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 打印: ['79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0']
2025-04-19 10:59:03,087 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,087 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,087 - sqlalchemy.engine.Engine - INFO - [cached since 0.01364s ago] ('6524a90d-28d8-4513-8fb0-42f46f6610b6', 1, '{"success": true, "message": "打印成功", "output": {"message": ["79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 59, 3, 87549), datetime.datetime(2025, 4, 19, 10, 59, 3, 87549), 0)
2025-04-19 10:59:03,087 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,087 - services.execution.handlers.foundation - INFO - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 打印: ['2c356c7a-265f-4a5c-af76-73bcf0a3661a']
2025-04-19 10:59:03,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,089 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,089 - services.execution.handlers.foundation - INFO - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 打印: ['7b8ccb78-ec9d-4157-a7c2-f1a39c73b971']
2025-04-19 10:59:03,090 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,090 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,090 - sqlalchemy.engine.Engine - INFO - [cached since 0.01555s ago] ('b90c7bd6-b130-4dd9-a769-bda1cc762a8b', 1, '{"success": true, "message": "打印成功", "output": {"message": ["2c356c7a-265f-4a5c-af76-73bcf0a3661a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 59, 3, 90057), datetime.datetime(2025, 4, 19, 10, 59, 3, 90057), 0)
2025-04-19 10:59:03,090 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,091 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,091 - sqlalchemy.engine.Engine - INFO - [cached since 0.01642s ago] ('ff3443d6-722f-4fa6-b9a8-b0bcb10b2b7f', 1, '{"success": true, "message": "打印成功", "output": {"message": ["7b8ccb78-ec9d-4157-a7c2-f1a39c73b971"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 59, 3, 91057), datetime.datetime(2025, 4, 19, 10, 59, 3, 91057), 0)
2025-04-19 10:59:03,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,091 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,091 - sqlalchemy.engine.Engine - INFO - [cached since 0.08252s ago] ('10ccf429-155d-4dd6-b370-09a52f139357',)
2025-04-19 10:59:03,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,092 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,092 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,093 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,093 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (datetime.datetime(2025, 4, 19, 10, 59, 3, 92056), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 93057), '10ccf429-155d-4dd6-b370-09a52f139357')
2025-04-19 10:59:03,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,094 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,095 - sqlalchemy.engine.Engine - INFO - [cached since 0.08582s ago] ('e44faa38-1bed-4088-9d54-1f1e32ab6c3b',)
2025-04-19 10:59:03,095 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,095 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,096 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,096 - sqlalchemy.engine.Engine - INFO - [cached since 0.003163s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 96057), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 96057), 'e44faa38-1bed-4088-9d54-1f1e32ab6c3b')
2025-04-19 10:59:03,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,103 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,103 - sqlalchemy.engine.Engine - INFO - [cached since 0.0947s ago] ('8597a375-c333-45a1-ba6a-7325fa4a9742',)
2025-04-19 10:59:03,103 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,103 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,105 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,105 - sqlalchemy.engine.Engine - INFO - [cached since 0.01193s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 103989), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 105024), '8597a375-c333-45a1-ba6a-7325fa4a9742')
2025-04-19 10:59:03,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,113 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,115 - sqlalchemy.engine.Engine - INFO - [cached since 0.04011s ago] ('b336de92-cfb6-4ecb-8dc4-d217eee8e4d3', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["730110e1-a1aa-4b19-914f-93539368abf1"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 10, 59, 3, 113987), datetime.datetime(2025, 4, 19, 10, 59, 3, 113987), 0)
2025-04-19 10:59:03,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,115 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,115 - sqlalchemy.engine.Engine - INFO - [cached since 0.1063s ago] ('2d16da2a-3fa9-4c96-a92a-989349c4e660',)
2025-04-19 10:59:03,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,115 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,115 - sqlalchemy.engine.Engine - INFO - [cached since 0.04128s ago] ('d10aff16-e944-4ce9-b4c8-70bd16614c95', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["9760da26-b0ca-4baa-8c15-8afe4be7dd2f"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 10, 59, 3, 115986), datetime.datetime(2025, 4, 19, 10, 59, 3, 115986), 0)
2025-04-19 10:59:03,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,116 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,116 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,116 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,116 - sqlalchemy.engine.Engine - INFO - [cached since 0.02454s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 116987), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 116987), '2d16da2a-3fa9-4c96-a92a-989349c4e660')
2025-04-19 10:59:03,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,117 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,117 - sqlalchemy.engine.Engine - INFO - [cached since 0.1092s ago] ('24cfe1e5-cd50-43ab-bac7-54bf34244e90',)
2025-04-19 10:59:03,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,118 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,118 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,118 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,118 - sqlalchemy.engine.Engine - INFO - [cached since 0.02659s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 118986), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 118986), '24cfe1e5-cd50-43ab-bac7-54bf34244e90')
2025-04-19 10:59:03,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,119 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,119 - sqlalchemy.engine.Engine - INFO - [cached since 0.04598s ago] ('2d8bd5dc-5f7e-41c8-8f63-407e2c89026c', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 10, 59, 3, 119987), datetime.datetime(2025, 4, 19, 10, 59, 3, 119987), 0)
2025-04-19 10:59:03,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,132 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,132 - sqlalchemy.engine.Engine - INFO - [cached since 0.1236s ago] ('140ea634-5e8a-4a12-9798-714767f34ae3',)
2025-04-19 10:59:03,133 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,133 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,133 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,133 - sqlalchemy.engine.Engine - INFO - [cached since 0.0409s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 133288), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 133288), '140ea634-5e8a-4a12-9798-714767f34ae3')
2025-04-19 10:59:03,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,137 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,137 - sqlalchemy.engine.Engine - INFO - [cached since 0.1291s ago] ('69c24d4e-a830-4990-b287-ed2b42da38f7',)
2025-04-19 10:59:03,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,138 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,138 - sqlalchemy.engine.Engine - INFO - [cached since 0.1296s ago] ('24cd3e3a-e2ee-49b0-933a-2ad8acd6738f',)
2025-04-19 10:59:03,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,138 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,138 - sqlalchemy.engine.Engine - INFO - [cached since 0.06465s ago] ('87c8efb3-3e62-4dcb-866c-3d112a8fd51e', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["2c356c7a-265f-4a5c-af76-73bcf0a3661a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 10, 59, 3, 138643), datetime.datetime(2025, 4, 19, 10, 59, 3, 138643), 0)
2025-04-19 10:59:03,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,139 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,139 - sqlalchemy.engine.Engine - INFO - [cached since 0.06547s ago] ('2041f8ff-2a95-4ec4-b1c0-969710662ace', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["7b8ccb78-ec9d-4157-a7c2-f1a39c73b971"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 10, 59, 3, 139647), datetime.datetime(2025, 4, 19, 10, 59, 3, 139647), 0)
2025-04-19 10:59:03,140 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,140 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,140 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,140 - sqlalchemy.engine.Engine - INFO - [cached since 0.04829s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 140642), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 140642), '69c24d4e-a830-4990-b287-ed2b42da38f7')
2025-04-19 10:59:03,141 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,141 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,141 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,141 - sqlalchemy.engine.Engine - INFO - [cached since 0.04914s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 141642), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 141642), '24cd3e3a-e2ee-49b0-933a-2ad8acd6738f')
2025-04-19 10:59:03,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,151 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,152 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,152 - sqlalchemy.engine.Engine - INFO - [cached since 0.1439s ago] ('cf5f5f6c-89be-4a2d-a4c3-0bbaf4656272',)
2025-04-19 10:59:03,153 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,153 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,153 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,154 - sqlalchemy.engine.Engine - INFO - [cached since 0.0616s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 153796), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 153796), 'cf5f5f6c-89be-4a2d-a4c3-0bbaf4656272')
2025-04-19 10:59:03,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,156 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,156 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] (datetime.datetime(2025, 4, 19, 10, 59, 3, 154795), '任务执行成功', 1000, 164, datetime.datetime(2025, 4, 19, 10, 59, 3, 156798), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f')
2025-04-19 10:59:03,157 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,157 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,157 - sqlalchemy.engine.Engine - INFO - [cached since 0.001329s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 154795), '任务执行成功', 1000, 165, datetime.datetime(2025, 4, 19, 10, 59, 3, 157269), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0')
2025-04-19 10:59:03,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,158 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,158 - sqlalchemy.engine.Engine - INFO - [cached since 0.1496s ago] ('94ea6b06-7eed-4012-a91c-04868f4dc716',)
2025-04-19 10:59:03,159 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,159 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,159 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,159 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,160 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,160 - sqlalchemy.engine.Engine - INFO - [cached since 0.06728s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 160282), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 160282), '94ea6b06-7eed-4012-a91c-04868f4dc716')
2025-04-19 10:59:03,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,161 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,161 - sqlalchemy.engine.Engine - INFO - [cached since 0.005029s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 160282), '任务执行成功', 1000, 185, datetime.datetime(2025, 4, 19, 10, 59, 3, 161275), '730110e1-a1aa-4b19-914f-93539368abf1')
2025-04-19 10:59:03,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,171 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,171 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,171 - sqlalchemy.engine.Engine - INFO - [cached since 0.01542s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 170403), '任务执行成功', 1000, 195, datetime.datetime(2025, 4, 19, 10, 59, 3, 171489), '2c356c7a-265f-4a5c-af76-73bcf0a3661a')
2025-04-19 10:59:03,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 结果: True
2025-04-19 10:59:03,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 10:59:03,177 - services.execution.task_executor - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 设置超时时间: 3600秒
2025-04-19 10:59:03,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 730110e1-a1aa-4b19-914f-93539368abf1, 结果: True
2025-04-19 10:59:03,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 10:59:03,177 - services.execution.task_executor - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 设置超时时间: 3600秒
2025-04-19 10:59:03,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 结果: True
2025-04-19 10:59:03,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 10:59:03,178 - services.execution.task_executor - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 设置超时时间: 3600秒
2025-04-19 10:59:03,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,178 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,178 - sqlalchemy.engine.Engine - INFO - [cached since 0.2091s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 10:59:03,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,179 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,179 - sqlalchemy.engine.Engine - INFO - [cached since 0.2101s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 10:59:03,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,180 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,180 - sqlalchemy.engine.Engine - INFO - [cached since 0.2108s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 10:59:03,181 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:03,181 - sqlalchemy.engine.Engine - INFO - [cached since 0.2098s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:59:03,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,181 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,181 - sqlalchemy.engine.Engine - INFO - [cached since 0.0256s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 179399), '任务执行成功', 1000, 189, datetime.datetime(2025, 4, 19, 10, 59, 3, 181399), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971')
2025-04-19 10:59:03,182 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:03,182 - sqlalchemy.engine.Engine - INFO - [cached since 0.2113s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:59:03,183 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,184 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:03,184 - sqlalchemy.engine.Engine - INFO - [cached since 0.2127s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:59:03,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 结果: True
2025-04-19 10:59:03,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 10:59:03,186 - services.execution.task_executor - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 设置超时时间: 3600秒
2025-04-19 10:59:03,187 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,187 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,187 - sqlalchemy.engine.Engine - INFO - [cached since 0.2117s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 3, 187399), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce')
2025-04-19 10:59:03,187 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,187 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,188 - sqlalchemy.engine.Engine - INFO - [cached since 0.2187s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 10:59:03,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,188 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,188 - sqlalchemy.engine.Engine - INFO - [cached since 0.2129s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 3, 188902), 'ba19063c-6a94-4204-b181-ae42457f9779')
2025-04-19 10:59:03,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,189 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,189 - sqlalchemy.engine.Engine - INFO - [cached since 0.2135s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 3, 188902), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-19 10:59:03,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,190 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,190 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,191 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:03,191 - sqlalchemy.engine.Engine - INFO - [cached since 0.2201s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:59:03,191 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,192 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,192 - sqlalchemy.engine.Engine - INFO - [cached since 0.2173s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 3, 192909), 'dd48f08e-fa29-4272-84d8-18935eecb64d')
2025-04-19 10:59:03,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 结果: True
2025-04-19 10:59:03,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 10:59:03,199 - services.execution.task_executor - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 设置超时时间: 3600秒
2025-04-19 10:59:03,199 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,200 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.2303s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 10:59:03,201 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:03,201 - sqlalchemy.engine.Engine - INFO - [cached since 0.2296s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:59:03,202 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,202 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,203 - sqlalchemy.engine.Engine - INFO - [cached since 0.2267s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 3, 202102), 'eb99d8e7-9568-40dd-866b-f4bd259517a7')
2025-04-19 10:59:03,203 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,206 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,206 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,207 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,207 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,207 - sqlalchemy.engine.Engine - INFO - [cached since 0.2085s ago] ('fd76cf9c-b8cb-401f-b7e9-e9322eb893ba', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 59, 3, 206112), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 207102), datetime.datetime(2025, 4, 19, 10, 59, 3, 207102), 0)
2025-04-19 10:59:03,208 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,208 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,208 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,208 - sqlalchemy.engine.Engine - INFO - [cached since 0.2096s ago] ('c5343e93-ea26-4c66-8d10-7ba6c81aa3a7', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 59, 3, 207102), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 208101), datetime.datetime(2025, 4, 19, 10, 59, 3, 208101), 0)
2025-04-19 10:59:03,209 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,209 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,209 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,209 - sqlalchemy.engine.Engine - INFO - [cached since 0.2104s ago] ('df5491a8-04d0-476e-a3db-f68b81a359d0', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 59, 3, 208101), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 209102), datetime.datetime(2025, 4, 19, 10, 59, 3, 209102), 0)
2025-04-19 10:59:03,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,212 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,213 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,214 - sqlalchemy.engine.Engine - INFO - [cached since 0.2147s ago] ('bea42e39-068f-4146-903c-0614cac3995c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 59, 3, 212106), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 213202), datetime.datetime(2025, 4, 19, 10, 59, 3, 213202), 0)
2025-04-19 10:59:03,214 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,216 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,216 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,217 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,217 - sqlalchemy.engine.Engine - INFO - [cached since 0.2179s ago] ('b4339700-cf6f-4c57-acf6-331972c30da3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 59, 3, 216101), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 217102), datetime.datetime(2025, 4, 19, 10, 59, 3, 217102), 0)
2025-04-19 10:59:03,217 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,231 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,231 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,231 - sqlalchemy.engine.Engine - INFO - [cached since 0.2229s ago] ('fd76cf9c-b8cb-401f-b7e9-e9322eb893ba',)
2025-04-19 10:59:03,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,232 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,232 - sqlalchemy.engine.Engine - INFO - [cached since 0.2238s ago] ('c5343e93-ea26-4c66-8d10-7ba6c81aa3a7',)
2025-04-19 10:59:03,233 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,233 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,233 - sqlalchemy.engine.Engine - INFO - [cached since 0.2244s ago] ('df5491a8-04d0-476e-a3db-f68b81a359d0',)
2025-04-19 10:59:03,234 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,234 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,234 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,234 - sqlalchemy.engine.Engine - INFO - [cached since 0.2212s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 234394), 'c5343e93-ea26-4c66-8d10-7ba6c81aa3a7')
2025-04-19 10:59:03,234 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,235 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,235 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,235 - sqlalchemy.engine.Engine - INFO - [cached since 0.2222s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 235380), 'fd76cf9c-b8cb-401f-b7e9-e9322eb893ba')
2025-04-19 10:59:03,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,236 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,236 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,236 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,236 - sqlalchemy.engine.Engine - INFO - [cached since 0.2233s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 236380), 'df5491a8-04d0-476e-a3db-f68b81a359d0')
2025-04-19 10:59:03,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,237 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,240 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,240 - sqlalchemy.engine.Engine - INFO - [cached since 0.2317s ago] ('bea42e39-068f-4146-903c-0614cac3995c',)
2025-04-19 10:59:03,241 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,241 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,241 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,241 - sqlalchemy.engine.Engine - INFO - [cached since 0.2287s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 241380), 'bea42e39-068f-4146-903c-0614cac3995c')
2025-04-19 10:59:03,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,242 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,242 - sqlalchemy.engine.Engine - INFO - [cached since 0.2335s ago] ('b4339700-cf6f-4c57-acf6-331972c30da3',)
2025-04-19 10:59:03,242 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,243 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,243 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,243 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,243 - sqlalchemy.engine.Engine - INFO - [cached since 0.2306s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 243380), 'b4339700-cf6f-4c57-acf6-331972c30da3')
2025-04-19 10:59:03,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,245 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,245 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,245 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,245 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,245 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,246 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,246 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,246 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,246 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,247 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,247 - sqlalchemy.engine.Engine - INFO - [cached since 0.2487s ago] ('e44b73b5-d013-483a-b0c4-32e9e513c48a', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 59, 3, 245380), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 247380), datetime.datetime(2025, 4, 19, 10, 59, 3, 247380), 0)
2025-04-19 10:59:03,248 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,248 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,248 - sqlalchemy.engine.Engine - INFO - [cached since 0.2495s ago] ('6d533bca-844b-4a83-96c7-c9b54eb9d0a1', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 59, 3, 246379), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 248386), datetime.datetime(2025, 4, 19, 10, 59, 3, 248386), 0)
2025-04-19 10:59:03,248 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,249 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,249 - sqlalchemy.engine.Engine - INFO - [cached since 0.2504s ago] ('df073c32-551a-46ea-b49e-70cdbdae2f14', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 59, 3, 246379), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 249380), datetime.datetime(2025, 4, 19, 10, 59, 3, 249380), 0)
2025-04-19 10:59:03,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,250 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,250 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,250 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,251 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,251 - sqlalchemy.engine.Engine - INFO - [cached since 0.2531s ago] ('890e4619-8547-4266-949f-f4353fdfb2fe', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 59, 3, 250789), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 251794), datetime.datetime(2025, 4, 19, 10, 59, 3, 251794), 0)
2025-04-19 10:59:03,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,252 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,252 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,252 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,253 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,253 - sqlalchemy.engine.Engine - INFO - [cached since 0.2551s ago] ('8bd67de9-f8e7-4e63-b5e5-4b8bcac40fa0', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 59, 3, 252793), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 253793), datetime.datetime(2025, 4, 19, 10, 59, 3, 253793), 0)
2025-04-19 10:59:03,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,256 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e44b73b5-d013-483a-b0c4-32e9e513c48a
2025-04-19 10:59:03,257 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 6d533bca-844b-4a83-96c7-c9b54eb9d0a1
2025-04-19 10:59:03,257 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,257 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,257 - sqlalchemy.engine.Engine - INFO - [cached since 0.249s ago] ('e44b73b5-d013-483a-b0c4-32e9e513c48a',)
2025-04-19 10:59:03,257 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: df073c32-551a-46ea-b49e-70cdbdae2f14
2025-04-19 10:59:03,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,258 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,258 - sqlalchemy.engine.Engine - INFO - [cached since 0.2501s ago] ('6d533bca-844b-4a83-96c7-c9b54eb9d0a1',)
2025-04-19 10:59:03,259 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,259 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,259 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,259 - sqlalchemy.engine.Engine - INFO - [cached since 0.2468s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 259926), 'e44b73b5-d013-483a-b0c4-32e9e513c48a')
2025-04-19 10:59:03,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,259 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,260 - sqlalchemy.engine.Engine - INFO - [cached since 0.2517s ago] ('df073c32-551a-46ea-b49e-70cdbdae2f14',)
2025-04-19 10:59:03,260 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,260 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,261 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,261 - sqlalchemy.engine.Engine - INFO - [cached since 0.2486s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 261930), '6d533bca-844b-4a83-96c7-c9b54eb9d0a1')
2025-04-19 10:59:03,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,262 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,262 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,262 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,262 - sqlalchemy.engine.Engine - INFO - [cached since 0.2501s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 262931), 'df073c32-551a-46ea-b49e-70cdbdae2f14')
2025-04-19 10:59:03,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,265 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 890e4619-8547-4266-949f-f4353fdfb2fe
2025-04-19 10:59:03,266 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 8bd67de9-f8e7-4e63-b5e5-4b8bcac40fa0
2025-04-19 10:59:03,266 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,266 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,266 - sqlalchemy.engine.Engine - INFO - [cached since 0.2584s ago] ('890e4619-8547-4266-949f-f4353fdfb2fe',)
2025-04-19 10:59:03,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,268 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,268 - sqlalchemy.engine.Engine - INFO - [cached since 0.2593s ago] ('8bd67de9-f8e7-4e63-b5e5-4b8bcac40fa0',)
2025-04-19 10:59:03,269 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,269 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,269 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,269 - sqlalchemy.engine.Engine - INFO - [cached since 0.2565s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 269137), '890e4619-8547-4266-949f-f4353fdfb2fe')
2025-04-19 10:59:03,271 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,271 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,271 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,271 - sqlalchemy.engine.Engine - INFO - [cached since 0.258s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 271150), '8bd67de9-f8e7-4e63-b5e5-4b8bcac40fa0')
2025-04-19 10:59:03,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,272 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,272 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,272 - sqlalchemy.engine.Engine - INFO - [cached since 0.2s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 10:59:03,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,273 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ba19063c-6a94-4204-b181-ae42457f9779
2025-04-19 10:59:03,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,273 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,273 - services.execution.handlers.foundation - INFO - 任务 ba19063c-6a94-4204-b181-ae42457f9779 打印: ['ba19063c-6a94-4204-b181-ae42457f9779']
2025-04-19 10:59:03,274 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,274 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,274 - sqlalchemy.engine.Engine - INFO - [cached since 0.1996s ago] ('a1f0b1f9-4f29-408b-a897-043c81887192', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ba19063c-6a94-4204-b181-ae42457f9779"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 59, 3, 274162), datetime.datetime(2025, 4, 19, 10, 59, 3, 274162), 0)
2025-04-19 10:59:03,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,275 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,275 - sqlalchemy.engine.Engine - INFO - [cached since 0.203s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 10:59:03,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,276 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,276 - sqlalchemy.engine.Engine - INFO - [cached since 0.2036s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 10:59:03,276 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80
2025-04-19 10:59:03,276 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,276 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: aaeb5784-4124-49b3-9c2b-4c69d5085dce
2025-04-19 10:59:03,276 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,277 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,277 - services.execution.handlers.foundation - INFO - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 打印: ['bdbb2c58-e8f5-4916-8457-d80bbf4c8a80']
2025-04-19 10:59:03,277 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,277 - services.execution.handlers.foundation - INFO - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 打印: ['aaeb5784-4124-49b3-9c2b-4c69d5085dce']
2025-04-19 10:59:03,278 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,278 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,278 - sqlalchemy.engine.Engine - INFO - [cached since 0.2038s ago] ('91b744b6-3a8c-464c-a74a-2b2846c95a4d', 1, '{"success": true, "message": "打印成功", "output": {"message": ["bdbb2c58-e8f5-4916-8457-d80bbf4c8a80"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 59, 3, 278163), datetime.datetime(2025, 4, 19, 10, 59, 3, 278163), 0)
2025-04-19 10:59:03,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,279 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,279 - sqlalchemy.engine.Engine - INFO - [cached since 0.2049s ago] ('c2607196-7e59-4c6f-8c50-27004f9ba2c1', 1, '{"success": true, "message": "打印成功", "output": {"message": ["aaeb5784-4124-49b3-9c2b-4c69d5085dce"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 59, 3, 279219), datetime.datetime(2025, 4, 19, 10, 59, 3, 279219), 0)
2025-04-19 10:59:03,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,282 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,282 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,282 - sqlalchemy.engine.Engine - INFO - [cached since 0.2102s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 10:59:03,283 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: dd48f08e-fa29-4272-84d8-18935eecb64d
2025-04-19 10:59:03,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,283 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,283 - services.execution.handlers.foundation - INFO - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 打印: ['dd48f08e-fa29-4272-84d8-18935eecb64d']
2025-04-19 10:59:03,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,284 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,285 - sqlalchemy.engine.Engine - INFO - [cached since 0.2103s ago] ('b44d8c7e-725c-4da8-8d5d-1e0eea20b4e9', 1, '{"success": true, "message": "打印成功", "output": {"message": ["dd48f08e-fa29-4272-84d8-18935eecb64d"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 59, 3, 284154), datetime.datetime(2025, 4, 19, 10, 59, 3, 284154), 0)
2025-04-19 10:59:03,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,286 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,286 - sqlalchemy.engine.Engine - INFO - [cached since 0.2776s ago] ('e44b73b5-d013-483a-b0c4-32e9e513c48a',)
2025-04-19 10:59:03,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,287 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,287 - sqlalchemy.engine.Engine - INFO - [cached since 0.2148s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 10:59:03,287 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,287 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,288 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,288 - sqlalchemy.engine.Engine - INFO - [cached since 0.1951s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 288166), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 288166), 'e44b73b5-d013-483a-b0c4-32e9e513c48a')
2025-04-19 10:59:03,288 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: eb99d8e7-9568-40dd-866b-f4bd259517a7
2025-04-19 10:59:03,288 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,289 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,289 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,289 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,289 - sqlalchemy.engine.Engine - INFO - [cached since 0.2807s ago] ('6d533bca-844b-4a83-96c7-c9b54eb9d0a1',)
2025-04-19 10:59:03,289 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,289 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,289 - sqlalchemy.engine.Engine - INFO - [cached since 0.2813s ago] ('df073c32-551a-46ea-b49e-70cdbdae2f14',)
2025-04-19 10:59:03,290 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,290 - services.execution.handlers.foundation - INFO - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 打印: ['eb99d8e7-9568-40dd-866b-f4bd259517a7']
2025-04-19 10:59:03,290 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,291 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,291 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,291 - sqlalchemy.engine.Engine - INFO - [cached since 0.1988s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 291702), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 291702), '6d533bca-844b-4a83-96c7-c9b54eb9d0a1')
2025-04-19 10:59:03,291 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,291 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,292 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,292 - sqlalchemy.engine.Engine - INFO - [cached since 0.1997s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 291702), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 292702), 'df073c32-551a-46ea-b49e-70cdbdae2f14')
2025-04-19 10:59:03,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,293 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,293 - sqlalchemy.engine.Engine - INFO - [cached since 0.2189s ago] ('125b1bef-095b-4622-b20a-e1f9239d690f', 1, '{"success": true, "message": "打印成功", "output": {"message": ["eb99d8e7-9568-40dd-866b-f4bd259517a7"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 59, 3, 292702), datetime.datetime(2025, 4, 19, 10, 59, 3, 292702), 0)
2025-04-19 10:59:03,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,294 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,295 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,295 - sqlalchemy.engine.Engine - INFO - [cached since 0.2867s ago] ('890e4619-8547-4266-949f-f4353fdfb2fe',)
2025-04-19 10:59:03,296 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,296 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,296 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,296 - sqlalchemy.engine.Engine - INFO - [cached since 0.2041s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 296704), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 296704), '890e4619-8547-4266-949f-f4353fdfb2fe')
2025-04-19 10:59:03,297 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,300 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,300 - sqlalchemy.engine.Engine - INFO - [cached since 0.2261s ago] ('d62483b0-2fb3-4c69-a4fa-11a799f4f2cf', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ba19063c-6a94-4204-b181-ae42457f9779"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 10, 59, 3, 300709), datetime.datetime(2025, 4, 19, 10, 59, 3, 300709), 0)
2025-04-19 10:59:03,300 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,306 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,306 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,306 - sqlalchemy.engine.Engine - INFO - [cached since 0.2326s ago] ('256ce752-d8da-4251-beb1-f8e6b5ff25b2', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["aaeb5784-4124-49b3-9c2b-4c69d5085dce"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 10, 59, 3, 306797), datetime.datetime(2025, 4, 19, 10, 59, 3, 306797), 0)
2025-04-19 10:59:03,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,307 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,307 - sqlalchemy.engine.Engine - INFO - [cached since 0.2332s ago] ('b7d679a1-ffc1-4c4f-a028-740882090f41', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["bdbb2c58-e8f5-4916-8457-d80bbf4c8a80"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 10, 59, 3, 307725), datetime.datetime(2025, 4, 19, 10, 59, 3, 307725), 0)
2025-04-19 10:59:03,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,307 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,308 - sqlalchemy.engine.Engine - INFO - [cached since 0.2993s ago] ('8bd67de9-f8e7-4e63-b5e5-4b8bcac40fa0',)
2025-04-19 10:59:03,308 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,308 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,308 - sqlalchemy.engine.Engine - INFO - [cached since 0.2343s ago] ('6315f064-1daf-41ed-a6a8-d71edc9f575f', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["dd48f08e-fa29-4272-84d8-18935eecb64d"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 10, 59, 3, 308725), datetime.datetime(2025, 4, 19, 10, 59, 3, 308725), 0)
2025-04-19 10:59:03,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,312 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,312 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,312 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,312 - sqlalchemy.engine.Engine - INFO - [cached since 0.2202s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 312725), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 312725), '8bd67de9-f8e7-4e63-b5e5-4b8bcac40fa0')
2025-04-19 10:59:03,313 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,313 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,313 - sqlalchemy.engine.Engine - INFO - [cached since 0.3052s ago] ('c5343e93-ea26-4c66-8d10-7ba6c81aa3a7',)
2025-04-19 10:59:03,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,314 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,314 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,315 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,315 - sqlalchemy.engine.Engine - INFO - [cached since 0.2226s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 314725), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 315725), 'c5343e93-ea26-4c66-8d10-7ba6c81aa3a7')
2025-04-19 10:59:03,315 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,316 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,316 - sqlalchemy.engine.Engine - INFO - [cached since 0.3078s ago] ('df5491a8-04d0-476e-a3db-f68b81a359d0',)
2025-04-19 10:59:03,317 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,318 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,318 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,318 - sqlalchemy.engine.Engine - INFO - [cached since 0.2263s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 318807), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 318807), 'df5491a8-04d0-476e-a3db-f68b81a359d0')
2025-04-19 10:59:03,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,321 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,321 - sqlalchemy.engine.Engine - INFO - [cached since 0.3132s ago] ('fd76cf9c-b8cb-401f-b7e9-e9322eb893ba',)
2025-04-19 10:59:03,322 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,322 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,322 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,323 - sqlalchemy.engine.Engine - INFO - [cached since 0.2305s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 322725), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 322725), 'fd76cf9c-b8cb-401f-b7e9-e9322eb893ba')
2025-04-19 10:59:03,323 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,329 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,329 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,329 - sqlalchemy.engine.Engine - INFO - [cached since 0.2553s ago] ('684badeb-03f8-4113-a4ba-4984a267a8dc', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["eb99d8e7-9568-40dd-866b-f4bd259517a7"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 10, 59, 3, 329738), datetime.datetime(2025, 4, 19, 10, 59, 3, 329738), 0)
2025-04-19 10:59:03,329 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,329 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,329 - sqlalchemy.engine.Engine - INFO - [cached since 0.1742s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 328725), '任务执行成功', 1000, 141, datetime.datetime(2025, 4, 19, 10, 59, 3, 329738), 'ba19063c-6a94-4204-b181-ae42457f9779')
2025-04-19 10:59:03,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,331 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,331 - sqlalchemy.engine.Engine - INFO - [cached since 0.3223s ago] ('bea42e39-068f-4146-903c-0614cac3995c',)
2025-04-19 10:59:03,332 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,333 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,333 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,333 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,334 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,334 - sqlalchemy.engine.Engine - INFO - [cached since 0.2412s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 333186), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 334192), 'bea42e39-068f-4146-903c-0614cac3995c')
2025-04-19 10:59:03,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,335 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,335 - sqlalchemy.engine.Engine - INFO - [cached since 0.1787s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 334192), '任务执行成功', 1000, 146, datetime.datetime(2025, 4, 19, 10, 59, 3, 335186), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-19 10:59:03,335 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,335 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,338 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,338 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,338 - sqlalchemy.engine.Engine - INFO - [cached since 0.1823s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 338186), '任务执行成功', 1000, 151, datetime.datetime(2025, 4, 19, 10, 59, 3, 338186), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce')
2025-04-19 10:59:03,339 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: ba19063c-6a94-4204-b181-ae42457f9779, 结果: True
2025-04-19 10:59:03,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 10:59:03,342 - services.execution.task_executor - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 设置超时时间: 3600秒
2025-04-19 10:59:03,343 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,343 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,343 - sqlalchemy.engine.Engine - INFO - [cached since 0.3345s ago] ('b4339700-cf6f-4c57-acf6-331972c30da3',)
2025-04-19 10:59:03,344 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,344 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,344 - sqlalchemy.engine.Engine - INFO - [cached since 0.3744s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 10:59:03,344 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,344 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,344 - sqlalchemy.engine.Engine - INFO - [cached since 0.1884s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 343030), '任务执行成功', 1000, 150, datetime.datetime(2025, 4, 19, 10, 59, 3, 344029), 'dd48f08e-fa29-4272-84d8-18935eecb64d')
2025-04-19 10:59:03,345 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:03,345 - sqlalchemy.engine.Engine - INFO - [cached since 0.374s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 10:59:03,346 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,346 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,346 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,346 - sqlalchemy.engine.Engine - INFO - [cached since 0.2538s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 346529), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 346529), 'b4339700-cf6f-4c57-acf6-331972c30da3')
2025-04-19 10:59:03,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 结果: True
2025-04-19 10:59:03,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 10:59:03,347 - services.execution.task_executor - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 设置超时时间: 3600秒
2025-04-19 10:59:03,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 结果: True
2025-04-19 10:59:03,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,348 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,348 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,349 - sqlalchemy.engine.Engine - INFO - [cached since 0.3795s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 10:59:03,349 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,349 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,349 - sqlalchemy.engine.Engine - INFO - [cached since 0.3739s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 3, 349775), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6')
2025-04-19 10:59:03,350 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 10:59:03,350 - sqlalchemy.engine.Engine - INFO - [cached since 0.3792s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 10:59:03,350 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,351 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 结果: True
2025-04-19 10:59:03,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,352 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,352 - sqlalchemy.engine.Engine - INFO - [cached since 0.3769s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 10, 59, 3, 352857), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')
2025-04-19 10:59:03,353 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,354 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,355 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,355 - sqlalchemy.engine.Engine - INFO - [cached since 0.1994s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 354868), '任务执行成功', 1000, 152, datetime.datetime(2025, 4, 19, 10, 59, 3, 355858), 'eb99d8e7-9568-40dd-866b-f4bd259517a7')
2025-04-19 10:59:03,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,361 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,362 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,362 - sqlalchemy.engine.Engine - INFO - [cached since 0.364s ago] ('c2a5d7d4-cdf3-418d-a0be-153de4583656', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 59, 3, 361883), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 362949), datetime.datetime(2025, 4, 19, 10, 59, 3, 362949), 0)
2025-04-19 10:59:03,362 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,363 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 10:59:03,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 结果: True
2025-04-19 10:59:03,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,364 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,364 - sqlalchemy.engine.Engine - INFO - [cached since 0.366s ago] ('efecd0c6-87ee-46ad-925f-051dfca5b954', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 59, 3, 363955), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 364955), datetime.datetime(2025, 4, 19, 10, 59, 3, 364955), 0)
2025-04-19 10:59:03,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,370 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,370 - sqlalchemy.engine.Engine - INFO - [cached since 0.3618s ago] ('c2a5d7d4-cdf3-418d-a0be-153de4583656',)
2025-04-19 10:59:03,370 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,371 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,371 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,371 - sqlalchemy.engine.Engine - INFO - [cached since 0.3587s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 371955), 'c2a5d7d4-cdf3-418d-a0be-153de4583656')
2025-04-19 10:59:03,371 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,374 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,374 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,375 - sqlalchemy.engine.Engine - INFO - [cached since 0.3667s ago] ('efecd0c6-87ee-46ad-925f-051dfca5b954',)
2025-04-19 10:59:03,378 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,378 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,378 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,378 - sqlalchemy.engine.Engine - INFO - [cached since 0.366s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 378966), 'efecd0c6-87ee-46ad-925f-051dfca5b954')
2025-04-19 10:59:03,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,385 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,386 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,386 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,386 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,387 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,387 - sqlalchemy.engine.Engine - INFO - [cached since 0.3887s ago] ('f0b9f5ac-d0a9-4bf7-ab28-d74bed3b4bb6', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 59, 3, 386865), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 387877), datetime.datetime(2025, 4, 19, 10, 59, 3, 387877), 0)
2025-04-19 10:59:03,387 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,390 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 10:59:03,390 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 10:59:03,391 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 10:59:03,391 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,391 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 10:59:03,391 - sqlalchemy.engine.Engine - INFO - [cached since 0.3931s ago] ('aaae712a-f523-4b54-be23-326a95ad1a3d', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 59, 3, 391475), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 10, 59, 3, 391475), datetime.datetime(2025, 4, 19, 10, 59, 3, 391475), 0)
2025-04-19 10:59:03,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,396 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: f0b9f5ac-d0a9-4bf7-ab28-d74bed3b4bb6
2025-04-19 10:59:03,396 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,397 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,397 - sqlalchemy.engine.Engine - INFO - [cached since 0.3883s ago] ('f0b9f5ac-d0a9-4bf7-ab28-d74bed3b4bb6',)
2025-04-19 10:59:03,399 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,399 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,399 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,399 - sqlalchemy.engine.Engine - INFO - [cached since 0.387s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 399726), 'f0b9f5ac-d0a9-4bf7-ab28-d74bed3b4bb6')
2025-04-19 10:59:03,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,400 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: aaae712a-f523-4b54-be23-326a95ad1a3d
2025-04-19 10:59:03,401 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,401 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,401 - sqlalchemy.engine.Engine - INFO - [cached since 0.3928s ago] ('aaae712a-f523-4b54-be23-326a95ad1a3d',)
2025-04-19 10:59:03,402 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,402 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,402 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,402 - sqlalchemy.engine.Engine - INFO - [cached since 0.3898s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 10, 59, 3, 402728), 'aaae712a-f523-4b54-be23-326a95ad1a3d')
2025-04-19 10:59:03,403 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,406 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,407 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,407 - sqlalchemy.engine.Engine - INFO - [cached since 0.3353s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 10:59:03,407 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6
2025-04-19 10:59:03,407 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,408 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,408 - services.execution.handlers.foundation - INFO - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 打印: ['f8e0d6d2-7851-48af-8a61-2129bbc6d7c6']
2025-04-19 10:59:03,408 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,408 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,408 - sqlalchemy.engine.Engine - INFO - [cached since 0.3347s ago] ('c3be1143-5a7e-46f7-9a40-20332c6403c2', 1, '{"success": true, "message": "打印成功", "output": {"message": ["f8e0d6d2-7851-48af-8a61-2129bbc6d7c6"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 59, 3, 408807), datetime.datetime(2025, 4, 19, 10, 59, 3, 408807), 0)
2025-04-19 10:59:03,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,412 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 10:59:03,412 - sqlalchemy.engine.Engine - INFO - [cached since 0.3402s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 10:59:03,412 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ff8fbdc2-670a-443f-81f5-d0790d7dc2af
2025-04-19 10:59:03,412 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,413 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 10:59:03,413 - services.execution.handlers.foundation - INFO - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 打印: ['ff8fbdc2-670a-443f-81f5-d0790d7dc2af']
2025-04-19 10:59:03,413 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,413 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,413 - sqlalchemy.engine.Engine - INFO - [cached since 0.3397s ago] ('11e5c1d6-19d8-4232-87e2-04e777e7c294', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ff8fbdc2-670a-443f-81f5-d0790d7dc2af"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 59, 3, 413806), datetime.datetime(2025, 4, 19, 10, 59, 3, 413806), 0)
2025-04-19 10:59:03,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,416 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,416 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,418 - sqlalchemy.engine.Engine - INFO - [cached since 0.4088s ago] ('f0b9f5ac-d0a9-4bf7-ab28-d74bed3b4bb6',)
2025-04-19 10:59:03,418 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,418 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,419 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,419 - sqlalchemy.engine.Engine - INFO - [cached since 0.326s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 419026), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 419026), 'f0b9f5ac-d0a9-4bf7-ab28-d74bed3b4bb6')
2025-04-19 10:59:03,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,424 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,424 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,424 - sqlalchemy.engine.Engine - INFO - [cached since 0.4154s ago] ('aaae712a-f523-4b54-be23-326a95ad1a3d',)
2025-04-19 10:59:03,425 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 10:59:03,425 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,425 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,425 - sqlalchemy.engine.Engine - INFO - [cached since 0.3326s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 425152), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 425152), 'aaae712a-f523-4b54-be23-326a95ad1a3d')
2025-04-19 10:59:03,426 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,430 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,430 - sqlalchemy.engine.Engine - INFO - [cached since 0.3555s ago] ('4a8b9968-2e29-4027-8db7-44901891bb69', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["f8e0d6d2-7851-48af-8a61-2129bbc6d7c6"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 10, 59, 3, 430152), datetime.datetime(2025, 4, 19, 10, 59, 3, 430152), 0)
2025-04-19 10:59:03,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,437 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,438 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 10:59:03,438 - sqlalchemy.engine.Engine - INFO - [cached since 0.3636s ago] ('4b7d3af9-94d4-44f9-97b8-e485b4db2872', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ff8fbdc2-670a-443f-81f5-d0790d7dc2af"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 10, 59, 3, 438169), datetime.datetime(2025, 4, 19, 10, 59, 3, 438169), 0)
2025-04-19 10:59:03,438 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,444 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,444 - sqlalchemy.engine.Engine - INFO - [cached since 0.4356s ago] ('c2a5d7d4-cdf3-418d-a0be-153de4583656',)
2025-04-19 10:59:03,444 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,444 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,445 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,445 - sqlalchemy.engine.Engine - INFO - [cached since 0.3529s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 445902), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 445902), 'c2a5d7d4-cdf3-418d-a0be-153de4583656')
2025-04-19 10:59:03,445 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,448 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,448 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,448 - sqlalchemy.engine.Engine - INFO - [cached since 0.44s ago] ('efecd0c6-87ee-46ad-925f-051dfca5b954',)
2025-04-19 10:59:03,449 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 10:59:03,449 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 10:59:03,449 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 10:59:03,449 - sqlalchemy.engine.Engine - INFO - [cached since 0.3572s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 449903), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 10, 59, 3, 449903), 'efecd0c6-87ee-46ad-925f-051dfca5b954')
2025-04-19 10:59:03,449 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,455 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,456 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,456 - sqlalchemy.engine.Engine - INFO - [cached since 0.3004s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 455902), '任务执行成功', 1000, 107, datetime.datetime(2025, 4, 19, 10, 59, 3, 456905), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6')
2025-04-19 10:59:03,456 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,461 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 10:59:03,461 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 10:59:03,462 - sqlalchemy.engine.Engine - INFO - [cached since 0.3052s ago] (datetime.datetime(2025, 4, 19, 10, 59, 3, 461161), '任务执行成功', 1000, 109, datetime.datetime(2025, 4, 19, 10, 59, 3, 461161), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')
2025-04-19 10:59:03,462 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 10:59:03,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 结果: True
2025-04-19 10:59:03,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 结果: True
2025-04-19 10:59:58,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 10:59:58,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 10:59:58,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 10:59:58,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 10:59:58,662 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 10:59:58,662 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 10:59:58,662 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 10:59:58,663 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 10:59:58,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 10:59:58,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 10:59:58,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 10:59:58,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 10:59:58,675 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 10:59:58,675 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 10:59:58,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 10:59:58,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 10:59:58,676 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 10:59:58,676 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 11:00:02,191 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:00:02,192 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:00:02,936 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:00:02,937 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:00:03,001 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 11:00:03,057 - data.session - INFO - 正在初始化数据库...
2025-04-19 11:00:03,081 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 11:00:03,104 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:00:03,105 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,105 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:00:03,106 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,106 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:00:03,106 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,108 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 11:00:03,108 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,110 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 11:00:03,111 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,112 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 11:00:03,112 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,114 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 11:00:03,114 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,116 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 11:00:03,116 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,117 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 11:00:03,117 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,118 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 11:00:03,118 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,120 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 11:00:03,120 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,121 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 11:00:03,121 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,123 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 11:00:03,123 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,123 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 11:00:03,124 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:00:03,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,125 - data.session - INFO - 数据库表初始化完成
2025-04-19 11:00:03,500 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 11:00:03,500 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 11:00:03,500 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 11:00:03,500 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 11:00:03,501 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 11:00:03,501 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 11:00:03,501 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 11:00:03,501 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 11:00:03,501 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 11:00:03,501 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 11:00:03,501 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:00:03,501 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 11:00:03,502 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 11:00:03,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:00:03,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:00:03,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:00:03,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:00:03,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:00:03,503 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 11:00:03,505 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 11:00:03,528 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:00:03,529 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:00:03,529 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:00:03,530 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:00:03,531 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:00:03,531 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:00:03,531 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:00:03,532 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,541 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 11:00:03,542 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1, 1)
2025-04-19 11:00:03,544 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 11:00:03,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,545 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 11:00:03,545 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 11:00:03,546 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 11:00:03,546 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,548 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 11:00:03,548 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1000, 2000, 2001)
2025-04-19 11:00:03,549 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,575 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:00:03,576 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,576 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:00:03,578 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1001, datetime.datetime(2025, 4, 19, 10, 0, 3, 546823))
2025-04-19 11:00:03,578 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载 12 个任务
2025-04-19 11:00:03,578 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 11:00:03,578 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a (优先级 1) 添加到队列 0
2025-04-19 11:00:03,578 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 11:00:03,578 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 (优先级 1) 添加到队列 0
2025-04-19 11:00:03,578 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 11:00:03,579 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 (优先级 1) 添加到队列 0
2025-04-19 11:00:03,579 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 11:00:03,579 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 (优先级 1) 添加到队列 0
2025-04-19 11:00:03,579 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 11:00:03,579 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f (优先级 1) 添加到队列 0
2025-04-19 11:00:03,579 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 11:00:03,579 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce (优先级 1) 添加到队列 0
2025-04-19 11:00:03,580 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 11:00:03,580 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 (优先级 1) 添加到队列 0
2025-04-19 11:00:03,580 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 11:00:03,580 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 (优先级 1) 添加到队列 0
2025-04-19 11:00:03,580 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 11:00:03,580 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d (优先级 1) 添加到队列 0
2025-04-19 11:00:03,580 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 11:00:03,580 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 (优先级 1) 添加到队列 0
2025-04-19 11:00:03,580 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 11:00:03,580 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 (优先级 1) 添加到队列 0
2025-04-19 11:00:03,581 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 11:00:03,581 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af (优先级 1) 添加到队列 0
2025-04-19 11:00:03,581 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 11:00:03,581 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 12 个未完成的任务
2025-04-19 11:00:03,581 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 11:00:03,581 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 11:00:03,581 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 优先级: 1
2025-04-19 11:00:03,607 - services.execution.task_executor - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 设置超时时间: 3600秒
2025-04-19 11:00:03,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 730110e1-a1aa-4b19-914f-93539368abf1, 优先级: 1
2025-04-19 11:00:03,607 - services.execution.task_executor - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 设置超时时间: 3600秒
2025-04-19 11:00:03,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 优先级: 1
2025-04-19 11:00:03,608 - services.execution.task_executor - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 设置超时时间: 3600秒
2025-04-19 11:00:03,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 优先级: 1
2025-04-19 11:00:03,608 - services.execution.task_executor - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 设置超时时间: 3600秒
2025-04-19 11:00:03,609 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 优先级: 1
2025-04-19 11:00:03,609 - services.execution.task_executor - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 设置超时时间: 3600秒
2025-04-19 11:00:03,610 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,610 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,611 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 11:00:03,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,611 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,611 - sqlalchemy.engine.Engine - INFO - [cached since 0.001073s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 11:00:03,613 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,613 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 11:00:03,614 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,614 - sqlalchemy.engine.Engine - INFO - [cached since 0.00131s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 11:00:03,614 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,615 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,615 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:00:03,616 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:00:03,617 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:00:03,617 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,618 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,618 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 618089), '2c356c7a-265f-4a5c-af76-73bcf0a3661a')
2025-04-19 11:00:03,619 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,619 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,619 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,619 - sqlalchemy.engine.Engine - INFO - [cached since 0.002147s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 619088), '730110e1-a1aa-4b19-914f-93539368abf1')
2025-04-19 11:00:03,620 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,620 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,620 - sqlalchemy.engine.Engine - INFO - [cached since 0.0104s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 11:00:03,621 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,621 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,621 - sqlalchemy.engine.Engine - INFO - [cached since 0.01116s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 11:00:03,621 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,622 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,622 - sqlalchemy.engine.Engine - INFO - [cached since 0.01187s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 11:00:03,622 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,623 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,623 - sqlalchemy.engine.Engine - INFO - [cached since 0.01071s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 11:00:03,624 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,624 - sqlalchemy.engine.Engine - INFO - [cached since 0.01148s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 11:00:03,624 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,625 - sqlalchemy.engine.Engine - INFO - [cached since 0.0124s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 11:00:03,625 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,625 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,626 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,627 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,627 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,627 - sqlalchemy.engine.Engine - INFO - [cached since 0.01047s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 627596), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971')
2025-04-19 11:00:03,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,628 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,628 - sqlalchemy.engine.Engine - INFO - [cached since 0.01124s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 628600), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f')
2025-04-19 11:00:03,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,629 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,629 - sqlalchemy.engine.Engine - INFO - [cached since 0.01187s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 629600), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0')
2025-04-19 11:00:03,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,630 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,630 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,631 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,632 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,632 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('a6379afb-0609-4aaa-8afd-2ee472210c60', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 11, 0, 3, 630600), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 632610), datetime.datetime(2025, 4, 19, 11, 0, 3, 632610), 0)
2025-04-19 11:00:03,633 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,633 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,633 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,634 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,634 - sqlalchemy.engine.Engine - INFO - [cached since 0.002094s ago] ('4c10eddf-e3c5-4c5e-b464-92e5420f4e79', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 11, 0, 3, 633607), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 634601), datetime.datetime(2025, 4, 19, 11, 0, 3, 634601), 0)
2025-04-19 11:00:03,635 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,641 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,641 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,641 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,641 - sqlalchemy.engine.Engine - INFO - [cached since 0.009706s ago] ('36c92281-201d-493e-9c8f-2eefbaa11d81', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 11, 0, 3, 641600), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 641600), datetime.datetime(2025, 4, 19, 11, 0, 3, 641600), 0)
2025-04-19 11:00:03,642 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,647 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,649 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,651 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,652 - sqlalchemy.engine.Engine - INFO - [generated in 0.00087s] ('a6379afb-0609-4aaa-8afd-2ee472210c60',)
2025-04-19 11:00:03,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,652 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,653 - sqlalchemy.engine.Engine - INFO - [cached since 0.001597s ago] ('4c10eddf-e3c5-4c5e-b464-92e5420f4e79',)
2025-04-19 11:00:03,653 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,653 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,653 - sqlalchemy.engine.Engine - INFO - [cached since 0.02183s ago] ('81f957ba-4158-4266-8afe-79e017b921be', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 11, 0, 3, 650959), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 653877), datetime.datetime(2025, 4, 19, 11, 0, 3, 653877), 0)
2025-04-19 11:00:03,654 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,654 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,654 - sqlalchemy.engine.Engine - INFO - [cached since 0.02254s ago] ('e642c26e-32f0-4864-a233-43785ba1c05d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 11, 0, 3, 649876), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 654877), datetime.datetime(2025, 4, 19, 11, 0, 3, 654877), 0)
2025-04-19 11:00:03,655 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,655 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,656 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,656 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 656885), 'a6379afb-0609-4aaa-8afd-2ee472210c60')
2025-04-19 11:00:03,656 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,657 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,657 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,657 - sqlalchemy.engine.Engine - INFO - [cached since 0.001168s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 657876), '4c10eddf-e3c5-4c5e-b464-92e5420f4e79')
2025-04-19 11:00:03,657 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,658 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,658 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,658 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,658 - sqlalchemy.engine.Engine - INFO - [cached since 0.00753s ago] ('36c92281-201d-493e-9c8f-2eefbaa11d81',)
2025-04-19 11:00:03,659 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,661 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,661 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,661 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,661 - sqlalchemy.engine.Engine - INFO - [cached since 0.005746s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 661876), '36c92281-201d-493e-9c8f-2eefbaa11d81')
2025-04-19 11:00:03,662 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,665 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,666 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,666 - sqlalchemy.engine.Engine - INFO - [cached since 0.01467s ago] ('81f957ba-4158-4266-8afe-79e017b921be',)
2025-04-19 11:00:03,666 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,666 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,668 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,668 - sqlalchemy.engine.Engine - INFO - [cached since 0.01236s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 668854), '81f957ba-4158-4266-8afe-79e017b921be')
2025-04-19 11:00:03,669 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,669 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,669 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,671 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,671 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,671 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,672 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,672 - sqlalchemy.engine.Engine - INFO - [cached since 0.03987s ago] ('bdf889a3-c1ce-4a59-8f84-042ac20529d8', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 11, 0, 3, 669975), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 672068), datetime.datetime(2025, 4, 19, 11, 0, 3, 672068), 0)
2025-04-19 11:00:03,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,672 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,672 - sqlalchemy.engine.Engine - INFO - [cached since 0.04067s ago] ('266f1e8a-81a1-4e56-92e4-7ebdea24e676', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 11, 0, 3, 671144), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 672979), datetime.datetime(2025, 4, 19, 11, 0, 3, 672979), 0)
2025-04-19 11:00:03,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,672 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,673 - sqlalchemy.engine.Engine - INFO - [cached since 0.0217s ago] ('e642c26e-32f0-4864-a233-43785ba1c05d',)
2025-04-19 11:00:03,673 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,673 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,673 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,674 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,674 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,674 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,674 - sqlalchemy.engine.Engine - INFO - [cached since 0.01873s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 674980), 'e642c26e-32f0-4864-a233-43785ba1c05d')
2025-04-19 11:00:03,675 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,675 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,675 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,675 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,677 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,677 - sqlalchemy.engine.Engine - INFO - [cached since 0.04442s ago] ('6fa8bbef-602b-4e8b-a0b8-51946601ed0c', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 11, 0, 3, 675978), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 677097), datetime.datetime(2025, 4, 19, 11, 0, 3, 677097), 0)
2025-04-19 11:00:03,677 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,677 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,680 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: bdf889a3-c1ce-4a59-8f84-042ac20529d8
2025-04-19 11:00:03,680 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,681 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,681 - sqlalchemy.engine.Engine - INFO - [cached since 0.02896s ago] ('bdf889a3-c1ce-4a59-8f84-042ac20529d8',)
2025-04-19 11:00:03,683 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,683 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,683 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,683 - sqlalchemy.engine.Engine - INFO - [cached since 0.02678s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 683155), 'bdf889a3-c1ce-4a59-8f84-042ac20529d8')
2025-04-19 11:00:03,684 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,685 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 266f1e8a-81a1-4e56-92e4-7ebdea24e676
2025-04-19 11:00:03,686 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 6fa8bbef-602b-4e8b-a0b8-51946601ed0c
2025-04-19 11:00:03,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,686 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,686 - sqlalchemy.engine.Engine - INFO - [cached since 0.03485s ago] ('266f1e8a-81a1-4e56-92e4-7ebdea24e676',)
2025-04-19 11:00:03,687 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,687 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,687 - sqlalchemy.engine.Engine - INFO - [cached since 0.03549s ago] ('6fa8bbef-602b-4e8b-a0b8-51946601ed0c',)
2025-04-19 11:00:03,687 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,688 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,688 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,688 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,688 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,688 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,689 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,689 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,690 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,690 - sqlalchemy.engine.Engine - INFO - [cached since 0.03321s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 689155), '266f1e8a-81a1-4e56-92e4-7ebdea24e676')
2025-04-19 11:00:03,690 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,690 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,690 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,690 - sqlalchemy.engine.Engine - INFO - [cached since 0.03405s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 690155), '6fa8bbef-602b-4e8b-a0b8-51946601ed0c')
2025-04-19 11:00:03,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,691 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,691 - sqlalchemy.engine.Engine - INFO - [cached since 0.05899s ago] ('bd2a7b39-252b-4c68-851d-d0a49c01a4fb', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 11, 0, 3, 688263), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 691155), datetime.datetime(2025, 4, 19, 11, 0, 3, 691155), 0)
2025-04-19 11:00:03,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,692 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,692 - sqlalchemy.engine.Engine - INFO - [cached since 0.05961s ago] ('bbe9fa18-4cc4-4553-826d-1a2e5958fdcb', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 11, 0, 3, 689155), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 692166), datetime.datetime(2025, 4, 19, 11, 0, 3, 692166), 0)
2025-04-19 11:00:03,692 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,692 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,693 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,695 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,695 - sqlalchemy.engine.Engine - INFO - [generated in 0.00016s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 11:00:03,695 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 2c356c7a-265f-4a5c-af76-73bcf0a3661a
2025-04-19 11:00:03,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,695 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,696 - services.execution.handlers.foundation - INFO - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 打印: ['2c356c7a-265f-4a5c-af76-73bcf0a3661a']
2025-04-19 11:00:03,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,697 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,697 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('949a97a5-a354-45a8-bb3d-415f6c970c3b', 1, '{"success": true, "message": "打印成功", "output": {"message": ["2c356c7a-265f-4a5c-af76-73bcf0a3661a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 11, 0, 3, 697163), datetime.datetime(2025, 4, 19, 11, 0, 3, 697163), 0)
2025-04-19 11:00:03,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,700 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,700 - sqlalchemy.engine.Engine - INFO - [cached since 0.005102s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 11:00:03,700 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 730110e1-a1aa-4b19-914f-93539368abf1
2025-04-19 11:00:03,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,701 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,701 - services.execution.handlers.foundation - INFO - 任务 730110e1-a1aa-4b19-914f-93539368abf1 打印: ['730110e1-a1aa-4b19-914f-93539368abf1']
2025-04-19 11:00:03,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,702 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,702 - sqlalchemy.engine.Engine - INFO - [cached since 0.005477s ago] ('691af988-4290-419f-a126-f16733257451', 1, '{"success": true, "message": "打印成功", "output": {"message": ["730110e1-a1aa-4b19-914f-93539368abf1"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 11, 0, 3, 702519), datetime.datetime(2025, 4, 19, 11, 0, 3, 702519), 0)
2025-04-19 11:00:03,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,703 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: bbe9fa18-4cc4-4553-826d-1a2e5958fdcb
2025-04-19 11:00:03,704 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: bd2a7b39-252b-4c68-851d-d0a49c01a4fb
2025-04-19 11:00:03,704 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,704 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,704 - sqlalchemy.engine.Engine - INFO - [cached since 0.01046s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 11:00:03,704 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,705 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,705 - sqlalchemy.engine.Engine - INFO - [cached since 0.05389s ago] ('bbe9fa18-4cc4-4553-826d-1a2e5958fdcb',)
2025-04-19 11:00:03,705 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,705 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,705 - sqlalchemy.engine.Engine - INFO - [cached since 0.05462s ago] ('bd2a7b39-252b-4c68-851d-d0a49c01a4fb',)
2025-04-19 11:00:03,705 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f
2025-04-19 11:00:03,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,707 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,707 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,707 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,707 - sqlalchemy.engine.Engine - INFO - [cached since 0.05132s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 707449), 'bbe9fa18-4cc4-4553-826d-1a2e5958fdcb')
2025-04-19 11:00:03,708 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,708 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,708 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,708 - sqlalchemy.engine.Engine - INFO - [cached since 0.05234s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 708455), 'bd2a7b39-252b-4c68-851d-d0a49c01a4fb')
2025-04-19 11:00:03,709 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,709 - services.execution.handlers.foundation - INFO - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 打印: ['9760da26-b0ca-4baa-8c15-8afe4be7dd2f']
2025-04-19 11:00:03,709 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,710 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,710 - sqlalchemy.engine.Engine - INFO - [cached since 0.05885s ago] ('bdf889a3-c1ce-4a59-8f84-042ac20529d8',)
2025-04-19 11:00:03,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,711 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,711 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,712 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,712 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (datetime.datetime(2025, 4, 19, 11, 0, 3, 711563), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 711563), 'bdf889a3-c1ce-4a59-8f84-042ac20529d8')
2025-04-19 11:00:03,712 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,713 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,713 - sqlalchemy.engine.Engine - INFO - [cached since 0.01656s ago] ('49eab15a-cb24-4bc7-aff6-0d5c59a05019', 1, '{"success": true, "message": "打印成功", "output": {"message": ["9760da26-b0ca-4baa-8c15-8afe4be7dd2f"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 11, 0, 3, 713585), datetime.datetime(2025, 4, 19, 11, 0, 3, 713585), 0)
2025-04-19 11:00:03,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,714 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,714 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,714 - sqlalchemy.engine.Engine - INFO - [cached since 0.06282s ago] ('266f1e8a-81a1-4e56-92e4-7ebdea24e676',)
2025-04-19 11:00:03,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,715 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,715 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,715 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,715 - sqlalchemy.engine.Engine - INFO - [cached since 0.003962s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 715457), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 715457), '266f1e8a-81a1-4e56-92e4-7ebdea24e676')
2025-04-19 11:00:03,717 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,717 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,718 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,718 - sqlalchemy.engine.Engine - INFO - [cached since 0.02401s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 11:00:03,718 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971
2025-04-19 11:00:03,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,719 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,719 - services.execution.handlers.foundation - INFO - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 打印: ['7b8ccb78-ec9d-4157-a7c2-f1a39c73b971']
2025-04-19 11:00:03,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,719 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,719 - sqlalchemy.engine.Engine - INFO - [cached since 0.02373s ago] ('694b6fb6-9c71-4fff-a263-c063fcd17cbd', 1, '{"success": true, "message": "打印成功", "output": {"message": ["7b8ccb78-ec9d-4157-a7c2-f1a39c73b971"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 11, 0, 3, 719995), datetime.datetime(2025, 4, 19, 11, 0, 3, 719995), 0)
2025-04-19 11:00:03,721 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,722 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,722 - sqlalchemy.engine.Engine - INFO - [cached since 0.02795s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 11:00:03,722 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0
2025-04-19 11:00:03,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,724 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,724 - services.execution.handlers.foundation - INFO - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 打印: ['79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0']
2025-04-19 11:00:03,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,724 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,724 - sqlalchemy.engine.Engine - INFO - [cached since 0.02827s ago] ('157d82e6-be26-4845-b32c-1527c0c21f29', 1, '{"success": true, "message": "打印成功", "output": {"message": ["79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 11, 0, 3, 724994), datetime.datetime(2025, 4, 19, 11, 0, 3, 724994), 0)
2025-04-19 11:00:03,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,729 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,729 - sqlalchemy.engine.Engine - INFO - [cached since 0.03338s ago] ('e5f20252-cb7a-4c7f-8d14-966728fd3d7d', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["2c356c7a-265f-4a5c-af76-73bcf0a3661a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2c356c7a-265f-4a5c-af76-73bcf0a3661a', datetime.datetime(2025, 4, 19, 11, 0, 3, 729543), datetime.datetime(2025, 4, 19, 11, 0, 3, 729543), 0)
2025-04-19 11:00:03,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,731 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,731 - sqlalchemy.engine.Engine - INFO - [cached since 0.03402s ago] ('685d941d-b105-49c1-ab84-3bed93ec2b76', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["730110e1-a1aa-4b19-914f-93539368abf1"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '730110e1-a1aa-4b19-914f-93539368abf1', datetime.datetime(2025, 4, 19, 11, 0, 3, 731013), datetime.datetime(2025, 4, 19, 11, 0, 3, 731013), 0)
2025-04-19 11:00:03,731 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,731 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,732 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,732 - sqlalchemy.engine.Engine - INFO - [cached since 0.08003s ago] ('6fa8bbef-602b-4e8b-a0b8-51946601ed0c',)
2025-04-19 11:00:03,732 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,733 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,733 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,733 - sqlalchemy.engine.Engine - INFO - [cached since 0.02106s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 733017), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 733017), '6fa8bbef-602b-4e8b-a0b8-51946601ed0c')
2025-04-19 11:00:03,733 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,736 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,737 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,737 - sqlalchemy.engine.Engine - INFO - [cached since 0.08502s ago] ('bbe9fa18-4cc4-4553-826d-1a2e5958fdcb',)
2025-04-19 11:00:03,737 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,738 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,738 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,738 - sqlalchemy.engine.Engine - INFO - [cached since 0.02597s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 738035), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 738035), 'bbe9fa18-4cc4-4553-826d-1a2e5958fdcb')
2025-04-19 11:00:03,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,739 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,739 - sqlalchemy.engine.Engine - INFO - [cached since 0.08707s ago] ('a6379afb-0609-4aaa-8afd-2ee472210c60',)
2025-04-19 11:00:03,739 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,740 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,740 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,740 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,740 - sqlalchemy.engine.Engine - INFO - [cached since 0.02838s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 740017), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 740017), 'a6379afb-0609-4aaa-8afd-2ee472210c60')
2025-04-19 11:00:03,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,741 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,741 - sqlalchemy.engine.Engine - INFO - [cached since 0.08899s ago] ('bd2a7b39-252b-4c68-851d-d0a49c01a4fb',)
2025-04-19 11:00:03,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,742 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,742 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,742 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,742 - sqlalchemy.engine.Engine - INFO - [cached since 0.03015s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 742016), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 742016), 'bd2a7b39-252b-4c68-851d-d0a49c01a4fb')
2025-04-19 11:00:03,743 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,743 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,743 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,744 - sqlalchemy.engine.Engine - INFO - [cached since 0.09173s ago] ('4c10eddf-e3c5-4c5e-b464-92e5420f4e79',)
2025-04-19 11:00:03,744 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,744 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,744 - sqlalchemy.engine.Engine - INFO - [cached since 0.04745s ago] ('5f9db53d-f68a-4a23-934d-b00bc3f490db', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["9760da26-b0ca-4baa-8c15-8afe4be7dd2f"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '9760da26-b0ca-4baa-8c15-8afe4be7dd2f', datetime.datetime(2025, 4, 19, 11, 0, 3, 744051), datetime.datetime(2025, 4, 19, 11, 0, 3, 744051), 0)
2025-04-19 11:00:03,745 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,745 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,745 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,745 - sqlalchemy.engine.Engine - INFO - [cached since 0.03341s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 745017), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 745017), '4c10eddf-e3c5-4c5e-b464-92e5420f4e79')
2025-04-19 11:00:03,746 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,746 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,751 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,752 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,752 - sqlalchemy.engine.Engine - INFO - [cached since 0.05511s ago] ('db568918-aa92-4910-aa6d-09d0cd62fc5a', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["7b8ccb78-ec9d-4157-a7c2-f1a39c73b971"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971', datetime.datetime(2025, 4, 19, 11, 0, 3, 752017), datetime.datetime(2025, 4, 19, 11, 0, 3, 752017), 0)
2025-04-19 11:00:03,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,760 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,760 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] (datetime.datetime(2025, 4, 19, 11, 0, 3, 758046), '任务执行成功', 1000, 141, datetime.datetime(2025, 4, 19, 11, 0, 3, 760035), '2c356c7a-265f-4a5c-af76-73bcf0a3661a')
2025-04-19 11:00:03,760 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,760 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,760 - sqlalchemy.engine.Engine - INFO - [cached since 0.0008528s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 758046), '任务执行成功', 1000, 139, datetime.datetime(2025, 4, 19, 11, 0, 3, 760035), '730110e1-a1aa-4b19-914f-93539368abf1')
2025-04-19 11:00:03,760 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,761 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,761 - sqlalchemy.engine.Engine - INFO - [cached since 0.0643s ago] ('5b1ad9fb-5db2-41bf-9a8e-13a388d48d6c', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0', datetime.datetime(2025, 4, 19, 11, 0, 3, 761282), datetime.datetime(2025, 4, 19, 11, 0, 3, 761282), 0)
2025-04-19 11:00:03,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,761 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,762 - sqlalchemy.engine.Engine - INFO - [cached since 0.1098s ago] ('36c92281-201d-493e-9c8f-2eefbaa11d81',)
2025-04-19 11:00:03,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,763 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,763 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,763 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,764 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,764 - sqlalchemy.engine.Engine - INFO - [cached since 0.05184s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 763141), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 764065), '36c92281-201d-493e-9c8f-2eefbaa11d81')
2025-04-19 11:00:03,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,765 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,765 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,765 - sqlalchemy.engine.Engine - INFO - [cached since 0.1131s ago] ('e642c26e-32f0-4864-a233-43785ba1c05d',)
2025-04-19 11:00:03,765 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,766 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,766 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,766 - sqlalchemy.engine.Engine - INFO - [cached since 0.05423s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 766200), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 766200), 'e642c26e-32f0-4864-a233-43785ba1c05d')
2025-04-19 11:00:03,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 2c356c7a-265f-4a5c-af76-73bcf0a3661a, 结果: True
2025-04-19 11:00:03,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 优先级: 1
2025-04-19 11:00:03,768 - services.execution.task_executor - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 设置超时时间: 3600秒
2025-04-19 11:00:03,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,769 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,769 - sqlalchemy.engine.Engine - INFO - [cached since 0.1587s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 11:00:03,770 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,770 - sqlalchemy.engine.Engine - INFO - [cached since 0.1578s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 11:00:03,771 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 730110e1-a1aa-4b19-914f-93539368abf1, 结果: True
2025-04-19 11:00:03,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: ba19063c-6a94-4204-b181-ae42457f9779, 优先级: 1
2025-04-19 11:00:03,772 - services.execution.task_executor - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 设置超时时间: 3600秒
2025-04-19 11:00:03,773 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,773 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,773 - sqlalchemy.engine.Engine - INFO - [cached since 0.1628s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 11:00:03,773 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,773 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,774 - sqlalchemy.engine.Engine - INFO - [cached since 0.01404s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 772074), '任务执行成功', 1000, 144, datetime.datetime(2025, 4, 19, 11, 0, 3, 773045), '9760da26-b0ca-4baa-8c15-8afe4be7dd2f')
2025-04-19 11:00:03,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,774 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,774 - sqlalchemy.engine.Engine - INFO - [cached since 0.1224s ago] ('81f957ba-4158-4266-8afe-79e017b921be',)
2025-04-19 11:00:03,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,775 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,775 - sqlalchemy.engine.Engine - INFO - [cached since 0.1572s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 775035), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce')
2025-04-19 11:00:03,775 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,776 - sqlalchemy.engine.Engine - INFO - [cached since 0.1631s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 11:00:03,776 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,776 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,777 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,777 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,777 - sqlalchemy.engine.Engine - INFO - [cached since 0.06513s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 777061), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 777061), '81f957ba-4158-4266-8afe-79e017b921be')
2025-04-19 11:00:03,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,779 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,779 - sqlalchemy.engine.Engine - INFO - [cached since 0.0193s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 778336), '任务执行成功', 1000, 151, datetime.datetime(2025, 4, 19, 11, 0, 3, 779038), '7b8ccb78-ec9d-4157-a7c2-f1a39c73b971')
2025-04-19 11:00:03,779 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,780 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,780 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,780 - sqlalchemy.engine.Engine - INFO - [cached since 0.1629s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 780037), 'ba19063c-6a94-4204-b181-ae42457f9779')
2025-04-19 11:00:03,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: 9760da26-b0ca-4baa-8c15-8afe4be7dd2f, 结果: True
2025-04-19 11:00:03,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 优先级: 1
2025-04-19 11:00:03,782 - services.execution.task_executor - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 设置超时时间: 3600秒
2025-04-19 11:00:03,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,783 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,784 - sqlalchemy.engine.Engine - INFO - [cached since 0.1736s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 11:00:03,785 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,785 - sqlalchemy.engine.Engine - INFO - [cached since 0.1723s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 11:00:03,785 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,786 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,787 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,787 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,787 - sqlalchemy.engine.Engine - INFO - [cached since 0.1549s ago] ('48ec7a86-c846-49a9-b0c0-7d7c8b04da42', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 11, 0, 3, 786088), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 787102), datetime.datetime(2025, 4, 19, 11, 0, 3, 787102), 0)
2025-04-19 11:00:03,787 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,788 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,788 - sqlalchemy.engine.Engine - INFO - [cached since 0.1702s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 788088), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-19 11:00:03,788 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,788 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,788 - sqlalchemy.engine.Engine - INFO - [cached since 0.02892s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 786088), '任务执行成功', 1000, 158, datetime.datetime(2025, 4, 19, 11, 0, 3, 788088), '79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0')
2025-04-19 11:00:03,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971, 结果: True
2025-04-19 11:00:03,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 优先级: 1
2025-04-19 11:00:03,790 - services.execution.task_executor - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 设置超时时间: 3600秒
2025-04-19 11:00:03,790 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,791 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,791 - sqlalchemy.engine.Engine - INFO - [cached since 0.1811s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 11:00:03,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,792 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,792 - sqlalchemy.engine.Engine - INFO - [cached since 0.1597s ago] ('e16fd8eb-eb26-4755-beca-5e6c104db74b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 11, 0, 3, 791088), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 792090), datetime.datetime(2025, 4, 19, 11, 0, 3, 792090), 0)
2025-04-19 11:00:03,793 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,793 - sqlalchemy.engine.Engine - INFO - [cached since 0.1803s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 11:00:03,793 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,795 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,796 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,796 - sqlalchemy.engine.Engine - INFO - [cached since 0.1441s ago] ('48ec7a86-c846-49a9-b0c0-7d7c8b04da42',)
2025-04-19 11:00:03,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,796 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,797 - sqlalchemy.engine.Engine - INFO - [cached since 0.1791s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 796088), 'dd48f08e-fa29-4272-84d8-18935eecb64d')
2025-04-19 11:00:03,797 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,797 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,798 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,798 - sqlalchemy.engine.Engine - INFO - [cached since 0.1413s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 798166), '48ec7a86-c846-49a9-b0c0-7d7c8b04da42')
2025-04-19 11:00:03,798 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,798 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,799 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0, 结果: True
2025-04-19 11:00:03,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 优先级: 1
2025-04-19 11:00:03,800 - services.execution.task_executor - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 设置超时时间: 3600秒
2025-04-19 11:00:03,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,801 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,801 - sqlalchemy.engine.Engine - INFO - [cached since 0.1687s ago] ('1afe1bbf-2de5-4695-8d45-93f8a3a217c6', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 11, 0, 3, 800088), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 801135), datetime.datetime(2025, 4, 19, 11, 0, 3, 801135), 0)
2025-04-19 11:00:03,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,801 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,801 - sqlalchemy.engine.Engine - INFO - [cached since 0.1913s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 11:00:03,802 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,802 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,802 - sqlalchemy.engine.Engine - INFO - [cached since 0.1901s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 11:00:03,803 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,804 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,804 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,804 - sqlalchemy.engine.Engine - INFO - [cached since 0.1527s ago] ('e16fd8eb-eb26-4755-beca-5e6c104db74b',)
2025-04-19 11:00:03,805 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,805 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,805 - sqlalchemy.engine.Engine - INFO - [cached since 0.1875s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 805146), 'eb99d8e7-9568-40dd-866b-f4bd259517a7')
2025-04-19 11:00:03,805 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,805 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,806 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,806 - sqlalchemy.engine.Engine - INFO - [cached since 0.1494s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 806146), 'e16fd8eb-eb26-4755-beca-5e6c104db74b')
2025-04-19 11:00:03,806 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,807 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,807 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,807 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,807 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,808 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,808 - sqlalchemy.engine.Engine - INFO - [cached since 0.1761s ago] ('cbe68dc4-8dea-451b-8f8d-7e27c2615af4', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 11, 0, 3, 808147), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 808147), datetime.datetime(2025, 4, 19, 11, 0, 3, 808147), 0)
2025-04-19 11:00:03,809 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,809 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,809 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,810 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,810 - sqlalchemy.engine.Engine - INFO - [cached since 0.1776s ago] ('bb873cca-0bfc-4253-af14-8ecc1c6ecf75', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 11, 0, 3, 809266), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 810146), datetime.datetime(2025, 4, 19, 11, 0, 3, 810146), 0)
2025-04-19 11:00:03,810 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,811 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,811 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,811 - sqlalchemy.engine.Engine - INFO - [cached since 0.1596s ago] ('1afe1bbf-2de5-4695-8d45-93f8a3a217c6',)
2025-04-19 11:00:03,812 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,812 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,812 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,812 - sqlalchemy.engine.Engine - INFO - [cached since 0.156s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 812145), '1afe1bbf-2de5-4695-8d45-93f8a3a217c6')
2025-04-19 11:00:03,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,815 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,815 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,815 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,815 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,816 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,816 - sqlalchemy.engine.Engine - INFO - [cached since 0.1847s ago] ('939b2d6c-38f5-4d6b-98ed-ed889da74796', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 11, 0, 3, 815783), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 816918), datetime.datetime(2025, 4, 19, 11, 0, 3, 816918), 0)
2025-04-19 11:00:03,817 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,817 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,817 - sqlalchemy.engine.Engine - INFO - [cached since 0.1856s ago] ('165afbc9-cd8f-49f4-baa1-829e6ca04a55', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 11, 0, 3, 815783), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 817787), datetime.datetime(2025, 4, 19, 11, 0, 3, 817787), 0)
2025-04-19 11:00:03,817 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,826 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: cbe68dc4-8dea-451b-8f8d-7e27c2615af4
2025-04-19 11:00:03,827 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,827 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,827 - sqlalchemy.engine.Engine - INFO - [cached since 0.1756s ago] ('bb873cca-0bfc-4253-af14-8ecc1c6ecf75',)
2025-04-19 11:00:03,827 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,828 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,828 - sqlalchemy.engine.Engine - INFO - [cached since 0.1761s ago] ('cbe68dc4-8dea-451b-8f8d-7e27c2615af4',)
2025-04-19 11:00:03,828 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,828 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,829 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,829 - sqlalchemy.engine.Engine - INFO - [cached since 0.1724s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 829239), 'bb873cca-0bfc-4253-af14-8ecc1c6ecf75')
2025-04-19 11:00:03,829 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,830 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,830 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,830 - sqlalchemy.engine.Engine - INFO - [cached since 0.1735s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 830245), 'cbe68dc4-8dea-451b-8f8d-7e27c2615af4')
2025-04-19 11:00:03,830 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,830 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,831 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 939b2d6c-38f5-4d6b-98ed-ed889da74796
2025-04-19 11:00:03,831 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,831 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,831 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,832 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,832 - sqlalchemy.engine.Engine - INFO - [cached since 0.1808s ago] ('939b2d6c-38f5-4d6b-98ed-ed889da74796',)
2025-04-19 11:00:03,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,833 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,833 - sqlalchemy.engine.Engine - INFO - [cached since 0.201s ago] ('affd9dad-49bd-47d4-a0eb-bb70642de655', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 11, 0, 3, 832238), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 833254), datetime.datetime(2025, 4, 19, 11, 0, 3, 833254), 0)
2025-04-19 11:00:03,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,834 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,834 - sqlalchemy.engine.Engine - INFO - [cached since 0.1821s ago] ('165afbc9-cd8f-49f4-baa1-829e6ca04a55',)
2025-04-19 11:00:03,834 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,834 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,834 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,835 - sqlalchemy.engine.Engine - INFO - [cached since 0.1782s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 834237), '939b2d6c-38f5-4d6b-98ed-ed889da74796')
2025-04-19 11:00:03,835 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,835 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,835 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,836 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,836 - sqlalchemy.engine.Engine - INFO - [cached since 0.1795s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 835237), '165afbc9-cd8f-49f4-baa1-829e6ca04a55')
2025-04-19 11:00:03,836 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,836 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,838 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,838 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,839 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,840 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,840 - sqlalchemy.engine.Engine - INFO - [cached since 0.2082s ago] ('4fd25041-42f5-4b52-8a33-c023b9302849', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 11, 0, 3, 839246), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 840245), datetime.datetime(2025, 4, 19, 11, 0, 3, 840245), 0)
2025-04-19 11:00:03,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,845 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: affd9dad-49bd-47d4-a0eb-bb70642de655
2025-04-19 11:00:03,845 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,846 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,846 - sqlalchemy.engine.Engine - INFO - [cached since 0.1513s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 11:00:03,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,846 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,847 - sqlalchemy.engine.Engine - INFO - [cached since 0.1952s ago] ('affd9dad-49bd-47d4-a0eb-bb70642de655',)
2025-04-19 11:00:03,847 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: aaeb5784-4124-49b3-9c2b-4c69d5085dce
2025-04-19 11:00:03,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,848 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,848 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,848 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,848 - sqlalchemy.engine.Engine - INFO - [cached since 0.1919s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 848244), 'affd9dad-49bd-47d4-a0eb-bb70642de655')
2025-04-19 11:00:03,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,849 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,849 - services.execution.handlers.foundation - INFO - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 打印: ['aaeb5784-4124-49b3-9c2b-4c69d5085dce']
2025-04-19 11:00:03,849 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,850 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,850 - sqlalchemy.engine.Engine - INFO - [cached since 0.1533s ago] ('c7118576-75da-48da-9575-7ec495fbbe54', 1, '{"success": true, "message": "打印成功", "output": {"message": ["aaeb5784-4124-49b3-9c2b-4c69d5085dce"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 11, 0, 3, 850239), datetime.datetime(2025, 4, 19, 11, 0, 3, 850239), 0)
2025-04-19 11:00:03,850 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,857 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,857 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,858 - sqlalchemy.engine.Engine - INFO - [cached since 0.1632s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 11:00:03,858 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ba19063c-6a94-4204-b181-ae42457f9779
2025-04-19 11:00:03,858 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,858 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4fd25041-42f5-4b52-8a33-c023b9302849
2025-04-19 11:00:03,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,859 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,859 - sqlalchemy.engine.Engine - INFO - [cached since 0.2073s ago] ('4fd25041-42f5-4b52-8a33-c023b9302849',)
2025-04-19 11:00:03,859 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,859 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,859 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,860 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,860 - services.execution.handlers.foundation - INFO - 任务 ba19063c-6a94-4204-b181-ae42457f9779 打印: ['ba19063c-6a94-4204-b181-ae42457f9779']
2025-04-19 11:00:03,860 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,861 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,861 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,861 - sqlalchemy.engine.Engine - INFO - [cached since 0.205s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 861246), '4fd25041-42f5-4b52-8a33-c023b9302849')
2025-04-19 11:00:03,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,862 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,862 - sqlalchemy.engine.Engine - INFO - [cached since 0.23s ago] ('ec842c32-65d3-45ed-9996-e8077e8131a5', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 11, 0, 3, 859244), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 862237), datetime.datetime(2025, 4, 19, 11, 0, 3, 862237), 0)
2025-04-19 11:00:03,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,863 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,863 - sqlalchemy.engine.Engine - INFO - [cached since 0.1663s ago] ('2a2a0efa-07a4-4646-a27e-ca4badb2e622', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ba19063c-6a94-4204-b181-ae42457f9779"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 11, 0, 3, 863251), datetime.datetime(2025, 4, 19, 11, 0, 3, 863251), 0)
2025-04-19 11:00:03,863 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,863 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,863 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,864 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,865 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,865 - sqlalchemy.engine.Engine - INFO - [cached since 0.2131s ago] ('cbe68dc4-8dea-451b-8f8d-7e27c2615af4',)
2025-04-19 11:00:03,865 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,865 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,866 - sqlalchemy.engine.Engine - INFO - [cached since 0.171s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 11:00:03,866 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,866 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,866 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,866 - sqlalchemy.engine.Engine - INFO - [cached since 0.1548s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 866244), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 866244), 'cbe68dc4-8dea-451b-8f8d-7e27c2615af4')
2025-04-19 11:00:03,867 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80
2025-04-19 11:00:03,867 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,867 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,868 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,868 - services.execution.handlers.foundation - INFO - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 打印: ['bdbb2c58-e8f5-4916-8457-d80bbf4c8a80']
2025-04-19 11:00:03,868 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,868 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,868 - sqlalchemy.engine.Engine - INFO - [cached since 0.172s ago] ('bdfc4cef-7dcd-47d5-a756-36a1e27e5639', 1, '{"success": true, "message": "打印成功", "output": {"message": ["bdbb2c58-e8f5-4916-8457-d80bbf4c8a80"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 11, 0, 3, 868255), datetime.datetime(2025, 4, 19, 11, 0, 3, 868255), 0)
2025-04-19 11:00:03,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,870 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,870 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,870 - sqlalchemy.engine.Engine - INFO - [cached since 0.1758s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 11:00:03,871 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: dd48f08e-fa29-4272-84d8-18935eecb64d
2025-04-19 11:00:03,871 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,871 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,871 - services.execution.handlers.foundation - INFO - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 打印: ['dd48f08e-fa29-4272-84d8-18935eecb64d']
2025-04-19 11:00:03,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,872 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,872 - sqlalchemy.engine.Engine - INFO - [cached since 0.1755s ago] ('a2e50645-20e0-4d6b-b826-96ec2d9c725b', 1, '{"success": true, "message": "打印成功", "output": {"message": ["dd48f08e-fa29-4272-84d8-18935eecb64d"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 11, 0, 3, 872250), datetime.datetime(2025, 4, 19, 11, 0, 3, 872250), 0)
2025-04-19 11:00:03,872 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,883 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,884 - sqlalchemy.engine.Engine - INFO - [cached since 0.232s ago] ('939b2d6c-38f5-4d6b-98ed-ed889da74796',)
2025-04-19 11:00:03,884 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: ec842c32-65d3-45ed-9996-e8077e8131a5
2025-04-19 11:00:03,884 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,885 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,885 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,885 - sqlalchemy.engine.Engine - INFO - [cached since 0.1737s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 885237), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 885237), '939b2d6c-38f5-4d6b-98ed-ed889da74796')
2025-04-19 11:00:03,886 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,886 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,886 - sqlalchemy.engine.Engine - INFO - [cached since 0.2346s ago] ('ec842c32-65d3-45ed-9996-e8077e8131a5',)
2025-04-19 11:00:03,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,888 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,888 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,888 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,888 - sqlalchemy.engine.Engine - INFO - [cached since 0.2318s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 888240), 'ec842c32-65d3-45ed-9996-e8077e8131a5')
2025-04-19 11:00:03,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,889 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,889 - sqlalchemy.engine.Engine - INFO - [cached since 0.1926s ago] ('90812be8-7466-439d-86da-e838211fd429', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["aaeb5784-4124-49b3-9c2b-4c69d5085dce"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'aaeb5784-4124-49b3-9c2b-4c69d5085dce', datetime.datetime(2025, 4, 19, 11, 0, 3, 889238), datetime.datetime(2025, 4, 19, 11, 0, 3, 889238), 0)
2025-04-19 11:00:03,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,889 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,890 - sqlalchemy.engine.Engine - INFO - [cached since 0.238s ago] ('affd9dad-49bd-47d4-a0eb-bb70642de655',)
2025-04-19 11:00:03,890 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,890 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,890 - sqlalchemy.engine.Engine - INFO - [cached since 0.2386s ago] ('4fd25041-42f5-4b52-8a33-c023b9302849',)
2025-04-19 11:00:03,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,891 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,891 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,891 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,891 - sqlalchemy.engine.Engine - INFO - [cached since 0.1798s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 891246), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 891246), 'affd9dad-49bd-47d4-a0eb-bb70642de655')
2025-04-19 11:00:03,892 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,892 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,892 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,893 - sqlalchemy.engine.Engine - INFO - [cached since 0.1809s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 892244), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 892244), '4fd25041-42f5-4b52-8a33-c023b9302849')
2025-04-19 11:00:03,893 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,893 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,895 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,895 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,895 - sqlalchemy.engine.Engine - INFO - [cached since 0.199s ago] ('7ef67911-4b36-42fb-8840-9df69dd42e6f', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ba19063c-6a94-4204-b181-ae42457f9779"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ba19063c-6a94-4204-b181-ae42457f9779', datetime.datetime(2025, 4, 19, 11, 0, 3, 895237), datetime.datetime(2025, 4, 19, 11, 0, 3, 895237), 0)
2025-04-19 11:00:03,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,904 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,904 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:03,905 - sqlalchemy.engine.Engine - INFO - [cached since 0.2101s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 11:00:03,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,905 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,905 - sqlalchemy.engine.Engine - INFO - [cached since 0.2536s ago] ('48ec7a86-c846-49a9-b0c0-7d7c8b04da42',)
2025-04-19 11:00:03,905 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: eb99d8e7-9568-40dd-866b-f4bd259517a7
2025-04-19 11:00:03,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,906 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,906 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,906 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,906 - sqlalchemy.engine.Engine - INFO - [cached since 0.1948s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 906245), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 906245), '48ec7a86-c846-49a9-b0c0-7d7c8b04da42')
2025-04-19 11:00:03,907 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:03,907 - services.execution.handlers.foundation - INFO - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 打印: ['eb99d8e7-9568-40dd-866b-f4bd259517a7']
2025-04-19 11:00:03,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,908 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,908 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,908 - sqlalchemy.engine.Engine - INFO - [cached since 0.2114s ago] ('7e6eb89c-49a5-4fbc-92a4-a9665d433d10', 1, '{"success": true, "message": "打印成功", "output": {"message": ["eb99d8e7-9568-40dd-866b-f4bd259517a7"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 11, 0, 3, 908252), datetime.datetime(2025, 4, 19, 11, 0, 3, 908252), 0)
2025-04-19 11:00:03,908 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,918 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,918 - sqlalchemy.engine.Engine - INFO - [cached since 0.2218s ago] ('77dde327-ef8c-4732-84e6-07c3ef55b69f', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["bdbb2c58-e8f5-4916-8457-d80bbf4c8a80"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80', datetime.datetime(2025, 4, 19, 11, 0, 3, 918264), datetime.datetime(2025, 4, 19, 11, 0, 3, 918264), 0)
2025-04-19 11:00:03,919 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,919 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,919 - sqlalchemy.engine.Engine - INFO - [cached since 0.2678s ago] ('e16fd8eb-eb26-4755-beca-5e6c104db74b',)
2025-04-19 11:00:03,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,920 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,920 - sqlalchemy.engine.Engine - INFO - [cached since 0.2234s ago] ('888bd0aa-7ebb-46a6-bb7e-bc71f52af19d', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["dd48f08e-fa29-4272-84d8-18935eecb64d"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dd48f08e-fa29-4272-84d8-18935eecb64d', datetime.datetime(2025, 4, 19, 11, 0, 3, 920252), datetime.datetime(2025, 4, 19, 11, 0, 3, 920252), 0)
2025-04-19 11:00:03,920 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,921 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,921 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,921 - sqlalchemy.engine.Engine - INFO - [cached since 0.2094s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 921251), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 921251), 'e16fd8eb-eb26-4755-beca-5e6c104db74b')
2025-04-19 11:00:03,921 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,922 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,922 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,923 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,924 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,924 - sqlalchemy.engine.Engine - INFO - [cached since 0.1644s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 923262), '任务执行成功', 1000, 151, datetime.datetime(2025, 4, 19, 11, 0, 3, 924253), 'aaeb5784-4124-49b3-9c2b-4c69d5085dce')
2025-04-19 11:00:03,924 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,924 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,924 - sqlalchemy.engine.Engine - INFO - [cached since 0.2727s ago] ('ec842c32-65d3-45ed-9996-e8077e8131a5',)
2025-04-19 11:00:03,925 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:03,925 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,925 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,925 - sqlalchemy.engine.Engine - INFO - [cached since 0.2137s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 925251), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 925251), 'ec842c32-65d3-45ed-9996-e8077e8131a5')
2025-04-19 11:00:03,926 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,926 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,932 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,933 - sqlalchemy.engine.Engine - INFO - [cached since 0.281s ago] ('1afe1bbf-2de5-4695-8d45-93f8a3a217c6',)
2025-04-19 11:00:03,934 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,935 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,935 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,935 - sqlalchemy.engine.Engine - INFO - [cached since 0.2231s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 935173), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 935173), '1afe1bbf-2de5-4695-8d45-93f8a3a217c6')
2025-04-19 11:00:03,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: aaeb5784-4124-49b3-9c2b-4c69d5085dce, 结果: True
2025-04-19 11:00:03,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 优先级: 1
2025-04-19 11:00:03,941 - services.execution.task_executor - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 设置超时时间: 3600秒
2025-04-19 11:00:03,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,941 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,941 - sqlalchemy.engine.Engine - INFO - [cached since 0.2898s ago] ('bb873cca-0bfc-4253-af14-8ecc1c6ecf75',)
2025-04-19 11:00:03,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,942 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,942 - sqlalchemy.engine.Engine - INFO - [cached since 0.1831s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 940230), '任务执行成功', 1000, 161, datetime.datetime(2025, 4, 19, 11, 0, 3, 942332), 'ba19063c-6a94-4204-b181-ae42457f9779')
2025-04-19 11:00:03,943 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,943 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,943 - sqlalchemy.engine.Engine - INFO - [cached since 0.3331s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 11:00:03,943 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,944 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,944 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,944 - sqlalchemy.engine.Engine - INFO - [cached since 0.2323s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 944369), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 944369), 'bb873cca-0bfc-4253-af14-8ecc1c6ecf75')
2025-04-19 11:00:03,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,945 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:03,945 - sqlalchemy.engine.Engine - INFO - [cached since 0.2482s ago] ('7220329e-3a8e-4134-b93c-79a340947770', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["eb99d8e7-9568-40dd-866b-f4bd259517a7"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'eb99d8e7-9568-40dd-866b-f4bd259517a7', datetime.datetime(2025, 4, 19, 11, 0, 3, 944369), datetime.datetime(2025, 4, 19, 11, 0, 3, 944369), 0)
2025-04-19 11:00:03,945 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,946 - sqlalchemy.engine.Engine - INFO - [cached since 0.3332s ago] ('af726d2d-b55d-4f33-9e98-6f992c48e8f5',)
2025-04-19 11:00:03,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,947 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,948 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,948 - sqlalchemy.engine.Engine - INFO - [cached since 0.3306s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 948333), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6')
2025-04-19 11:00:03,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,948 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,949 - sqlalchemy.engine.Engine - INFO - [cached since 0.1892s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 947239), '任务执行成功', 1000, 161, datetime.datetime(2025, 4, 19, 11, 0, 3, 948333), 'bdbb2c58-e8f5-4916-8457-d80bbf4c8a80')
2025-04-19 11:00:03,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: ba19063c-6a94-4204-b181-ae42457f9779, 结果: True
2025-04-19 11:00:03,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 优先级: 1
2025-04-19 11:00:03,955 - services.execution.task_executor - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 设置超时时间: 3600秒
2025-04-19 11:00:03,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,956 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,956 - sqlalchemy.engine.Engine - INFO - [cached since 0.3459s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 11:00:03,957 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 11:00:03,957 - sqlalchemy.engine.Engine - INFO - [cached since 0.3445s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 11:00:03,957 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,958 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,958 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,959 - sqlalchemy.engine.Engine - INFO - [cached since 0.3412s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 11, 0, 3, 958240), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')
2025-04-19 11:00:03,959 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,959 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: bdbb2c58-e8f5-4916-8457-d80bbf4c8a80, 结果: True
2025-04-19 11:00:03,966 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,966 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,966 - sqlalchemy.engine.Engine - INFO - [cached since 0.334s ago] ('0100a26b-1a91-4876-951e-920fa7071686', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 11, 0, 3, 959230), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 966230), datetime.datetime(2025, 4, 19, 11, 0, 3, 966230), 0)
2025-04-19 11:00:03,966 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,967 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,968 - sqlalchemy.engine.Engine - INFO - [cached since 0.3159s ago] ('165afbc9-cd8f-49f4-baa1-829e6ca04a55',)
2025-04-19 11:00:03,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,968 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,969 - sqlalchemy.engine.Engine - INFO - [cached since 0.2096s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 962237), '任务执行成功', 1000, 167, datetime.datetime(2025, 4, 19, 11, 0, 3, 968230), 'dd48f08e-fa29-4272-84d8-18935eecb64d')
2025-04-19 11:00:03,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,970 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,970 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,970 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,970 - sqlalchemy.engine.Engine - INFO - [cached since 0.2585s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 970229), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 3, 970229), '165afbc9-cd8f-49f4-baa1-829e6ca04a55')
2025-04-19 11:00:03,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,971 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 11:00:03,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,972 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,972 - sqlalchemy.engine.Engine - INFO - [cached since 0.3399s ago] ('2c4da6af-cfda-4057-9d0b-82541fa1f276', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 11, 0, 3, 971229), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 972231), datetime.datetime(2025, 4, 19, 11, 0, 3, 972231), 0)
2025-04-19 11:00:03,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,975 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,976 - sqlalchemy.engine.Engine - INFO - [cached since 0.324s ago] ('0100a26b-1a91-4876-951e-920fa7071686',)
2025-04-19 11:00:03,976 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,979 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,979 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,979 - sqlalchemy.engine.Engine - INFO - [cached since 0.3228s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 979229), '0100a26b-1a91-4876-951e-920fa7071686')
2025-04-19 11:00:03,980 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: dd48f08e-fa29-4272-84d8-18935eecb64d, 结果: True
2025-04-19 11:00:03,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,985 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:03,985 - sqlalchemy.engine.Engine - INFO - [cached since 0.2256s ago] (datetime.datetime(2025, 4, 19, 11, 0, 3, 980231), '任务执行成功', 1000, 176, datetime.datetime(2025, 4, 19, 11, 0, 3, 985237), 'eb99d8e7-9568-40dd-866b-f4bd259517a7')
2025-04-19 11:00:03,986 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,987 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,987 - sqlalchemy.engine.Engine - INFO - [cached since 0.3352s ago] ('2c4da6af-cfda-4057-9d0b-82541fa1f276',)
2025-04-19 11:00:03,987 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:03,988 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:03,988 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:03,988 - sqlalchemy.engine.Engine - INFO - [cached since 0.3315s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 3, 988231), '2c4da6af-cfda-4057-9d0b-82541fa1f276')
2025-04-19 11:00:03,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,989 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,989 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,989 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,990 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,990 - sqlalchemy.engine.Engine - INFO - [cached since 0.3579s ago] ('6f5c78d1-cdc7-4b43-999d-9c4190702ea0', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 11, 0, 3, 989229), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 990229), datetime.datetime(2025, 4, 19, 11, 0, 3, 990229), 0)
2025-04-19 11:00:03,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:03,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: eb99d8e7-9568-40dd-866b-f4bd259517a7, 结果: True
2025-04-19 11:00:03,998 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 11:00:03,998 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 11:00:03,998 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 11:00:03,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:03,999 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 11:00:03,999 - sqlalchemy.engine.Engine - INFO - [cached since 0.3673s ago] ('887f4daa-d5ad-4a35-b2af-b2eeb3285326', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 11, 0, 3, 998250), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 11, 0, 3, 999250), datetime.datetime(2025, 4, 19, 11, 0, 3, 999250), 0)
2025-04-19 11:00:04,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,003 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 6f5c78d1-cdc7-4b43-999d-9c4190702ea0
2025-04-19 11:00:04,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,004 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,004 - sqlalchemy.engine.Engine - INFO - [cached since 0.3524s ago] ('6f5c78d1-cdc7-4b43-999d-9c4190702ea0',)
2025-04-19 11:00:04,005 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:04,005 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:04,005 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,006 - sqlalchemy.engine.Engine - INFO - [cached since 0.3496s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 4, 5340), '6f5c78d1-cdc7-4b43-999d-9c4190702ea0')
2025-04-19 11:00:04,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,009 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 887f4daa-d5ad-4a35-b2af-b2eeb3285326
2025-04-19 11:00:04,009 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,010 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,010 - sqlalchemy.engine.Engine - INFO - [cached since 0.3585s ago] ('887f4daa-d5ad-4a35-b2af-b2eeb3285326',)
2025-04-19 11:00:04,010 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:04,011 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:04,011 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,011 - sqlalchemy.engine.Engine - INFO - [cached since 0.355s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 11, 0, 4, 11445), '887f4daa-d5ad-4a35-b2af-b2eeb3285326')
2025-04-19 11:00:04,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,016 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:04,016 - sqlalchemy.engine.Engine - INFO - [cached since 0.322s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 11:00:04,017 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6
2025-04-19 11:00:04,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,018 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:04,018 - services.execution.handlers.foundation - INFO - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 打印: ['f8e0d6d2-7851-48af-8a61-2129bbc6d7c6']
2025-04-19 11:00:04,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,019 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:04,019 - sqlalchemy.engine.Engine - INFO - [cached since 0.323s ago] ('447c8fb3-0568-4b1e-97e9-17545fb47ff9', 1, '{"success": true, "message": "打印成功", "output": {"message": ["f8e0d6d2-7851-48af-8a61-2129bbc6d7c6"]}}', 1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 11, 0, 4, 19483), datetime.datetime(2025, 4, 19, 11, 0, 4, 19483), 0)
2025-04-19 11:00:04,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,020 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 11:00:04,020 - sqlalchemy.engine.Engine - INFO - [cached since 0.326s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 11:00:04,021 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,021 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ff8fbdc2-670a-443f-81f5-d0790d7dc2af
2025-04-19 11:00:04,021 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,021 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 11:00:04,022 - services.execution.handlers.foundation - INFO - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 打印: ['ff8fbdc2-670a-443f-81f5-d0790d7dc2af']
2025-04-19 11:00:04,022 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,022 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:04,022 - sqlalchemy.engine.Engine - INFO - [cached since 0.326s ago] ('68c3545e-acdb-4b83-984f-e7d71b00f842', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ff8fbdc2-670a-443f-81f5-d0790d7dc2af"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 11, 0, 4, 22476), datetime.datetime(2025, 4, 19, 11, 0, 4, 22476), 0)
2025-04-19 11:00:04,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,026 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,026 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,026 - sqlalchemy.engine.Engine - INFO - [cached since 0.376s ago] ('6f5c78d1-cdc7-4b43-999d-9c4190702ea0',)
2025-04-19 11:00:04,028 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:04,028 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:04,028 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,029 - sqlalchemy.engine.Engine - INFO - [cached since 0.317s ago] (datetime.datetime(2025, 4, 19, 11, 0, 4, 28383), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 4, 28383), '6f5c78d1-cdc7-4b43-999d-9c4190702ea0')
2025-04-19 11:00:04,029 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,033 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,033 - sqlalchemy.engine.Engine - INFO - [cached since 0.3814s ago] ('887f4daa-d5ad-4a35-b2af-b2eeb3285326',)
2025-04-19 11:00:04,033 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 11:00:04,033 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 11:00:04,034 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,034 - sqlalchemy.engine.Engine - INFO - [cached since 0.3228s ago] (datetime.datetime(2025, 4, 19, 11, 0, 4, 34656), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 4, 34656), '887f4daa-d5ad-4a35-b2af-b2eeb3285326')
2025-04-19 11:00:04,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,037 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:04,037 - sqlalchemy.engine.Engine - INFO - [cached since 0.3411s ago] ('94a64e4b-a2f5-4593-a862-f17054cff30b', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["f8e0d6d2-7851-48af-8a61-2129bbc6d7c6"]}}]}}', -1, 'af726d2d-b55d-4f33-9e98-6f992c48e8f5', 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6', datetime.datetime(2025, 4, 19, 11, 0, 4, 37668), datetime.datetime(2025, 4, 19, 11, 0, 4, 37668), 0)
2025-04-19 11:00:04,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,042 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 11:00:04,042 - sqlalchemy.engine.Engine - INFO - [cached since 0.3461s ago] ('40a82db4-cae3-49c5-bec0-f36e67379780', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ff8fbdc2-670a-443f-81f5-d0790d7dc2af"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af', datetime.datetime(2025, 4, 19, 11, 0, 4, 42665), datetime.datetime(2025, 4, 19, 11, 0, 4, 42665), 0)
2025-04-19 11:00:04,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,050 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,050 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,051 - sqlalchemy.engine.Engine - INFO - [cached since 0.3994s ago] ('0100a26b-1a91-4876-951e-920fa7071686',)
2025-04-19 11:00:04,052 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:04,052 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:04,053 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,053 - sqlalchemy.engine.Engine - INFO - [cached since 0.3414s ago] (datetime.datetime(2025, 4, 19, 11, 0, 4, 52675), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 4, 52675), '0100a26b-1a91-4876-951e-920fa7071686')
2025-04-19 11:00:04,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,055 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,055 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,055 - sqlalchemy.engine.Engine - INFO - [cached since 0.4039s ago] ('2c4da6af-cfda-4057-9d0b-82541fa1f276',)
2025-04-19 11:00:04,055 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 11:00:04,056 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 11:00:04,056 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 11:00:04,056 - sqlalchemy.engine.Engine - INFO - [cached since 0.3449s ago] (datetime.datetime(2025, 4, 19, 11, 0, 4, 56912), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 11, 0, 4, 56912), '2c4da6af-cfda-4057-9d0b-82541fa1f276')
2025-04-19 11:00:04,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,061 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:04,061 - sqlalchemy.engine.Engine - INFO - [cached since 0.3016s ago] (datetime.datetime(2025, 4, 19, 11, 0, 4, 60235), '任务执行成功', 1000, 112, datetime.datetime(2025, 4, 19, 11, 0, 4, 61435), 'f8e0d6d2-7851-48af-8a61-2129bbc6d7c6')
2025-04-19 11:00:04,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,066 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:00:04,068 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 11:00:04,068 - sqlalchemy.engine.Engine - INFO - [cached since 0.3086s ago] (datetime.datetime(2025, 4, 19, 11, 0, 4, 66303), '任务执行成功', 1000, 108, datetime.datetime(2025, 4, 19, 11, 0, 4, 68343), 'ff8fbdc2-670a-443f-81f5-d0790d7dc2af')
2025-04-19 11:00:04,068 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:00:04,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: f8e0d6d2-7851-48af-8a61-2129bbc6d7c6, 结果: True
2025-04-19 11:00:04,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: ff8fbdc2-670a-443f-81f5-d0790d7dc2af, 结果: True
2025-04-19 11:01:03,575 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:01:03,576 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:01:03,576 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 10, 1, 3, 575780))
2025-04-19 11:01:03,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:01:18,580 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:01:18,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:01:18,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:01:18,580 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:01:18,581 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:01:18,581 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:01:18,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:01:18,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:01:18,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:01:18,582 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:01:18,582 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:01:18,582 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:01:18,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:01:18,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:01:18,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:01:18,583 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:01:18,583 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:01:18,583 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:01:18,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:01:18,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:01:18,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:01:18,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:01:18,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:01:18,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:01:18,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:01:18,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:01:18,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:01:18,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:01:18,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:01:18,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:02:03,579 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:02:03,580 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:02:03,580 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 10, 2, 3, 573340))
2025-04-19 11:02:03,583 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:02:33,570 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:02:33,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:02:33,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:02:33,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:02:33,571 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:02:33,571 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:02:33,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:02:33,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:02:33,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:02:33,572 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:02:33,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:02:33,572 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:02:33,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:02:33,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:02:33,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:02:33,572 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:02:33,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:02:33,574 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:02:33,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:02:33,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:02:33,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:02:33,574 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:02:33,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:02:33,574 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:02:33,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:02:33,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:02:33,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:02:33,575 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:02:33,575 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:02:33,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:03:03,605 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:03,606 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:03:03,606 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 10, 3, 3, 601389))
2025-04-19 11:03:03,608 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:33,643 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:03:33,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:03:33,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:03:33,644 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:03:33,644 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:03:33,644 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:03:33,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:03:33,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:03:33,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:03:33,645 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:03:33,645 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:03:33,645 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:03:33,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:03:33,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:03:33,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:03:33,645 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:03:33,645 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:03:33,645 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:03:33,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:03:33,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:03:33,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:03:33,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:03:33,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:03:33,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:03:33,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:03:33,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:03:33,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:03:33,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:03:33,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:03:33,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:03:33,754 - root - INFO - 应用程序关闭中...
2025-04-19 11:03:33,754 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 11:03:33,756 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 11:03:33,756 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 11:03:33,756 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 11:03:33,756 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 11:03:33,756 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 11:03:33,756 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 11:03:33,756 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 11:03:33,758 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 11:03:33,758 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 11:03:33,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:03:33,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:03:33,758 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:03:33,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:03:33,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:03:33,758 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 11:03:33,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:03:33,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:03:33,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 11:03:33,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:03:33,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:03:33,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 11:03:33,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:03:33,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:03:33,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 11:03:33,759 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 11:03:33,759 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 11:03:33,759 - root - INFO - 增强版任务调度器已停止
2025-04-19 11:03:33,759 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 11:03:33,760 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 11:03:33,760 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 11:03:33,760 - data.session - INFO - 数据库连接已关闭
2025-04-19 11:03:34,958 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:03:34,959 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:03:35,030 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 11:03:35,081 - data.session - INFO - 正在初始化数据库...
2025-04-19 11:03:35,100 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 11:03:35,122 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:03:35,124 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,124 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:03:35,124 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,125 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:03:35,125 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:35,126 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 11:03:35,126 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,127 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 11:03:35,128 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,129 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 11:03:35,129 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,130 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 11:03:35,130 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,132 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 11:03:35,132 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,133 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 11:03:35,133 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,135 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 11:03:35,135 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,136 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 11:03:35,136 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,137 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 11:03:35,138 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,139 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 11:03:35,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,140 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 11:03:35,140 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:35,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:35,141 - data.session - INFO - 数据库表初始化完成
2025-04-19 11:03:35,526 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 11:03:35,527 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 11:03:35,527 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 11:03:35,527 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 11:03:35,528 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 11:03:35,528 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 11:03:35,528 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 11:03:35,529 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 11:03:35,529 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 11:03:35,529 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 11:03:35,529 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:03:35,529 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 11:03:35,529 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 11:03:35,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:03:35,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:03:35,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:03:35,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:03:35,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:03:35,531 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 11:03:35,532 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 11:03:35,533 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:03:35,534 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:03:35,534 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:03:35,535 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:03:35,535 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:03:35,535 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:03:35,536 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:03:35,537 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:35,545 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 11:03:35,546 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1, 1)
2025-04-19 11:03:35,547 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 11:03:35,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:35,548 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 11:03:35,549 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 11:03:35,549 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 11:03:35,549 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:35,551 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 11:03:35,551 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1000, 2000, 2001)
2025-04-19 11:03:35,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:35,572 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:03:35,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:35,574 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:03:35,574 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1001, datetime.datetime(2025, 4, 19, 10, 3, 35, 549238))
2025-04-19 11:03:35,574 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载任务，合并后共 12 个任务
2025-04-19 11:03:35,575 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 11:03:35,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:35,576 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:35,577 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,577 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 11:03:35,578 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 状态为 1000，不需要恢复
2025-04-19 11:03:35,579 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,579 - sqlalchemy.engine.Engine - INFO - [cached since 0.00202s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 11:03:35,580 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 状态为 1000，不需要恢复
2025-04-19 11:03:35,580 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,580 - sqlalchemy.engine.Engine - INFO - [cached since 0.003472s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 11:03:35,581 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 状态为 1000，不需要恢复
2025-04-19 11:03:35,582 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,582 - sqlalchemy.engine.Engine - INFO - [cached since 0.005089s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 11:03:35,583 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 状态为 1000，不需要恢复
2025-04-19 11:03:35,583 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,583 - sqlalchemy.engine.Engine - INFO - [cached since 0.00619s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 11:03:35,584 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 状态为 1000，不需要恢复
2025-04-19 11:03:35,584 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,584 - sqlalchemy.engine.Engine - INFO - [cached since 0.007508s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 11:03:35,586 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 状态为 1000，不需要恢复
2025-04-19 11:03:35,586 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,586 - sqlalchemy.engine.Engine - INFO - [cached since 0.009524s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 11:03:35,587 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 状态为 1000，不需要恢复
2025-04-19 11:03:35,587 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,588 - sqlalchemy.engine.Engine - INFO - [cached since 0.01151s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 11:03:35,588 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 状态为 1000，不需要恢复
2025-04-19 11:03:35,589 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,589 - sqlalchemy.engine.Engine - INFO - [cached since 0.01258s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 11:03:35,590 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 状态为 1000，不需要恢复
2025-04-19 11:03:35,590 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,590 - sqlalchemy.engine.Engine - INFO - [cached since 0.01359s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 11:03:35,591 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 状态为 1000，不需要恢复
2025-04-19 11:03:35,591 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,591 - sqlalchemy.engine.Engine - INFO - [cached since 0.01464s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 11:03:35,592 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 状态为 1000，不需要恢复
2025-04-19 11:03:35,592 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:35,592 - sqlalchemy.engine.Engine - INFO - [cached since 0.01558s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 11:03:35,592 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 状态为 1000，不需要恢复
2025-04-19 11:03:35,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:35,593 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 12 个不需要恢复的任务
2025-04-19 11:03:35,593 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 11:03:35,593 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 11:03:35,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:03:35,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:03:35,596 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 11:03:35,596 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 11:03:35,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:03:35,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:03:35,596 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 11:03:35,596 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 11:03:35,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:03:35,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:03:35,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:03:35,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:03:35,599 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 11:03:35,599 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 11:03:35,599 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 11:03:35,599 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 11:03:35,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:03:35,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:03:36,466 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:03:36,467 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:03:36,526 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 11:03:36,595 - data.session - INFO - 正在初始化数据库...
2025-04-19 11:03:36,619 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 11:03:36,643 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:03:36,643 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,646 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:03:36,646 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,646 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:03:36,647 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,648 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:36,648 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 11:03:36,648 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,649 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 11:03:36,650 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,651 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 11:03:36,651 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,651 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 11:03:36,653 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,654 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 11:03:36,654 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,655 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 11:03:36,655 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,657 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 11:03:36,657 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,658 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 11:03:36,659 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,659 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 11:03:36,660 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,662 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 11:03:36,662 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,663 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 11:03:36,663 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:03:36,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:36,667 - data.session - INFO - 数据库表初始化完成
2025-04-19 11:03:37,028 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 11:03:37,028 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 11:03:37,028 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 11:03:37,029 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 11:03:37,029 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 11:03:37,029 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 11:03:37,029 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 11:03:37,029 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 11:03:37,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 11:03:37,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 11:03:37,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:03:37,030 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 11:03:37,030 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 11:03:37,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:03:37,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:03:37,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:03:37,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:03:37,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:03:37,033 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 11:03:37,033 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 11:03:37,050 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:03:37,051 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:03:37,051 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:03:37,052 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:03:37,052 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:03:37,053 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:03:37,053 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:03:37,054 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:37,062 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 11:03:37,063 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (1, 1)
2025-04-19 11:03:37,063 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 11:03:37,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:37,064 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 11:03:37,064 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 11:03:37,065 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 11:03:37,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:37,066 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 11:03:37,067 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1000, 2000, 2001)
2025-04-19 11:03:37,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:37,082 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:03:37,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:37,085 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:03:37,085 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1001, datetime.datetime(2025, 4, 19, 10, 3, 37, 65782))
2025-04-19 11:03:37,085 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载任务，合并后共 12 个任务
2025-04-19 11:03:37,086 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 11:03:37,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:37,087 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:03:37,088 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,088 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 11:03:37,089 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 状态为 1000，不需要恢复
2025-04-19 11:03:37,089 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,089 - sqlalchemy.engine.Engine - INFO - [cached since 0.001561s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 11:03:37,090 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 状态为 1000，不需要恢复
2025-04-19 11:03:37,090 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,090 - sqlalchemy.engine.Engine - INFO - [cached since 0.002502s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 11:03:37,091 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 状态为 1000，不需要恢复
2025-04-19 11:03:37,091 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,091 - sqlalchemy.engine.Engine - INFO - [cached since 0.003443s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 11:03:37,091 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 状态为 1000，不需要恢复
2025-04-19 11:03:37,092 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,092 - sqlalchemy.engine.Engine - INFO - [cached since 0.004339s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 11:03:37,092 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 状态为 1000，不需要恢复
2025-04-19 11:03:37,093 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,093 - sqlalchemy.engine.Engine - INFO - [cached since 0.005201s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 11:03:37,093 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 状态为 1000，不需要恢复
2025-04-19 11:03:37,093 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,095 - sqlalchemy.engine.Engine - INFO - [cached since 0.007869s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 11:03:37,096 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 状态为 1000，不需要恢复
2025-04-19 11:03:37,097 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,097 - sqlalchemy.engine.Engine - INFO - [cached since 0.009373s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 11:03:37,098 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 状态为 1000，不需要恢复
2025-04-19 11:03:37,098 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,098 - sqlalchemy.engine.Engine - INFO - [cached since 0.01088s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 11:03:37,099 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 状态为 1000，不需要恢复
2025-04-19 11:03:37,099 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,100 - sqlalchemy.engine.Engine - INFO - [cached since 0.01222s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 11:03:37,100 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 状态为 1000，不需要恢复
2025-04-19 11:03:37,101 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,101 - sqlalchemy.engine.Engine - INFO - [cached since 0.01332s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 11:03:37,101 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 状态为 1000，不需要恢复
2025-04-19 11:03:37,102 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:03:37,102 - sqlalchemy.engine.Engine - INFO - [cached since 0.01426s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 11:03:37,102 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 状态为 1000，不需要恢复
2025-04-19 11:03:37,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:03:37,103 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 12 个不需要恢复的任务
2025-04-19 11:03:37,103 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 11:03:37,103 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 11:04:37,059 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:04:37,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:04:37,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:04:37,061 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:04:37,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:04:37,062 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:04:37,062 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:04:37,062 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:04:37,062 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:04:37,062 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:04:37,062 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:04:37,063 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:04:37,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:04:37,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:04:37,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:04:37,063 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:04:37,063 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:04:37,063 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:04:37,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:04:37,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:04:37,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:04:37,064 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:04:37,064 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:04:37,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:04:37,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:04:37,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:04:37,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:04:37,065 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:04:37,065 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:04:37,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:04:37,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:37,106 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:04:37,106 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 19, 10, 4, 37, 105745))
2025-04-19 11:04:37,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:37,276 - root - INFO - 应用程序关闭中...
2025-04-19 11:04:37,277 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 11:04:37,277 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 11:04:37,277 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 11:04:37,277 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 11:04:37,277 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 11:04:37,277 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 11:04:37,278 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 11:04:37,278 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 11:04:37,278 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 11:04:37,278 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 11:04:37,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:04:37,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:04:37,279 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:04:37,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:04:37,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:04:37,279 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 11:04:37,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:04:37,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:04:37,279 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 11:04:37,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:04:37,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:04:37,280 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 11:04:37,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:04:37,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:04:37,280 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 11:04:37,280 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 11:04:37,280 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 11:04:37,280 - root - INFO - 增强版任务调度器已停止
2025-04-19 11:04:37,280 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 11:04:37,280 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 11:04:37,281 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 11:04:37,281 - data.session - INFO - 数据库连接已关闭
2025-04-19 11:04:38,324 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:04:38,324 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:04:38,406 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 11:04:38,452 - data.session - INFO - 正在初始化数据库...
2025-04-19 11:04:38,486 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 11:04:38,504 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:04:38,505 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,506 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:04:38,507 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,507 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:04:38,507 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,509 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:38,509 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 11:04:38,509 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,511 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 11:04:38,511 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,514 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 11:04:38,514 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,515 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 11:04:38,515 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,517 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 11:04:38,518 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,518 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 11:04:38,519 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,521 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 11:04:38,521 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,522 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 11:04:38,522 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,523 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 11:04:38,523 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,524 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 11:04:38,524 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,525 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 11:04:38,525 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:38,526 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:38,526 - data.session - INFO - 数据库表初始化完成
2025-04-19 11:04:38,871 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 11:04:38,872 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 11:04:38,872 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 11:04:38,872 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 11:04:38,872 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 11:04:38,873 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 11:04:38,873 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 11:04:38,873 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 11:04:38,873 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 11:04:38,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 11:04:38,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:04:38,874 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 11:04:38,874 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 11:04:38,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:04:38,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:04:38,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:04:38,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:04:38,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:04:38,876 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 11:04:38,876 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 11:04:38,877 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:04:38,878 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:04:38,878 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:04:38,879 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:04:38,879 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:04:38,879 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:04:38,879 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:04:38,880 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:38,888 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 11:04:38,889 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1, 1)
2025-04-19 11:04:38,889 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 11:04:38,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:38,890 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 11:04:38,890 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 11:04:38,891 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 11:04:38,891 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:38,892 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 11:04:38,893 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (1000, 2000, 2001)
2025-04-19 11:04:38,894 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:38,894 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:04:38,895 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:38,895 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:04:38,896 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1001, datetime.datetime(2025, 4, 19, 10, 4, 38, 891422))
2025-04-19 11:04:38,897 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载任务，合并后共 12 个任务
2025-04-19 11:04:38,897 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 11:04:38,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:38,898 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:38,898 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,898 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 11:04:38,900 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 状态为 1000，不需要恢复
2025-04-19 11:04:38,900 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,900 - sqlalchemy.engine.Engine - INFO - [cached since 0.001476s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 11:04:38,901 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 状态为 1000，不需要恢复
2025-04-19 11:04:38,901 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,901 - sqlalchemy.engine.Engine - INFO - [cached since 0.002554s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 11:04:38,902 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 状态为 1000，不需要恢复
2025-04-19 11:04:38,902 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,902 - sqlalchemy.engine.Engine - INFO - [cached since 0.003883s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 11:04:38,904 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 状态为 1000，不需要恢复
2025-04-19 11:04:38,904 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,904 - sqlalchemy.engine.Engine - INFO - [cached since 0.005749s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 11:04:38,905 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 状态为 1000，不需要恢复
2025-04-19 11:04:38,905 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,905 - sqlalchemy.engine.Engine - INFO - [cached since 0.006821s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 11:04:38,906 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 状态为 1000，不需要恢复
2025-04-19 11:04:38,906 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,906 - sqlalchemy.engine.Engine - INFO - [cached since 0.007871s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 11:04:38,907 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 状态为 1000，不需要恢复
2025-04-19 11:04:38,907 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,907 - sqlalchemy.engine.Engine - INFO - [cached since 0.008914s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 11:04:38,908 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 状态为 1000，不需要恢复
2025-04-19 11:04:38,908 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,908 - sqlalchemy.engine.Engine - INFO - [cached since 0.009924s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 11:04:38,909 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 状态为 1000，不需要恢复
2025-04-19 11:04:38,909 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,910 - sqlalchemy.engine.Engine - INFO - [cached since 0.01108s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 11:04:38,910 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 状态为 1000，不需要恢复
2025-04-19 11:04:38,910 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,911 - sqlalchemy.engine.Engine - INFO - [cached since 0.01212s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 11:04:38,911 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 状态为 1000，不需要恢复
2025-04-19 11:04:38,911 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:38,912 - sqlalchemy.engine.Engine - INFO - [cached since 0.01315s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 11:04:38,912 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 状态为 1000，不需要恢复
2025-04-19 11:04:38,912 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:38,913 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 12 个不需要恢复的任务
2025-04-19 11:04:38,913 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 11:04:38,913 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 11:04:47,973 - root - INFO - 应用程序关闭中...
2025-04-19 11:04:47,973 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 11:04:47,974 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 11:04:47,974 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 11:04:47,974 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 11:04:47,974 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 11:04:47,974 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 11:04:47,974 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 11:04:47,974 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 11:04:47,975 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 11:04:47,975 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 11:04:47,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:04:47,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:04:47,976 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:04:47,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:04:47,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:04:47,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 11:04:47,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:04:47,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:04:47,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 11:04:47,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:04:47,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:04:47,978 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 11:04:47,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:04:47,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:04:47,978 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 11:04:47,978 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 11:04:47,978 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 11:04:47,978 - root - INFO - 增强版任务调度器已停止
2025-04-19 11:04:47,978 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 11:04:47,979 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 11:04:47,979 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 11:04:47,979 - data.session - INFO - 数据库连接已关闭
2025-04-19 11:04:49,121 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:04:49,122 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:04:49,177 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 11:04:49,236 - data.session - INFO - 正在初始化数据库...
2025-04-19 11:04:49,259 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 11:04:49,283 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:04:49,284 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,284 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:04:49,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,286 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:04:49,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:49,288 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 11:04:49,288 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,290 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 11:04:49,290 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,292 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 11:04:49,293 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,295 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 11:04:49,296 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,297 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 11:04:49,298 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,300 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 11:04:49,300 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,302 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 11:04:49,303 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,304 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 11:04:49,305 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,307 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 11:04:49,308 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,309 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 11:04:49,310 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,313 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 11:04:49,314 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:49,315 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:49,315 - data.session - INFO - 数据库表初始化完成
2025-04-19 11:04:49,693 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 11:04:49,693 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 11:04:49,694 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 11:04:49,694 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 11:04:49,694 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 11:04:49,694 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 11:04:49,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 11:04:49,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 11:04:49,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 11:04:49,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 11:04:49,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:04:49,695 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 11:04:49,695 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 11:04:49,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:04:49,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:04:49,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:04:49,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:04:49,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:04:49,697 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 11:04:49,697 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 11:04:49,699 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:04:49,700 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:04:49,700 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:04:49,701 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:04:49,701 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:04:49,701 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:04:49,701 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:04:49,702 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:49,711 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 11:04:49,711 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (1, 1)
2025-04-19 11:04:49,712 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 11:04:49,712 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:49,713 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 11:04:49,713 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 11:04:49,714 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 11:04:49,714 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:49,716 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 11:04:49,716 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1000, 2000, 2001)
2025-04-19 11:04:49,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:49,733 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:04:49,734 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:49,734 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:04:49,735 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (1001, datetime.datetime(2025, 4, 19, 10, 4, 49, 714336))
2025-04-19 11:04:49,735 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载任务，合并后共 12 个任务
2025-04-19 11:04:49,735 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 11:04:49,735 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:49,736 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,736 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 11:04:49,737 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:49,738 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 状态为 1000，不需要恢复
2025-04-19 11:04:49,739 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,739 - sqlalchemy.engine.Engine - INFO - [cached since 0.002889s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 11:04:49,739 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 状态为 1000，不需要恢复
2025-04-19 11:04:49,740 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,740 - sqlalchemy.engine.Engine - INFO - [cached since 0.004108s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 11:04:49,741 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 状态为 1000，不需要恢复
2025-04-19 11:04:49,741 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,741 - sqlalchemy.engine.Engine - INFO - [cached since 0.005212s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 11:04:49,742 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 状态为 1000，不需要恢复
2025-04-19 11:04:49,742 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,743 - sqlalchemy.engine.Engine - INFO - [cached since 0.007471s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 11:04:49,746 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 状态为 1000，不需要恢复
2025-04-19 11:04:49,746 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,746 - sqlalchemy.engine.Engine - INFO - [cached since 0.009589s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 11:04:49,747 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 状态为 1000，不需要恢复
2025-04-19 11:04:49,747 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,748 - sqlalchemy.engine.Engine - INFO - [cached since 0.01155s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 11:04:49,749 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 状态为 1000，不需要恢复
2025-04-19 11:04:49,749 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,749 - sqlalchemy.engine.Engine - INFO - [cached since 0.01275s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 11:04:49,750 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 状态为 1000，不需要恢复
2025-04-19 11:04:49,750 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,750 - sqlalchemy.engine.Engine - INFO - [cached since 0.01398s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 11:04:49,751 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 状态为 1000，不需要恢复
2025-04-19 11:04:49,752 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,752 - sqlalchemy.engine.Engine - INFO - [cached since 0.01558s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 11:04:49,752 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 状态为 1000，不需要恢复
2025-04-19 11:04:49,753 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,753 - sqlalchemy.engine.Engine - INFO - [cached since 0.01667s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 11:04:49,753 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 状态为 1000，不需要恢复
2025-04-19 11:04:49,754 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:49,754 - sqlalchemy.engine.Engine - INFO - [cached since 0.01759s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 11:04:49,754 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 状态为 1000，不需要恢复
2025-04-19 11:04:49,754 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:49,755 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 12 个不需要恢复的任务
2025-04-19 11:04:49,755 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 11:04:49,755 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 11:04:50,741 - root - INFO - 应用程序关闭中...
2025-04-19 11:04:50,742 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 11:04:50,742 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 11:04:50,742 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 11:04:50,742 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 11:04:50,742 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 11:04:50,742 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 11:04:50,743 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 11:04:50,743 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 11:04:50,743 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 11:04:50,743 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 11:04:50,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:04:50,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:04:50,743 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:04:50,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:04:50,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:04:50,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 11:04:50,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:04:50,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:04:50,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 11:04:50,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:04:50,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:04:50,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 11:04:50,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:04:50,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:04:50,745 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 11:04:50,745 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 11:04:50,745 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 11:04:50,745 - root - INFO - 增强版任务调度器已停止
2025-04-19 11:04:50,745 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 11:04:50,745 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 11:04:50,745 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 11:04:50,746 - data.session - INFO - 数据库连接已关闭
2025-04-19 11:04:53,307 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:04:53,308 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:04:54,011 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:04:54,012 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:04:54,082 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 11:04:54,133 - data.session - INFO - 正在初始化数据库...
2025-04-19 11:04:54,172 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 11:04:54,173 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:04:54,174 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,174 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:04:54,174 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,175 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:04:54,175 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:54,175 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 11:04:54,176 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,177 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 11:04:54,177 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,179 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 11:04:54,179 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,180 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 11:04:54,180 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,181 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 11:04:54,181 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,183 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 11:04:54,183 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,183 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 11:04:54,184 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,184 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 11:04:54,184 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,185 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 11:04:54,185 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,186 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 11:04:54,186 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,187 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 11:04:54,187 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:04:54,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:54,189 - data.session - INFO - 数据库表初始化完成
2025-04-19 11:04:54,561 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 11:04:54,561 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 11:04:54,562 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 11:04:54,562 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 11:04:54,562 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 11:04:54,562 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 11:04:54,562 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 11:04:54,562 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 11:04:54,562 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 11:04:54,562 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 11:04:54,562 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:04:54,563 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 11:04:54,563 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 11:04:54,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:04:54,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:04:54,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:04:54,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:04:54,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:04:54,565 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 11:04:54,565 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 11:04:54,565 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:04:54,566 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:04:54,566 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:04:54,566 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:04:54,568 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:04:54,568 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:04:54,568 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:04:54,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:54,577 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 11:04:54,578 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (1, 1)
2025-04-19 11:04:54,579 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 11:04:54,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:54,579 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 11:04:54,580 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 11:04:54,580 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 11:04:54,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:54,583 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 11:04:54,583 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1000, 2000, 2001)
2025-04-19 11:04:54,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:54,584 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:04:54,585 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:54,585 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:04:54,585 - sqlalchemy.engine.Engine - INFO - [generated in 0.00018s] (1001, datetime.datetime(2025, 4, 19, 10, 4, 54, 581427))
2025-04-19 11:04:54,586 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:54,587 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载任务，合并后共 12 个任务
2025-04-19 11:04:54,587 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 11:04:54,587 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:04:54,588 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,588 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 11:04:54,589 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 状态为 1000，不需要恢复
2025-04-19 11:04:54,589 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,589 - sqlalchemy.engine.Engine - INFO - [cached since 0.001312s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 11:04:54,590 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 状态为 1000，不需要恢复
2025-04-19 11:04:54,590 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,590 - sqlalchemy.engine.Engine - INFO - [cached since 0.002358s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 11:04:54,592 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 状态为 1000，不需要恢复
2025-04-19 11:04:54,592 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,593 - sqlalchemy.engine.Engine - INFO - [cached since 0.005117s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 11:04:54,593 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 状态为 1000，不需要恢复
2025-04-19 11:04:54,594 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,594 - sqlalchemy.engine.Engine - INFO - [cached since 0.006217s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 11:04:54,594 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 状态为 1000，不需要恢复
2025-04-19 11:04:54,595 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,595 - sqlalchemy.engine.Engine - INFO - [cached since 0.007265s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 11:04:54,595 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 状态为 1000，不需要恢复
2025-04-19 11:04:54,596 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,596 - sqlalchemy.engine.Engine - INFO - [cached since 0.008289s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 11:04:54,596 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 状态为 1000，不需要恢复
2025-04-19 11:04:54,597 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,597 - sqlalchemy.engine.Engine - INFO - [cached since 0.009345s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 11:04:54,598 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 状态为 1000，不需要恢复
2025-04-19 11:04:54,598 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,598 - sqlalchemy.engine.Engine - INFO - [cached since 0.01085s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 11:04:54,599 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 状态为 1000，不需要恢复
2025-04-19 11:04:54,599 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,599 - sqlalchemy.engine.Engine - INFO - [cached since 0.01189s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 11:04:54,600 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 状态为 1000，不需要恢复
2025-04-19 11:04:54,600 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,600 - sqlalchemy.engine.Engine - INFO - [cached since 0.01297s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 11:04:54,602 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 状态为 1000，不需要恢复
2025-04-19 11:04:54,602 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:04:54,602 - sqlalchemy.engine.Engine - INFO - [cached since 0.01393s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 11:04:54,603 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 状态为 1000，不需要恢复
2025-04-19 11:04:54,603 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:04:54,603 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 12 个不需要恢复的任务
2025-04-19 11:04:54,603 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 11:04:54,603 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 11:05:18,951 - root - INFO - 应用程序关闭中...
2025-04-19 11:05:18,951 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 11:05:18,951 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 11:05:18,952 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 11:05:18,952 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 11:05:18,952 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 11:05:18,952 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 11:05:18,952 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 11:05:18,952 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 11:05:18,952 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 11:05:18,952 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 11:05:18,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:05:18,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:05:18,952 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:05:18,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:05:18,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:05:18,953 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 11:05:18,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:05:18,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:05:18,953 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 11:05:18,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:05:18,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:05:18,953 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 11:05:18,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:05:18,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:05:18,954 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 11:05:18,954 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 11:05:18,954 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 11:05:18,954 - root - INFO - 增强版任务调度器已停止
2025-04-19 11:05:18,954 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 11:05:18,955 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 11:05:18,955 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 11:05:18,955 - data.session - INFO - 数据库连接已关闭
2025-04-19 11:05:21,335 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:05:21,336 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:05:22,077 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:05:22,077 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:05:22,137 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 11:05:22,186 - data.session - INFO - 正在初始化数据库...
2025-04-19 11:05:22,221 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 11:05:22,247 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:05:22,248 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,248 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:05:22,249 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,249 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:05:22,249 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,250 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:05:22,250 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 11:05:22,250 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,252 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 11:05:22,252 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,253 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 11:05:22,253 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,254 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 11:05:22,254 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,255 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 11:05:22,255 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,255 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 11:05:22,255 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,256 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 11:05:22,256 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,257 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 11:05:22,257 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,258 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 11:05:22,258 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,259 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 11:05:22,259 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,259 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 11:05:22,260 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:05:22,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:05:22,262 - data.session - INFO - 数据库表初始化完成
2025-04-19 11:05:22,618 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 11:05:22,618 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 11:05:22,618 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 11:05:22,618 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 11:05:22,618 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 11:05:22,618 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 11:05:22,619 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 11:05:22,619 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 11:05:22,619 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 11:05:22,619 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 11:05:22,619 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:05:22,619 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 11:05:22,619 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 11:05:22,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:05:22,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:05:22,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:05:22,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:05:22,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:05:22,621 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 11:05:22,621 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 11:05:22,622 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:05:22,622 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:05:22,623 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:05:22,623 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:05:22,623 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:05:22,623 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:05:22,623 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:05:22,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:05:22,636 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 11:05:22,637 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (1, 1)
2025-04-19 11:05:22,638 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 11:05:22,638 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:05:22,638 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 11:05:22,639 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 11:05:22,639 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 11:05:22,641 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:05:22,643 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 11:05:22,643 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (1000, 2000, 2001)
2025-04-19 11:05:22,667 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:05:22,668 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:05:22,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:05:22,669 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:05:22,670 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1001, datetime.datetime(2025, 4, 19, 10, 5, 22, 639084))
2025-04-19 11:05:22,670 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载任务，合并后共 12 个任务
2025-04-19 11:05:22,670 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 11:05:22,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:05:22,672 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,672 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 11:05:22,673 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:05:22,673 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 状态为 1000，不需要恢复
2025-04-19 11:05:22,674 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,674 - sqlalchemy.engine.Engine - INFO - [cached since 0.001937s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 11:05:22,675 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 状态为 1000，不需要恢复
2025-04-19 11:05:22,675 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,675 - sqlalchemy.engine.Engine - INFO - [cached since 0.003106s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 11:05:22,676 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 状态为 1000，不需要恢复
2025-04-19 11:05:22,676 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,676 - sqlalchemy.engine.Engine - INFO - [cached since 0.004019s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 11:05:22,677 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 状态为 1000，不需要恢复
2025-04-19 11:05:22,677 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,677 - sqlalchemy.engine.Engine - INFO - [cached since 0.005088s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 11:05:22,678 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 状态为 1000，不需要恢复
2025-04-19 11:05:22,678 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,678 - sqlalchemy.engine.Engine - INFO - [cached since 0.006187s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 11:05:22,679 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 状态为 1000，不需要恢复
2025-04-19 11:05:22,679 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,679 - sqlalchemy.engine.Engine - INFO - [cached since 0.00778s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 11:05:22,680 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 状态为 1000，不需要恢复
2025-04-19 11:05:22,680 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,681 - sqlalchemy.engine.Engine - INFO - [cached since 0.009035s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 11:05:22,682 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 状态为 1000，不需要恢复
2025-04-19 11:05:22,683 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,684 - sqlalchemy.engine.Engine - INFO - [cached since 0.01201s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 11:05:22,684 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 状态为 1000，不需要恢复
2025-04-19 11:05:22,684 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,685 - sqlalchemy.engine.Engine - INFO - [cached since 0.01304s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 11:05:22,685 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 状态为 1000，不需要恢复
2025-04-19 11:05:22,685 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,686 - sqlalchemy.engine.Engine - INFO - [cached since 0.01404s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 11:05:22,686 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 状态为 1000，不需要恢复
2025-04-19 11:05:22,686 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:05:22,687 - sqlalchemy.engine.Engine - INFO - [cached since 0.01499s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 11:05:22,687 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 状态为 1000，不需要恢复
2025-04-19 11:05:22,687 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:05:22,688 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 12 个不需要恢复的任务
2025-04-19 11:05:22,688 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 11:05:22,688 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 11:06:22,693 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:06:22,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:06:22,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:06:22,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:06:22,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:06:22,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:06:22,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:06:22,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:06:22,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:06:22,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:06:22,695 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:06:22,695 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (1001, datetime.datetime(2025, 4, 19, 10, 6, 22, 693109))
2025-04-19 11:06:22,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:06:22,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:06:22,696 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:06:22,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:06:22,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:06:22,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:06:22,697 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:06:22,697 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:06:22,697 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:06:22,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:06:22,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:06:22,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:06:22,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:06:22,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:06:22,698 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:06:22,698 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:06:22,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:06:22,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:06:22,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:06:22,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:06:22,698 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:06:22,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:07:22,684 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:07:22,684 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:07:22,684 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 10, 7, 22, 682925))
2025-04-19 11:07:22,685 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:07:37,698 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:07:37,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:07:37,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:07:37,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:07:37,699 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:07:37,699 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:07:37,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:07:37,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:07:37,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:07:37,700 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:07:37,700 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:07:37,700 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:07:37,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:07:37,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:07:37,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:07:37,701 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:07:37,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:07:37,701 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:07:37,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:07:37,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:07:37,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:07:37,702 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:07:37,702 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:07:37,702 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:07:37,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:07:37,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:07:37,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:07:37,702 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:07:37,702 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:07:37,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:08:06,754 - root - INFO - 应用程序关闭中...
2025-04-19 11:08:06,754 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 11:08:06,754 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 11:08:06,755 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 11:08:06,755 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 11:08:06,755 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 11:08:06,755 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 11:08:06,756 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 11:08:06,756 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 11:08:06,756 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 11:08:06,756 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 11:08:06,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:08:06,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:08:06,757 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:08:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:08:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:08:06,758 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 11:08:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:08:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:08:06,758 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 11:08:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:08:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:08:06,758 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 11:08:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:08:06,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:08:06,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 11:08:06,759 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 11:08:06,760 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 11:08:06,760 - root - INFO - 增强版任务调度器已停止
2025-04-19 11:08:06,760 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 11:08:06,761 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 11:08:06,761 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 11:08:06,761 - data.session - INFO - 数据库连接已关闭
2025-04-19 11:08:08,023 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:08:08,023 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:08:08,080 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 11:08:08,129 - data.session - INFO - 正在初始化数据库...
2025-04-19 11:08:08,158 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 11:08:08,182 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:08:08,183 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,184 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:08:08,184 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,184 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:08:08,185 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:08:08,186 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 11:08:08,186 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,187 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 11:08:08,187 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,191 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 11:08:08,191 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,192 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 11:08:08,192 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,193 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 11:08:08,193 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,194 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 11:08:08,194 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,197 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 11:08:08,197 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,203 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 11:08:08,203 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,207 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 11:08:08,208 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,211 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 11:08:08,211 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,215 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 11:08:08,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:08,217 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:08:08,217 - data.session - INFO - 数据库表初始化完成
2025-04-19 11:08:08,587 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 11:08:08,587 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 11:08:08,587 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 11:08:08,587 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 11:08:08,587 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 11:08:08,587 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 11:08:08,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 11:08:08,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 11:08:08,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 11:08:08,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 11:08:08,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:08:08,588 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 11:08:08,589 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 11:08:08,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:08:08,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:08:08,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:08:08,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:08:08,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:08:08,591 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 11:08:08,591 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 11:08:08,616 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:08:08,618 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:08:08,618 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:08:08,619 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:08:08,620 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:08:08,620 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:08:08,620 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:08:08,620 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:08:08,631 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 11:08:08,632 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] (1, 1)
2025-04-19 11:08:08,633 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 11:08:08,633 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:08:08,635 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 11:08:08,635 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 11:08:08,635 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 11:08:08,636 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:08:08,637 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 11:08:08,638 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1000, 2000, 2001)
2025-04-19 11:08:08,649 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:08:08,650 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:08:08,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:08:08,652 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:08:08,652 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1001, datetime.datetime(2025, 4, 19, 10, 8, 8, 636110))
2025-04-19 11:08:08,653 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250419_105812.json 加载任务，合并后共 12 个任务
2025-04-19 11:08:08,653 - services.enhanced_scheduler.task_persistence - INFO - 已加载 12 个待处理任务
2025-04-19 11:08:08,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:08:08,654 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:08:08,655 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,655 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('2c356c7a-265f-4a5c-af76-73bcf0a3661a',)
2025-04-19 11:08:08,655 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 2c356c7a-265f-4a5c-af76-73bcf0a3661a 状态为 1000，不需要恢复
2025-04-19 11:08:08,656 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,656 - sqlalchemy.engine.Engine - INFO - [cached since 0.001467s ago] ('730110e1-a1aa-4b19-914f-93539368abf1',)
2025-04-19 11:08:08,657 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 730110e1-a1aa-4b19-914f-93539368abf1 状态为 1000，不需要恢复
2025-04-19 11:08:08,657 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,657 - sqlalchemy.engine.Engine - INFO - [cached since 0.002822s ago] ('79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0',)
2025-04-19 11:08:08,658 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 79b4529f-7aed-4bb0-80d8-3fb5a3f7a2a0 状态为 1000，不需要恢复
2025-04-19 11:08:08,658 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,658 - sqlalchemy.engine.Engine - INFO - [cached since 0.003735s ago] ('7b8ccb78-ec9d-4157-a7c2-f1a39c73b971',)
2025-04-19 11:08:08,659 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 7b8ccb78-ec9d-4157-a7c2-f1a39c73b971 状态为 1000，不需要恢复
2025-04-19 11:08:08,659 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,660 - sqlalchemy.engine.Engine - INFO - [cached since 0.005185s ago] ('9760da26-b0ca-4baa-8c15-8afe4be7dd2f',)
2025-04-19 11:08:08,661 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 9760da26-b0ca-4baa-8c15-8afe4be7dd2f 状态为 1000，不需要恢复
2025-04-19 11:08:08,661 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,661 - sqlalchemy.engine.Engine - INFO - [cached since 0.006551s ago] ('aaeb5784-4124-49b3-9c2b-4c69d5085dce',)
2025-04-19 11:08:08,662 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 aaeb5784-4124-49b3-9c2b-4c69d5085dce 状态为 1000，不需要恢复
2025-04-19 11:08:08,662 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,663 - sqlalchemy.engine.Engine - INFO - [cached since 0.008279s ago] ('ba19063c-6a94-4204-b181-ae42457f9779',)
2025-04-19 11:08:08,664 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ba19063c-6a94-4204-b181-ae42457f9779 状态为 1000，不需要恢复
2025-04-19 11:08:08,664 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,664 - sqlalchemy.engine.Engine - INFO - [cached since 0.009378s ago] ('bdbb2c58-e8f5-4916-8457-d80bbf4c8a80',)
2025-04-19 11:08:08,665 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 bdbb2c58-e8f5-4916-8457-d80bbf4c8a80 状态为 1000，不需要恢复
2025-04-19 11:08:08,665 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,665 - sqlalchemy.engine.Engine - INFO - [cached since 0.01065s ago] ('dd48f08e-fa29-4272-84d8-18935eecb64d',)
2025-04-19 11:08:08,666 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 dd48f08e-fa29-4272-84d8-18935eecb64d 状态为 1000，不需要恢复
2025-04-19 11:08:08,666 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,666 - sqlalchemy.engine.Engine - INFO - [cached since 0.01198s ago] ('eb99d8e7-9568-40dd-866b-f4bd259517a7',)
2025-04-19 11:08:08,667 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 eb99d8e7-9568-40dd-866b-f4bd259517a7 状态为 1000，不需要恢复
2025-04-19 11:08:08,668 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,668 - sqlalchemy.engine.Engine - INFO - [cached since 0.01341s ago] ('f8e0d6d2-7851-48af-8a61-2129bbc6d7c6',)
2025-04-19 11:08:08,669 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 f8e0d6d2-7851-48af-8a61-2129bbc6d7c6 状态为 1000，不需要恢复
2025-04-19 11:08:08,669 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 11:08:08,669 - sqlalchemy.engine.Engine - INFO - [cached since 0.01455s ago] ('ff8fbdc2-670a-443f-81f5-d0790d7dc2af',)
2025-04-19 11:08:08,670 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 ff8fbdc2-670a-443f-81f5-d0790d7dc2af 状态为 1000，不需要恢复
2025-04-19 11:08:08,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:08:08,670 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 12 个不需要恢复的任务
2025-04-19 11:08:08,670 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 11:08:08,671 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 11:08:37,135 - root - INFO - 应用程序关闭中...
2025-04-19 11:08:37,135 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 11:08:37,135 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 11:08:37,136 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 11:08:37,136 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 11:08:37,136 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 11:08:37,137 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 11:08:37,137 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 11:08:37,138 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 11:08:37,138 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 11:08:37,139 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 11:08:37,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:08:37,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:08:37,140 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:08:37,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:08:37,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:08:37,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 11:08:37,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:08:37,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:08:37,144 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 11:08:37,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:08:37,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:08:37,145 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 11:08:37,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:08:37,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:08:37,146 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 11:08:37,147 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 11:08:37,147 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 11:08:37,148 - root - INFO - 增强版任务调度器已停止
2025-04-19 11:08:37,148 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 11:08:37,149 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 11:08:37,150 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 11:08:37,150 - data.session - INFO - 数据库连接已关闭
2025-04-19 11:08:38,654 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:08:38,655 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:08:39,328 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 11:08:39,328 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 11:08:39,384 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 11:08:39,428 - data.session - INFO - 正在初始化数据库...
2025-04-19 11:08:39,458 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 11:08:39,477 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:08:39,477 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,478 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:08:39,478 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,478 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:08:39,479 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,479 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:08:39,479 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 11:08:39,481 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,481 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 11:08:39,481 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,483 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 11:08:39,483 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,484 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 11:08:39,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,485 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 11:08:39,486 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,486 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 11:08:39,487 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,488 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 11:08:39,488 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,489 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 11:08:39,489 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,490 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 11:08:39,490 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,492 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 11:08:39,492 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,493 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 11:08:39,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 11:08:39,494 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:08:39,494 - data.session - INFO - 数据库表初始化完成
2025-04-19 11:08:39,836 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 11:08:39,837 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 11:08:39,837 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 11:08:39,837 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 11:08:39,837 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 11:08:39,837 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 11:08:39,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 11:08:39,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 11:08:39,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 11:08:39,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 11:08:39,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:08:39,837 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 11:08:39,837 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 11:08:39,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:08:39,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:08:39,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:08:39,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:08:39,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:08:39,840 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 11:08:39,840 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 11:08:39,841 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:08:39,842 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 11:08:39,842 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:08:39,844 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 11:08:39,844 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:08:39,844 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 11:08:39,844 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 11:08:39,845 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:08:39,853 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 11:08:39,853 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (1, 1)
2025-04-19 11:08:39,854 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 11:08:39,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:08:39,855 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 11:08:39,855 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 11:08:39,856 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 11:08:39,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:08:39,858 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 11:08:39,858 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1000, 2000, 2001)
2025-04-19 11:08:39,859 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:08:39,859 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 11:08:39,860 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 11:08:39,860 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 11:08:39,860 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 11:08:39,860 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 11:08:39,860 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:08:39,861 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:08:39,861 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1001, datetime.datetime(2025, 4, 19, 10, 8, 39, 856172))
2025-04-19 11:08:39,862 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:09:39,869 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:09:39,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:09:39,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:09:39,870 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:09:39,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:09:39,870 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:09:39,870 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:09:39,870 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:09:39,871 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 10, 9, 39, 868753))
2025-04-19 11:09:39,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:09:39,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:09:39,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:09:39,871 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:09:39,871 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:09:39,872 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:09:39,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:09:39,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:09:39,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:09:39,872 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:09:39,872 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:09:39,872 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:09:39,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:09:39,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:09:39,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:09:39,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:09:39,873 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:09:39,873 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:09:39,873 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:09:39,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:09:39,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:09:39,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:09:39,874 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:09:39,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:09:39,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:10:39,895 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:10:39,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:10:39,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:10:39,896 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:10:39,896 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:10:39,896 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:10:39,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:10:39,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:10:39,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:10:39,898 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:10:39,898 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:10:39,899 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 10, 10, 39, 894938))
2025-04-19 11:10:39,900 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:10:39,900 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:10:39,900 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:10:39,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:10:39,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:10:39,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:10:39,901 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:10:39,901 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:10:39,901 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:10:39,902 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:10:39,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:10:39,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:10:39,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:10:39,902 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:10:39,902 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:10:39,903 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:10:39,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:10:39,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:10:39,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:10:39,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:10:39,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:10:39,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:11:39,910 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:11:39,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:11:39,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:11:39,911 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:11:39,911 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:11:39,911 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:11:39,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:11:39,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:11:39,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:11:39,912 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:11:39,913 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:11:39,914 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 19, 10, 11, 39, 910678))
2025-04-19 11:11:39,914 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:11:39,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:11:39,914 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:11:39,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:11:39,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:11:39,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:11:39,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:11:39,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:11:39,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:11:39,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:11:39,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:11:39,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:11:39,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:11:39,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:11:39,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:11:39,916 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:11:39,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:11:39,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:11:39,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:11:39,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:11:39,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:11:39,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:12:39,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:12:39,922 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:12:39,923 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 19, 10, 12, 39, 921620))
2025-04-19 11:12:39,924 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:12:39,969 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:12:39,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:12:39,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:12:39,969 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:12:39,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:12:39,969 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:12:39,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:12:39,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:12:39,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:12:39,970 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:12:39,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:12:39,970 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:12:39,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:12:39,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:12:39,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:12:39,971 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:12:39,971 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:12:39,971 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:12:39,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:12:39,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:12:39,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:12:39,971 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:12:39,972 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:12:39,972 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:12:39,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:12:39,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:12:39,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:12:39,972 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:12:39,972 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:12:39,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:13:39,922 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:13:39,923 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:13:39,923 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 19, 10, 13, 39, 921973))
2025-04-19 11:13:39,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:13:40,030 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:13:40,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:13:40,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:13:40,030 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:13:40,031 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:13:40,031 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:13:40,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:13:40,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:13:40,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:13:40,031 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:13:40,031 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:13:40,031 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:13:40,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:13:40,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:13:40,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:13:40,031 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:13:40,031 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:13:40,032 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:13:40,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:13:40,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:13:40,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:13:40,032 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:13:40,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:13:40,032 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:13:40,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:13:40,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:13:40,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:13:40,032 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:13:40,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:13:40,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 11:14:39,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 11:14:39,943 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 11:14:39,944 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 19, 10, 14, 39, 941837))
2025-04-19 11:14:39,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 11:14:40,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 11:14:40,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 11:14:40,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 11:14:40,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 11:14:40,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 11:14:40,066 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 11:14:40,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 11:14:40,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 11:14:40,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 11:14:40,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 11:14:40,067 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 11:14:40,068 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 11:14:40,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 11:14:40,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 11:14:40,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 11:14:40,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 11:14:40,069 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 11:14:40,069 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 11:14:40,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 11:14:40,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 11:14:40,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 11:14:40,070 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 11:14:40,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 11:14:40,070 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 11:14:40,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 11:14:40,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 11:14:40,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 11:14:40,070 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 11:14:40,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 11:14:40,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:28:26,547 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:28:26,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:28:26,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:28:26,548 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:28:26,548 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:28:26,549 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:28:26,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:28:26,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:28:26,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:28:26,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:28:26,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:28:26,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:28:26,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:28:26,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:28:26,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:28:26,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:28:26,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:28:26,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:28:26,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:28:26,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:28:26,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:28:26,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:28:26,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:28:26,552 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:28:26,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:28:26,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:28:26,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:28:26,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:28:26,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:28:26,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:28:26,557 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:28:26,557 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:28:26,557 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:28:26,557 - sqlalchemy.engine.Engine - INFO - [cached since 1.199e+04s ago] (1001, datetime.datetime(2025, 4, 19, 13, 28, 26, 547703))
2025-04-19 14:28:26,559 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:29:26,572 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:29:26,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:29:26,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:29:26,574 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:29:26,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:29:26,574 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:29:26,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:29:26,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:29:26,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:29:26,574 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:29:26,575 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:29:26,575 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:29:26,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:29:26,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:29:26,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:29:26,575 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:29:26,575 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:29:26,577 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:29:26,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:29:26,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:29:26,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:29:26,577 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:29:26,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:29:26,578 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:29:26,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:29:26,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:29:26,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:29:26,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:29:26,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:29:26,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:29:26,583 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:29:26,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:29:26,584 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:29:26,584 - sqlalchemy.engine.Engine - INFO - [cached since 1.205e+04s ago] (1001, datetime.datetime(2025, 4, 19, 13, 29, 26, 572548))
2025-04-19 14:29:26,586 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:29:39,793 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 14:29:39,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:29:39,798 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:29:39,798 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:29:39,799 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:29:39,799 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:29:39,799 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:29:39,799 - sqlalchemy.engine.Engine - INFO - [cached since 0.002847s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:29:39,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:29:39,802 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:29:39,803 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:29:39,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:29:39,805 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:29:39,805 - sqlalchemy.engine.Engine - INFO - [cached since 0.007427s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:29:39,806 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:29:39,807 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1, datetime.datetime(2025, 4, 19, 14, 29, 39, 806579), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:29:39,807 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:29:39,814 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:29:39,816 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:29:39,816 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (1, datetime.datetime(2025, 4, 19, 14, 29, 39, 816254), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:29:39,817 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:29:39,824 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:29:39,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:29:39,825 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:29:39,826 - sqlalchemy.engine.Engine - INFO - [cached since 0.02841s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:29:39,826 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:29:39,827 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:29:39,827 - services.task_edit_service - ERROR - 启动定时任务失败: 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:29:39,827 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 500 耗时: 0.0346秒
2025-04-19 14:29:46,616 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:29:46,616 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:29:46,617 - sqlalchemy.engine.Engine - INFO - [cached since 6.82s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:29:46,618 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:29:46,620 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:29:46,620 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:29:51,631 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:29:51,632 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:29:51,633 - sqlalchemy.engine.Engine - INFO - [cached since 11.84s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:29:51,636 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:29:51,638 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:29:51,638 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:29:56,662 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:29:56,663 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:29:56,664 - sqlalchemy.engine.Engine - INFO - [cached since 16.87s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:29:56,666 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:29:56,669 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:29:56,669 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:01,688 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:01,689 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:01,689 - sqlalchemy.engine.Engine - INFO - [cached since 21.89s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:01,690 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:01,690 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:01,690 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:06,707 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:06,707 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:06,707 - sqlalchemy.engine.Engine - INFO - [cached since 26.91s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:06,709 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:06,709 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:06,709 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:11,697 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:11,698 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:11,698 - sqlalchemy.engine.Engine - INFO - [cached since 31.9s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:11,700 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:11,700 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:11,700 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:16,718 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:16,718 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:16,718 - sqlalchemy.engine.Engine - INFO - [cached since 36.92s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:16,719 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:16,719 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:16,719 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:21,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:21,734 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:21,734 - sqlalchemy.engine.Engine - INFO - [cached since 41.94s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:21,735 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:21,736 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:21,736 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:26,577 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:30:26,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:30:26,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:30:26,579 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:30:26,579 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:30:26,580 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:30:26,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:30:26,581 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:30:26,581 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:30:26,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:26,582 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:30:26,583 - sqlalchemy.engine.Engine - INFO - [cached since 1.211e+04s ago] (1001, datetime.datetime(2025, 4, 19, 13, 30, 26, 577990))
2025-04-19 14:30:26,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:30:26,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:30:26,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:30:26,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:30:26,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:30:26,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:30:26,586 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:30:26,586 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:30:26,592 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:30:26,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:30:26,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:26,750 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:26,750 - sqlalchemy.engine.Engine - INFO - [cached since 46.95s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:26,751 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:26,752 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:26,753 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:31,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:31,753 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:31,753 - sqlalchemy.engine.Engine - INFO - [cached since 51.96s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:31,755 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:31,755 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:31,756 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:36,730 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:36,730 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:36,731 - sqlalchemy.engine.Engine - INFO - [cached since 56.93s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:36,732 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:36,732 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:36,732 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:41,604 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:30:41,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:30:41,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:30:41,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:30:41,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:30:41,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:30:41,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:30:41,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:30:41,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:30:41,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:30:41,606 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:30:41,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:30:41,758 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:41,759 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:41,759 - sqlalchemy.engine.Engine - INFO - [cached since 61.96s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:41,761 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:41,761 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:41,762 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:46,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:46,778 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:46,778 - sqlalchemy.engine.Engine - INFO - [cached since 66.98s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:46,779 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:46,780 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:46,781 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:51,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:51,786 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:51,788 - sqlalchemy.engine.Engine - INFO - [cached since 71.99s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:51,789 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:51,790 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:51,790 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:30:56,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:30:56,785 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:30:56,786 - sqlalchemy.engine.Engine - INFO - [cached since 76.99s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:30:56,787 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:30:56,788 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:30:56,789 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:31:01,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:31:01,763 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:31:01,763 - sqlalchemy.engine.Engine - INFO - [cached since 81.97s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:31:01,764 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:31:01,765 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:31:01,765 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:31:06,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:31:06,778 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:31:06,779 - sqlalchemy.engine.Engine - INFO - [cached since 86.98s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:31:06,779 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:31:06,781 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:31:06,782 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:31:11,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:31:11,778 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:31:11,779 - sqlalchemy.engine.Engine - INFO - [cached since 91.98s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:31:11,781 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:31:11,781 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:31:11,782 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:31:16,772 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:31:16,773 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:31:16,773 - sqlalchemy.engine.Engine - INFO - [cached since 96.98s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:31:16,774 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:31:16,775 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:31:16,776 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:31:21,792 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:31:21,793 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:31:21,793 - sqlalchemy.engine.Engine - INFO - [cached since 102s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:31:21,794 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:31:21,795 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:31:21,797 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:31:26,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:31:26,612 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:31:26,613 - sqlalchemy.engine.Engine - INFO - [cached since 1.217e+04s ago] (1001, datetime.datetime(2025, 4, 19, 13, 31, 26, 611561))
2025-04-19 14:31:26,614 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:31:26,659 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:31:26,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:31:26,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:31:26,659 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:31:26,659 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:31:26,659 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:31:26,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:31:26,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:31:26,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:31:26,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:31:26,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:31:26,660 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:31:26,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:31:26,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:31:26,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:31:26,661 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:31:26,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:31:26,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:31:26,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:31:26,816 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:31:26,816 - sqlalchemy.engine.Engine - INFO - [cached since 107s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:31:26,817 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:31:26,818 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:31:26,819 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:31:31,834 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:31:31,836 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:31:31,836 - sqlalchemy.engine.Engine - INFO - [cached since 112s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:31:31,837 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 14:31:31,838 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: 'VWEDTaskDef' object has no attribute 'priority'
2025-04-19 14:31:31,838 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:31:31,991 - root - INFO - 应用程序关闭中...
2025-04-19 14:31:31,991 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 14:31:31,993 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 14:31:31,994 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 14:31:31,994 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 14:31:31,994 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 14:31:31,994 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 14:31:31,994 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 14:31:31,994 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 14:31:31,994 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 14:31:31,994 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 14:31:31,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:31:31,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:31:31,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:31:31,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:31:31,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:31:31,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 3
2025-04-19 14:31:31,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:31:31,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:31:31,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 2
2025-04-19 14:31:31,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:31:31,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:31:31,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 1
2025-04-19 14:31:31,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:31:31,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:31:31,996 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 0
2025-04-19 14:31:31,996 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 14:31:31,996 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 14:31:31,997 - root - INFO - 增强版任务调度器已停止
2025-04-19 14:31:31,998 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 14:31:31,998 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 14:31:31,998 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 14:31:32,000 - data.session - INFO - 数据库连接已关闭
2025-04-19 14:33:54,708 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:33:54,709 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:33:55,394 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:33:55,395 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:33:55,451 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 14:33:55,498 - data.session - INFO - 正在初始化数据库...
2025-04-19 14:33:55,529 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 14:33:55,552 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:33:55,552 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,553 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:33:55,554 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,554 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:33:55,554 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,556 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:33:55,556 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 14:33:55,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,558 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 14:33:55,558 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,563 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 14:33:55,564 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,565 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 14:33:55,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,565 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 14:33:55,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,568 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 14:33:55,569 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,570 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 14:33:55,570 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,572 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 14:33:55,572 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,573 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 14:33:55,574 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,574 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 14:33:55,575 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,575 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 14:33:55,578 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:33:55,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:33:55,580 - data.session - INFO - 数据库表初始化完成
2025-04-19 14:33:55,931 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 14:33:55,931 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 14:33:55,931 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 14:33:55,931 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 14:33:55,932 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 14:33:55,932 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 14:33:55,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 14:33:55,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 14:33:55,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 14:33:55,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 14:33:55,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:33:55,932 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 14:33:55,933 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 14:33:55,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:33:55,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:33:55,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:33:55,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:33:55,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:33:55,934 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 14:33:55,934 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 14:33:55,955 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:33:55,957 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:33:55,957 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:33:55,958 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:33:55,958 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:33:55,959 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:33:55,959 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:33:55,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:33:55,968 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 14:33:55,969 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (1, 1)
2025-04-19 14:33:55,970 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 1 个定时任务
2025-04-19 14:33:55,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:33:55,972 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 14:33:55,972 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 14:33:55,972 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 14:33:55,973 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:33:55,974 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 14:33:55,974 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1000, 2000, 2001)
2025-04-19 14:33:55,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:33:55,978 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:33:55,979 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 14:33:55,979 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 14:33:55,979 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 14:33:55,979 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 14:33:55,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:33:55,980 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:33:55,981 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (1001, datetime.datetime(2025, 4, 19, 13, 33, 55, 972764))
2025-04-19 14:33:55,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:00,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:00,988 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:00,989 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:00,991 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:34:00,991 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] ('73dad36e-d600-45bb-8c99-66aef3196df1', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 34, 0, 990158), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 34, 0, 991157), datetime.datetime(2025, 4, 19, 14, 34, 0, 991157), 0)
2025-04-19 14:34:00,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,004 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:01,004 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('73dad36e-d600-45bb-8c99-66aef3196df1',)
2025-04-19 14:34:01,005 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,006 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 73dad36e-d600-45bb-8c99-66aef3196df1 (优先级 1) 添加到队列 0
2025-04-19 14:34:01,007 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:34:01,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 73dad36e-d600-45bb-8c99-66aef3196df1, 优先级: 1
2025-04-19 14:34:01,112 - services.execution.task_executor - DEBUG - 任务 73dad36e-d600-45bb-8c99-66aef3196df1 设置超时时间: 3600秒
2025-04-19 14:34:01,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,114 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:01,114 - sqlalchemy.engine.Engine - INFO - [cached since 0.1098s ago] ('73dad36e-d600-45bb-8c99-66aef3196df1',)
2025-04-19 14:34:01,115 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:01,115 - sqlalchemy.engine.Engine - INFO - [cached since 0.127s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:01,116 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:01,116 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] (datetime.datetime(2025, 4, 19, 14, 34, 1, 115744), datetime.datetime(2025, 4, 19, 14, 34, 1, 116775), '73dad36e-d600-45bb-8c99-66aef3196df1')
2025-04-19 14:34:01,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,127 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,129 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:01,130 - sqlalchemy.engine.Engine - INFO - [generated in 0.00137s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 34, 1, 129043), '73dad36e-d600-45bb-8c99-66aef3196df1')
2025-04-19 14:34:01,131 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,138 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:34:01,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,140 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:01,140 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('142bf252-6813-4895-85c4-3d001f6125fa', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '73dad36e-d600-45bb-8c99-66aef3196df1', datetime.datetime(2025, 4, 19, 14, 34, 1, 139222), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 1, 140887), datetime.datetime(2025, 4, 19, 14, 34, 1, 140887), 0)
2025-04-19 14:34:01,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,149 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,151 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:01,151 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('142bf252-6813-4895-85c4-3d001f6125fa',)
2025-04-19 14:34:01,152 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:01,152 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:01,153 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:01,153 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 1, 153515), '142bf252-6813-4895-85c4-3d001f6125fa')
2025-04-19 14:34:01,154 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,160 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:34:01,160 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:34:01,160 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:34:01,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,160 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:01,161 - sqlalchemy.engine.Engine - INFO - [cached since 0.02031s ago] ('6454da2a-2a79-4caa-9232-230a823c9c2a', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '73dad36e-d600-45bb-8c99-66aef3196df1', datetime.datetime(2025, 4, 19, 14, 34, 1, 160591), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 1, 160591), datetime.datetime(2025, 4, 19, 14, 34, 1, 160591), 0)
2025-04-19 14:34:01,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,168 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 6454da2a-2a79-4caa-9232-230a823c9c2a
2025-04-19 14:34:01,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,169 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:01,169 - sqlalchemy.engine.Engine - INFO - [cached since 0.01842s ago] ('6454da2a-2a79-4caa-9232-230a823c9c2a',)
2025-04-19 14:34:01,169 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:01,169 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:01,171 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:01,171 - sqlalchemy.engine.Engine - INFO - [cached since 0.01771s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 1, 171097), '6454da2a-2a79-4caa-9232-230a823c9c2a')
2025-04-19 14:34:01,171 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,179 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:34:01,179 - sqlalchemy.engine.Engine - INFO - [generated in 0.00017s] ('73dad36e-d600-45bb-8c99-66aef3196df1',)
2025-04-19 14:34:01,180 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 73dad36e-d600-45bb-8c99-66aef3196df1
2025-04-19 14:34:01,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,180 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:34:01,180 - services.execution.handlers.foundation - INFO - 任务 73dad36e-d600-45bb-8c99-66aef3196df1 打印: ['73dad36e-d600-45bb-8c99-66aef3196df1']
2025-04-19 14:34:01,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,181 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:01,181 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('30436ed1-fa9e-4a38-be69-541c9a9a8eb4', 1, '{"success": true, "message": "打印成功", "output": {"message": ["73dad36e-d600-45bb-8c99-66aef3196df1"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '73dad36e-d600-45bb-8c99-66aef3196df1', datetime.datetime(2025, 4, 19, 14, 34, 1, 181567), datetime.datetime(2025, 4, 19, 14, 34, 1, 181567), 0)
2025-04-19 14:34:01,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,189 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:01,189 - sqlalchemy.engine.Engine - INFO - [cached since 0.03818s ago] ('6454da2a-2a79-4caa-9232-230a823c9c2a',)
2025-04-19 14:34:01,189 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:01,190 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:01,190 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:01,190 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (datetime.datetime(2025, 4, 19, 14, 34, 1, 190572), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 1, 190572), '6454da2a-2a79-4caa-9232-230a823c9c2a')
2025-04-19 14:34:01,190 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,199 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,200 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:01,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.01876s ago] ('3136bb18-eef4-4bf0-bc91-ad7c8d56cb00', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["73dad36e-d600-45bb-8c99-66aef3196df1"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '73dad36e-d600-45bb-8c99-66aef3196df1', datetime.datetime(2025, 4, 19, 14, 34, 1, 200355), datetime.datetime(2025, 4, 19, 14, 34, 1, 200355), 0)
2025-04-19 14:34:01,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,207 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,207 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:01,209 - sqlalchemy.engine.Engine - INFO - [cached since 0.05781s ago] ('142bf252-6813-4895-85c4-3d001f6125fa',)
2025-04-19 14:34:01,211 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:01,212 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:01,212 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:01,213 - sqlalchemy.engine.Engine - INFO - [cached since 0.02269s ago] (datetime.datetime(2025, 4, 19, 14, 34, 1, 212381), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 1, 212381), '142bf252-6813-4895-85c4-3d001f6125fa')
2025-04-19 14:34:01,213 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:01,220 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:01,221 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (datetime.datetime(2025, 4, 19, 14, 34, 1, 219848), '任务执行成功', 1000, 94, datetime.datetime(2025, 4, 19, 14, 34, 1, 220844), '73dad36e-d600-45bb-8c99-66aef3196df1')
2025-04-19 14:34:01,222 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:01,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 73dad36e-d600-45bb-8c99-66aef3196df1, 结果: True
2025-04-19 14:34:06,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,002 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:06,002 - sqlalchemy.engine.Engine - INFO - [cached since 5.014s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:06,004 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:34:06,004 - sqlalchemy.engine.Engine - INFO - [cached since 5.014s ago] ('3b21b8ed-88d1-4d73-9034-0342dd68709b', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 34, 6, 3369), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 34, 6, 4355), datetime.datetime(2025, 4, 19, 14, 34, 6, 4355), 0)
2025-04-19 14:34:06,005 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,016 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,017 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:06,017 - sqlalchemy.engine.Engine - INFO - [cached since 5.014s ago] ('3b21b8ed-88d1-4d73-9034-0342dd68709b',)
2025-04-19 14:34:06,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,020 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3b21b8ed-88d1-4d73-9034-0342dd68709b (优先级 1) 添加到队列 0
2025-04-19 14:34:06,020 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:34:06,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3b21b8ed-88d1-4d73-9034-0342dd68709b, 优先级: 1
2025-04-19 14:34:06,047 - services.execution.task_executor - DEBUG - 任务 3b21b8ed-88d1-4d73-9034-0342dd68709b 设置超时时间: 3600秒
2025-04-19 14:34:06,048 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,048 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:06,049 - sqlalchemy.engine.Engine - INFO - [cached since 5.045s ago] ('3b21b8ed-88d1-4d73-9034-0342dd68709b',)
2025-04-19 14:34:06,051 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:06,051 - sqlalchemy.engine.Engine - INFO - [cached since 5.063s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:06,052 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:06,052 - sqlalchemy.engine.Engine - INFO - [cached since 4.936s ago] (datetime.datetime(2025, 4, 19, 14, 34, 6, 52833), datetime.datetime(2025, 4, 19, 14, 34, 6, 52833), '3b21b8ed-88d1-4d73-9034-0342dd68709b')
2025-04-19 14:34:06,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,062 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:06,062 - sqlalchemy.engine.Engine - INFO - [cached since 4.935s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 34, 6, 62947), '3b21b8ed-88d1-4d73-9034-0342dd68709b')
2025-04-19 14:34:06,063 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,072 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:34:06,072 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,073 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:06,073 - sqlalchemy.engine.Engine - INFO - [cached since 4.933s ago] ('63e75cb5-0b45-4fbb-bfa9-96f54eff02e0', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3b21b8ed-88d1-4d73-9034-0342dd68709b', datetime.datetime(2025, 4, 19, 14, 34, 6, 72990), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 6, 73990), datetime.datetime(2025, 4, 19, 14, 34, 6, 73990), 0)
2025-04-19 14:34:06,075 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,083 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:06,083 - sqlalchemy.engine.Engine - INFO - [cached since 4.933s ago] ('63e75cb5-0b45-4fbb-bfa9-96f54eff02e0',)
2025-04-19 14:34:06,084 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:06,084 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:06,085 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:06,085 - sqlalchemy.engine.Engine - INFO - [cached since 4.933s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 6, 85782), '63e75cb5-0b45-4fbb-bfa9-96f54eff02e0')
2025-04-19 14:34:06,086 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,092 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:34:06,093 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:34:06,093 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:34:06,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,094 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:06,095 - sqlalchemy.engine.Engine - INFO - [cached since 4.955s ago] ('cafa7103-c81e-4f56-b613-a9548067a14e', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3b21b8ed-88d1-4d73-9034-0342dd68709b', datetime.datetime(2025, 4, 19, 14, 34, 6, 94282), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 6, 94978), datetime.datetime(2025, 4, 19, 14, 34, 6, 94978), 0)
2025-04-19 14:34:06,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,103 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: cafa7103-c81e-4f56-b613-a9548067a14e
2025-04-19 14:34:06,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,104 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:06,106 - sqlalchemy.engine.Engine - INFO - [cached since 4.955s ago] ('cafa7103-c81e-4f56-b613-a9548067a14e',)
2025-04-19 14:34:06,106 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:06,107 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:06,107 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:06,107 - sqlalchemy.engine.Engine - INFO - [cached since 4.955s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 6, 107820), 'cafa7103-c81e-4f56-b613-a9548067a14e')
2025-04-19 14:34:06,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,121 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:34:06,121 - sqlalchemy.engine.Engine - INFO - [cached since 4.943s ago] ('3b21b8ed-88d1-4d73-9034-0342dd68709b',)
2025-04-19 14:34:06,122 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 3b21b8ed-88d1-4d73-9034-0342dd68709b
2025-04-19 14:34:06,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,123 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:34:06,123 - services.execution.handlers.foundation - INFO - 任务 3b21b8ed-88d1-4d73-9034-0342dd68709b 打印: ['3b21b8ed-88d1-4d73-9034-0342dd68709b']
2025-04-19 14:34:06,123 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,124 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:06,124 - sqlalchemy.engine.Engine - INFO - [cached since 4.943s ago] ('8fe25d0a-5f21-40b8-8b84-dd2663ee755b', 1, '{"success": true, "message": "打印成功", "output": {"message": ["3b21b8ed-88d1-4d73-9034-0342dd68709b"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3b21b8ed-88d1-4d73-9034-0342dd68709b', datetime.datetime(2025, 4, 19, 14, 34, 6, 124890), datetime.datetime(2025, 4, 19, 14, 34, 6, 124890), 0)
2025-04-19 14:34:06,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,134 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:06,136 - sqlalchemy.engine.Engine - INFO - [cached since 4.985s ago] ('cafa7103-c81e-4f56-b613-a9548067a14e',)
2025-04-19 14:34:06,137 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:06,138 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:06,138 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:06,139 - sqlalchemy.engine.Engine - INFO - [cached since 4.948s ago] (datetime.datetime(2025, 4, 19, 14, 34, 6, 138050), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 6, 138050), 'cafa7103-c81e-4f56-b613-a9548067a14e')
2025-04-19 14:34:06,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,148 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:06,148 - sqlalchemy.engine.Engine - INFO - [cached since 4.967s ago] ('57c7b2aa-253c-48ef-843f-f6df3609c690', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["3b21b8ed-88d1-4d73-9034-0342dd68709b"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3b21b8ed-88d1-4d73-9034-0342dd68709b', datetime.datetime(2025, 4, 19, 14, 34, 6, 148778), datetime.datetime(2025, 4, 19, 14, 34, 6, 148778), 0)
2025-04-19 14:34:06,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,156 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:06,156 - sqlalchemy.engine.Engine - INFO - [cached since 5.005s ago] ('63e75cb5-0b45-4fbb-bfa9-96f54eff02e0',)
2025-04-19 14:34:06,157 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:06,157 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:06,157 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:06,158 - sqlalchemy.engine.Engine - INFO - [cached since 4.968s ago] (datetime.datetime(2025, 4, 19, 14, 34, 6, 157611), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 6, 157611), '63e75cb5-0b45-4fbb-bfa9-96f54eff02e0')
2025-04-19 14:34:06,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:06,166 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:06,166 - sqlalchemy.engine.Engine - INFO - [cached since 4.946s ago] (datetime.datetime(2025, 4, 19, 14, 34, 6, 165608), '任务执行成功', 1000, 103, datetime.datetime(2025, 4, 19, 14, 34, 6, 166608), '3b21b8ed-88d1-4d73-9034-0342dd68709b')
2025-04-19 14:34:06,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:06,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 3b21b8ed-88d1-4d73-9034-0342dd68709b, 结果: True
2025-04-19 14:34:11,034 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,035 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:11,035 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:11,037 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:34:11,037 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('d581c8b6-ff09-4dbf-9cf4-f7451bd23f61', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 34, 11, 37780), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 34, 11, 37780), datetime.datetime(2025, 4, 19, 14, 34, 11, 37780), 0)
2025-04-19 14:34:11,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,057 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:11,057 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('d581c8b6-ff09-4dbf-9cf4-f7451bd23f61',)
2025-04-19 14:34:11,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,060 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 d581c8b6-ff09-4dbf-9cf4-f7451bd23f61 (优先级 1) 添加到队列 0
2025-04-19 14:34:11,060 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:34:11,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: d581c8b6-ff09-4dbf-9cf4-f7451bd23f61, 优先级: 1
2025-04-19 14:34:11,143 - services.execution.task_executor - DEBUG - 任务 d581c8b6-ff09-4dbf-9cf4-f7451bd23f61 设置超时时间: 3600秒
2025-04-19 14:34:11,144 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,144 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:11,145 - sqlalchemy.engine.Engine - INFO - [cached since 10.14s ago] ('d581c8b6-ff09-4dbf-9cf4-f7451bd23f61',)
2025-04-19 14:34:11,146 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:11,147 - sqlalchemy.engine.Engine - INFO - [cached since 10.16s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:11,148 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:11,148 - sqlalchemy.engine.Engine - INFO - [cached since 10.03s ago] (datetime.datetime(2025, 4, 19, 14, 34, 11, 147512), datetime.datetime(2025, 4, 19, 14, 34, 11, 148513), 'd581c8b6-ff09-4dbf-9cf4-f7451bd23f61')
2025-04-19 14:34:11,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,156 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,156 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:11,156 - sqlalchemy.engine.Engine - INFO - [cached since 10.03s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 34, 11, 156921), 'd581c8b6-ff09-4dbf-9cf4-f7451bd23f61')
2025-04-19 14:34:11,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,167 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:34:11,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,169 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:11,169 - sqlalchemy.engine.Engine - INFO - [cached since 10.03s ago] ('4f6cc7cd-838c-4c0b-b16d-ceb024c74d48', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd581c8b6-ff09-4dbf-9cf4-f7451bd23f61', datetime.datetime(2025, 4, 19, 14, 34, 11, 168482), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 11, 169483), datetime.datetime(2025, 4, 19, 14, 34, 11, 169483), 0)
2025-04-19 14:34:11,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,179 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:11,179 - sqlalchemy.engine.Engine - INFO - [cached since 10.03s ago] ('4f6cc7cd-838c-4c0b-b16d-ceb024c74d48',)
2025-04-19 14:34:11,180 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:11,180 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:11,181 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:11,181 - sqlalchemy.engine.Engine - INFO - [cached since 10.03s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 11, 181019), '4f6cc7cd-838c-4c0b-b16d-ceb024c74d48')
2025-04-19 14:34:11,181 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,189 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:34:11,190 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:34:11,190 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:34:11,191 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,191 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:11,191 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('e020e0f1-60d9-4187-b1cc-52e4a2df6590', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd581c8b6-ff09-4dbf-9cf4-f7451bd23f61', datetime.datetime(2025, 4, 19, 14, 34, 11, 190525), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 11, 191525), datetime.datetime(2025, 4, 19, 14, 34, 11, 191525), 0)
2025-04-19 14:34:11,192 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,198 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e020e0f1-60d9-4187-b1cc-52e4a2df6590
2025-04-19 14:34:11,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,198 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:11,198 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('e020e0f1-60d9-4187-b1cc-52e4a2df6590',)
2025-04-19 14:34:11,200 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:11,200 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:11,200 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:11,200 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 11, 200798), 'e020e0f1-60d9-4187-b1cc-52e4a2df6590')
2025-04-19 14:34:11,202 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,208 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,208 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:34:11,209 - sqlalchemy.engine.Engine - INFO - [cached since 10.03s ago] ('d581c8b6-ff09-4dbf-9cf4-f7451bd23f61',)
2025-04-19 14:34:11,209 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: d581c8b6-ff09-4dbf-9cf4-f7451bd23f61
2025-04-19 14:34:11,209 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,211 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:34:11,211 - services.execution.handlers.foundation - INFO - 任务 d581c8b6-ff09-4dbf-9cf4-f7451bd23f61 打印: ['d581c8b6-ff09-4dbf-9cf4-f7451bd23f61']
2025-04-19 14:34:11,211 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,212 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:11,212 - sqlalchemy.engine.Engine - INFO - [cached since 10.03s ago] ('b3bf2aab-8752-493d-bb92-1feeee292ab7', 1, '{"success": true, "message": "打印成功", "output": {"message": ["d581c8b6-ff09-4dbf-9cf4-f7451bd23f61"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd581c8b6-ff09-4dbf-9cf4-f7451bd23f61', datetime.datetime(2025, 4, 19, 14, 34, 11, 212067), datetime.datetime(2025, 4, 19, 14, 34, 11, 212067), 0)
2025-04-19 14:34:11,213 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,219 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:11,220 - sqlalchemy.engine.Engine - INFO - [cached since 10.07s ago] ('e020e0f1-60d9-4187-b1cc-52e4a2df6590',)
2025-04-19 14:34:11,220 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:11,221 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:11,221 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:11,221 - sqlalchemy.engine.Engine - INFO - [cached since 10.03s ago] (datetime.datetime(2025, 4, 19, 14, 34, 11, 221470), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 11, 221470), 'e020e0f1-60d9-4187-b1cc-52e4a2df6590')
2025-04-19 14:34:11,222 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,229 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:11,229 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('53e62805-ce0f-4596-b7b4-91db62e01a84', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["d581c8b6-ff09-4dbf-9cf4-f7451bd23f61"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd581c8b6-ff09-4dbf-9cf4-f7451bd23f61', datetime.datetime(2025, 4, 19, 14, 34, 11, 229138), datetime.datetime(2025, 4, 19, 14, 34, 11, 229138), 0)
2025-04-19 14:34:11,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,237 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:11,238 - sqlalchemy.engine.Engine - INFO - [cached since 10.09s ago] ('4f6cc7cd-838c-4c0b-b16d-ceb024c74d48',)
2025-04-19 14:34:11,240 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:11,240 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:11,241 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:11,241 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] (datetime.datetime(2025, 4, 19, 14, 34, 11, 240588), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 11, 241642), '4f6cc7cd-838c-4c0b-b16d-ceb024c74d48')
2025-04-19 14:34:11,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,249 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:11,250 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:11,250 - sqlalchemy.engine.Engine - INFO - [cached since 10.03s ago] (datetime.datetime(2025, 4, 19, 14, 34, 11, 249236), '任务执行成功', 1000, 93, datetime.datetime(2025, 4, 19, 14, 34, 11, 250226), 'd581c8b6-ff09-4dbf-9cf4-f7451bd23f61')
2025-04-19 14:34:11,251 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:11,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: d581c8b6-ff09-4dbf-9cf4-f7451bd23f61, 结果: True
2025-04-19 14:34:16,077 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,077 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:16,077 - sqlalchemy.engine.Engine - INFO - [cached since 15.09s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:16,078 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:34:16,079 - sqlalchemy.engine.Engine - INFO - [cached since 15.09s ago] ('fa69faad-dac1-48c8-8248-ae7af2388e86', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 34, 16, 78144), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 34, 16, 78144), datetime.datetime(2025, 4, 19, 14, 34, 16, 78144), 0)
2025-04-19 14:34:16,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,093 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,094 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:16,094 - sqlalchemy.engine.Engine - INFO - [cached since 15.09s ago] ('fa69faad-dac1-48c8-8248-ae7af2388e86',)
2025-04-19 14:34:16,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,096 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 fa69faad-dac1-48c8-8248-ae7af2388e86 (优先级 1) 添加到队列 0
2025-04-19 14:34:16,096 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:34:16,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: fa69faad-dac1-48c8-8248-ae7af2388e86, 优先级: 1
2025-04-19 14:34:16,139 - services.execution.task_executor - DEBUG - 任务 fa69faad-dac1-48c8-8248-ae7af2388e86 设置超时时间: 3600秒
2025-04-19 14:34:16,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,140 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:16,140 - sqlalchemy.engine.Engine - INFO - [cached since 15.14s ago] ('fa69faad-dac1-48c8-8248-ae7af2388e86',)
2025-04-19 14:34:16,142 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:16,143 - sqlalchemy.engine.Engine - INFO - [cached since 15.15s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:16,144 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:16,144 - sqlalchemy.engine.Engine - INFO - [cached since 15.03s ago] (datetime.datetime(2025, 4, 19, 14, 34, 16, 143035), datetime.datetime(2025, 4, 19, 14, 34, 16, 144326), 'fa69faad-dac1-48c8-8248-ae7af2388e86')
2025-04-19 14:34:16,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,152 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:16,152 - sqlalchemy.engine.Engine - INFO - [cached since 15.02s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 34, 16, 152569), 'fa69faad-dac1-48c8-8248-ae7af2388e86')
2025-04-19 14:34:16,153 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,159 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:34:16,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,160 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:16,160 - sqlalchemy.engine.Engine - INFO - [cached since 15.02s ago] ('04ce78c0-0db4-42e2-bcf2-f7ab39f56740', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fa69faad-dac1-48c8-8248-ae7af2388e86', datetime.datetime(2025, 4, 19, 14, 34, 16, 159946), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 16, 160972), datetime.datetime(2025, 4, 19, 14, 34, 16, 160972), 0)
2025-04-19 14:34:16,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,168 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:16,168 - sqlalchemy.engine.Engine - INFO - [cached since 15.02s ago] ('04ce78c0-0db4-42e2-bcf2-f7ab39f56740',)
2025-04-19 14:34:16,170 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:16,170 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:16,170 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:16,171 - sqlalchemy.engine.Engine - INFO - [cached since 15.02s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 16, 170242), '04ce78c0-0db4-42e2-bcf2-f7ab39f56740')
2025-04-19 14:34:16,171 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,176 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:34:16,177 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:34:16,177 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:34:16,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,177 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:16,177 - sqlalchemy.engine.Engine - INFO - [cached since 15.04s ago] ('be1f3a37-300b-49bf-8b10-6fdcb83dde76', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fa69faad-dac1-48c8-8248-ae7af2388e86', datetime.datetime(2025, 4, 19, 14, 34, 16, 177583), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 16, 177583), datetime.datetime(2025, 4, 19, 14, 34, 16, 177583), 0)
2025-04-19 14:34:16,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,185 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: be1f3a37-300b-49bf-8b10-6fdcb83dde76
2025-04-19 14:34:16,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,186 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:16,186 - sqlalchemy.engine.Engine - INFO - [cached since 15.04s ago] ('be1f3a37-300b-49bf-8b10-6fdcb83dde76',)
2025-04-19 14:34:16,187 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:16,187 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:16,187 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:16,187 - sqlalchemy.engine.Engine - INFO - [cached since 15.03s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 16, 187783), 'be1f3a37-300b-49bf-8b10-6fdcb83dde76')
2025-04-19 14:34:16,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,194 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:34:16,195 - sqlalchemy.engine.Engine - INFO - [cached since 15.02s ago] ('fa69faad-dac1-48c8-8248-ae7af2388e86',)
2025-04-19 14:34:16,195 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: fa69faad-dac1-48c8-8248-ae7af2388e86
2025-04-19 14:34:16,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,196 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:34:16,196 - services.execution.handlers.foundation - INFO - 任务 fa69faad-dac1-48c8-8248-ae7af2388e86 打印: ['fa69faad-dac1-48c8-8248-ae7af2388e86']
2025-04-19 14:34:16,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,197 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:16,197 - sqlalchemy.engine.Engine - INFO - [cached since 15.02s ago] ('146ce758-4e9b-4728-9761-c61069532d44', 1, '{"success": true, "message": "打印成功", "output": {"message": ["fa69faad-dac1-48c8-8248-ae7af2388e86"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fa69faad-dac1-48c8-8248-ae7af2388e86', datetime.datetime(2025, 4, 19, 14, 34, 16, 197109), datetime.datetime(2025, 4, 19, 14, 34, 16, 197109), 0)
2025-04-19 14:34:16,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,203 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:16,203 - sqlalchemy.engine.Engine - INFO - [cached since 15.05s ago] ('be1f3a37-300b-49bf-8b10-6fdcb83dde76',)
2025-04-19 14:34:16,204 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:16,204 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:16,204 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:16,204 - sqlalchemy.engine.Engine - INFO - [cached since 15.01s ago] (datetime.datetime(2025, 4, 19, 14, 34, 16, 204880), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 16, 204880), 'be1f3a37-300b-49bf-8b10-6fdcb83dde76')
2025-04-19 14:34:16,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,212 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:16,212 - sqlalchemy.engine.Engine - INFO - [cached since 15.03s ago] ('8a7c77e4-7cd4-42de-a00e-10fc78cbc340', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["fa69faad-dac1-48c8-8248-ae7af2388e86"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fa69faad-dac1-48c8-8248-ae7af2388e86', datetime.datetime(2025, 4, 19, 14, 34, 16, 212633), datetime.datetime(2025, 4, 19, 14, 34, 16, 212633), 0)
2025-04-19 14:34:16,213 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,220 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:16,220 - sqlalchemy.engine.Engine - INFO - [cached since 15.07s ago] ('04ce78c0-0db4-42e2-bcf2-f7ab39f56740',)
2025-04-19 14:34:16,222 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:16,223 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:16,223 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:16,223 - sqlalchemy.engine.Engine - INFO - [cached since 15.03s ago] (datetime.datetime(2025, 4, 19, 14, 34, 16, 223686), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 16, 223686), '04ce78c0-0db4-42e2-bcf2-f7ab39f56740')
2025-04-19 14:34:16,224 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,233 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:16,234 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:16,234 - sqlalchemy.engine.Engine - INFO - [cached since 15.01s ago] (datetime.datetime(2025, 4, 19, 14, 34, 16, 233752), '任务执行成功', 1000, 82, datetime.datetime(2025, 4, 19, 14, 34, 16, 234300), 'fa69faad-dac1-48c8-8248-ae7af2388e86')
2025-04-19 14:34:16,234 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:16,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: fa69faad-dac1-48c8-8248-ae7af2388e86, 结果: True
2025-04-19 14:34:20,974 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 14:34:20,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:20,976 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:20,976 - sqlalchemy.engine.Engine - INFO - [cached since 19.99s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:20,977 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:34:20,978 - sqlalchemy.engine.Engine - INFO - [generated in 0.00098s] (0, datetime.datetime(2025, 4, 19, 14, 34, 20, 977510), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:34:20,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,118 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:21,118 - sqlalchemy.engine.Engine - INFO - [cached since 20.13s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:21,119 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:34:21,120 - sqlalchemy.engine.Engine - INFO - [cached since 20.13s ago] ('0846fb1f-07cc-412d-ada3-098a16c8c5cf', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 34, 21, 119563), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 34, 21, 119563), datetime.datetime(2025, 4, 19, 14, 34, 21, 119563), 0)
2025-04-19 14:34:21,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,145 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,145 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:21,146 - sqlalchemy.engine.Engine - INFO - [cached since 20.16s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:21,147 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,149 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:21,149 - sqlalchemy.engine.Engine - INFO - [cached since 20.15s ago] ('0846fb1f-07cc-412d-ada3-098a16c8c5cf',)
2025-04-19 14:34:21,150 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.1756秒
2025-04-19 14:34:21,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,151 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 0846fb1f-07cc-412d-ada3-098a16c8c5cf (优先级 1) 添加到队列 0
2025-04-19 14:34:21,152 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:34:21,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 0846fb1f-07cc-412d-ada3-098a16c8c5cf, 优先级: 1
2025-04-19 14:34:21,224 - services.execution.task_executor - DEBUG - 任务 0846fb1f-07cc-412d-ada3-098a16c8c5cf 设置超时时间: 3600秒
2025-04-19 14:34:21,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,225 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:21,225 - sqlalchemy.engine.Engine - INFO - [cached since 20.22s ago] ('0846fb1f-07cc-412d-ada3-098a16c8c5cf',)
2025-04-19 14:34:21,226 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:34:21,227 - sqlalchemy.engine.Engine - INFO - [cached since 20.24s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:34:21,227 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:21,228 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] (datetime.datetime(2025, 4, 19, 14, 34, 21, 227195), datetime.datetime(2025, 4, 19, 14, 34, 21, 227195), '0846fb1f-07cc-412d-ada3-098a16c8c5cf')
2025-04-19 14:34:21,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,241 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,242 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:21,242 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 34, 21, 242804), '0846fb1f-07cc-412d-ada3-098a16c8c5cf')
2025-04-19 14:34:21,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,251 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:34:21,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,253 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:21,253 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] ('0c91d1c3-9926-4303-bd2a-38b1260064ed', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0846fb1f-07cc-412d-ada3-098a16c8c5cf', datetime.datetime(2025, 4, 19, 14, 34, 21, 251815), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 21, 253328), datetime.datetime(2025, 4, 19, 14, 34, 21, 253328), 0)
2025-04-19 14:34:21,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,260 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:21,260 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] ('0c91d1c3-9926-4303-bd2a-38b1260064ed',)
2025-04-19 14:34:21,261 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:21,261 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:21,262 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:21,262 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 21, 262342), '0c91d1c3-9926-4303-bd2a-38b1260064ed')
2025-04-19 14:34:21,262 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,268 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:34:21,269 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:34:21,269 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:34:21,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,271 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:34:21,271 - sqlalchemy.engine.Engine - INFO - [cached since 20.13s ago] ('162a5ccc-aade-4228-8ade-976635c9648e', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0846fb1f-07cc-412d-ada3-098a16c8c5cf', datetime.datetime(2025, 4, 19, 14, 34, 21, 269939), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 34, 21, 271881), datetime.datetime(2025, 4, 19, 14, 34, 21, 271881), 0)
2025-04-19 14:34:21,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,279 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 162a5ccc-aade-4228-8ade-976635c9648e
2025-04-19 14:34:21,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,280 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:21,280 - sqlalchemy.engine.Engine - INFO - [cached since 20.13s ago] ('162a5ccc-aade-4228-8ade-976635c9648e',)
2025-04-19 14:34:21,281 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:21,281 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:21,282 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:21,282 - sqlalchemy.engine.Engine - INFO - [cached since 20.13s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 34, 21, 281673), '162a5ccc-aade-4228-8ade-976635c9648e')
2025-04-19 14:34:21,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,289 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,289 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:34:21,289 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] ('0846fb1f-07cc-412d-ada3-098a16c8c5cf',)
2025-04-19 14:34:21,290 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 0846fb1f-07cc-412d-ada3-098a16c8c5cf
2025-04-19 14:34:21,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,291 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:34:21,291 - services.execution.handlers.foundation - INFO - 任务 0846fb1f-07cc-412d-ada3-098a16c8c5cf 打印: ['0846fb1f-07cc-412d-ada3-098a16c8c5cf']
2025-04-19 14:34:21,291 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,291 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:21,292 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] ('a794d65a-4c81-4a4e-bf94-05c1143ac502', 1, '{"success": true, "message": "打印成功", "output": {"message": ["0846fb1f-07cc-412d-ada3-098a16c8c5cf"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0846fb1f-07cc-412d-ada3-098a16c8c5cf', datetime.datetime(2025, 4, 19, 14, 34, 21, 291209), datetime.datetime(2025, 4, 19, 14, 34, 21, 291209), 0)
2025-04-19 14:34:21,292 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,300 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:21,300 - sqlalchemy.engine.Engine - INFO - [cached since 20.15s ago] ('162a5ccc-aade-4228-8ade-976635c9648e',)
2025-04-19 14:34:21,301 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:34:21,301 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:34:21,301 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:21,301 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] (datetime.datetime(2025, 4, 19, 14, 34, 21, 301805), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 21, 301805), '162a5ccc-aade-4228-8ade-976635c9648e')
2025-04-19 14:34:21,302 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,309 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,309 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:34:21,311 - sqlalchemy.engine.Engine - INFO - [cached since 20.13s ago] ('29f36c94-2d28-4651-947b-6ebe9b3d42f8', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["0846fb1f-07cc-412d-ada3-098a16c8c5cf"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '0846fb1f-07cc-412d-ada3-098a16c8c5cf', datetime.datetime(2025, 4, 19, 14, 34, 21, 309812), datetime.datetime(2025, 4, 19, 14, 34, 21, 309812), 0)
2025-04-19 14:34:21,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,318 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:34:21,318 - sqlalchemy.engine.Engine - INFO - [cached since 20.17s ago] ('0c91d1c3-9926-4303-bd2a-38b1260064ed',)
2025-04-19 14:34:21,319 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:34:21,319 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:34:21,319 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:34:21,320 - sqlalchemy.engine.Engine - INFO - [cached since 20.13s ago] (datetime.datetime(2025, 4, 19, 14, 34, 21, 319173), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 34, 21, 319173), '0c91d1c3-9926-4303-bd2a-38b1260064ed')
2025-04-19 14:34:21,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:21,327 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:34:21,327 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] (datetime.datetime(2025, 4, 19, 14, 34, 21, 326889), '任务执行成功', 1000, 85, datetime.datetime(2025, 4, 19, 14, 34, 21, 327666), '0846fb1f-07cc-412d-ada3-098a16c8c5cf')
2025-04-19 14:34:21,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:34:21,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: 0846fb1f-07cc-412d-ada3-098a16c8c5cf, 结果: True
2025-04-19 14:34:55,962 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:34:55,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:34:55,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:34:55,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:34:55,963 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:34:55,964 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:34:55,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:34:55,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:34:55,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:34:55,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:34:55,965 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:34:55,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:34:55,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:34:55,995 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:34:55,996 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 19, 13, 34, 55, 993233))
2025-04-19 14:34:55,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:35:00,377 - root - INFO - 应用程序关闭中...
2025-04-19 14:35:00,378 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 14:35:00,378 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 14:35:00,378 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 14:35:00,379 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 14:35:00,379 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 14:35:00,379 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 14:35:00,379 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 14:35:00,379 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 14:35:00,379 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 14:35:00,379 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 14:35:00,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:35:00,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:35:00,380 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:35:00,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:35:00,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:35:00,381 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-19 14:35:00,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:35:00,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:35:00,381 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-19 14:35:00,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:35:00,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:35:00,382 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 1
2025-04-19 14:35:00,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:35:00,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:35:00,382 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 14:35:00,382 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 14:35:00,382 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 14:35:00,382 - root - INFO - 增强版任务调度器已停止
2025-04-19 14:35:00,382 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 14:35:00,383 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 14:35:00,383 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 14:35:00,383 - data.session - INFO - 数据库连接已关闭
2025-04-19 14:39:31,522 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:39:31,522 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:39:32,273 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:39:32,273 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:39:32,336 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 14:39:32,384 - data.session - INFO - 正在初始化数据库...
2025-04-19 14:39:32,406 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 14:39:32,418 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:39:32,420 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,420 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:39:32,420 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,421 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:39:32,421 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,422 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:39:32,422 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 14:39:32,422 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,424 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 14:39:32,424 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,427 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 14:39:32,427 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,428 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 14:39:32,428 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,430 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 14:39:32,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,431 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 14:39:32,431 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,432 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 14:39:32,432 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,435 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 14:39:32,435 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,437 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 14:39:32,437 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,438 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 14:39:32,438 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,439 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 14:39:32,439 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:39:32,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:39:32,442 - data.session - INFO - 数据库表初始化完成
2025-04-19 14:39:32,858 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 14:39:32,858 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 14:39:32,858 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 14:39:32,858 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 14:39:32,858 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 14:39:32,858 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 14:39:32,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 14:39:32,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 14:39:32,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 14:39:32,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 14:39:32,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:39:32,859 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 14:39:32,860 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 14:39:32,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:39:32,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:39:32,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:39:32,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:39:32,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:39:32,862 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 14:39:32,862 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 14:39:32,864 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:39:32,865 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:39:32,865 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:39:32,866 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:39:32,866 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:39:32,866 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:39:32,866 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:39:32,867 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:39:32,874 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 14:39:32,875 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (1, 1)
2025-04-19 14:39:32,876 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 14:39:32,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:39:32,877 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 14:39:32,879 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 14:39:32,879 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 14:39:32,880 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:39:32,881 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 14:39:32,881 - sqlalchemy.engine.Engine - INFO - [generated in 0.00108s] (1000, 2000, 2001)
2025-04-19 14:39:32,902 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:39:32,903 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 14:39:32,903 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 14:39:32,903 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 14:39:32,903 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 14:39:32,904 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:39:32,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:39:32,906 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:39:32,906 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] (1001, datetime.datetime(2025, 4, 19, 13, 39, 32, 879478))
2025-04-19 14:39:32,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:39:57,789 - root - INFO - 应用程序关闭中...
2025-04-19 14:39:57,789 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 14:39:57,789 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 14:39:57,789 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 14:39:57,790 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 14:39:57,790 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 14:39:57,790 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 14:39:57,790 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 14:39:57,790 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 14:39:57,790 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 14:39:57,790 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 14:39:57,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:39:57,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:39:57,791 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:39:57,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:39:57,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:39:57,791 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 14:39:57,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:39:57,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:39:57,793 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 14:39:57,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:39:57,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:39:57,793 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 14:39:57,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:39:57,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:39:57,796 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 14:39:57,796 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 14:39:57,797 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 14:39:57,797 - root - INFO - 增强版任务调度器已停止
2025-04-19 14:39:57,797 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 14:39:57,797 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 14:39:57,797 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 14:39:57,798 - data.session - INFO - 数据库连接已关闭
2025-04-19 14:40:21,386 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:40:21,386 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:40:22,097 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:40:22,097 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:40:22,159 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 14:40:22,204 - data.session - INFO - 正在初始化数据库...
2025-04-19 14:40:22,219 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 14:40:22,240 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:40:22,241 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,242 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:40:22,242 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,243 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:40:22,243 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,243 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:40:22,243 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 14:40:22,244 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,245 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 14:40:22,245 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,246 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 14:40:22,247 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,250 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 14:40:22,250 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,251 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 14:40:22,251 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,252 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 14:40:22,252 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,253 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 14:40:22,253 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,254 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 14:40:22,254 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,257 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 14:40:22,257 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,258 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 14:40:22,258 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,260 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 14:40:22,260 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:40:22,262 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:40:22,263 - data.session - INFO - 数据库表初始化完成
2025-04-19 14:40:22,601 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 14:40:22,601 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 14:40:22,601 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 14:40:22,602 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 14:40:22,602 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 14:40:22,602 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 14:40:22,602 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 14:40:22,602 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 14:40:22,602 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 14:40:22,603 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 14:40:22,603 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:40:22,603 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 14:40:22,603 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 14:40:22,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:40:22,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:40:22,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:40:22,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:40:22,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:40:22,606 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 14:40:22,606 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 14:40:22,630 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:40:22,631 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:40:22,631 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:40:22,632 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:40:22,632 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:40:22,633 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:40:22,633 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:40:22,634 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:40:22,642 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 14:40:22,642 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1, 1)
2025-04-19 14:40:22,643 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 14:40:22,645 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:40:22,645 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 14:40:22,645 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 14:40:22,646 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 14:40:22,646 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:40:22,648 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 14:40:22,648 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1000, 2000, 2001)
2025-04-19 14:40:22,660 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:40:22,660 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:40:22,661 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 14:40:22,661 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 14:40:22,664 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 14:40:22,664 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 14:40:22,665 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:40:22,665 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:40:22,665 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1001, datetime.datetime(2025, 4, 19, 13, 40, 22, 646562))
2025-04-19 14:40:22,667 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:41:22,659 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:41:22,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:41:22,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:41:22,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:41:22,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:41:22,660 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:41:22,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:41:22,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:41:22,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:41:22,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:41:22,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:41:22,660 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:41:22,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:41:22,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:41:22,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:41:22,661 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:41:22,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:41:22,662 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:41:22,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:41:22,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:41:22,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:41:22,662 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:41:22,663 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:41:22,663 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:41:22,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:41:22,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:41:22,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:41:22,663 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:41:22,663 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:41:22,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:41:22,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:41:22,670 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:41:22,670 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 13, 41, 22, 668070))
2025-04-19 14:41:22,672 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:42:22,685 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:42:22,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:42:22,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:42:22,688 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:42:22,688 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:42:22,689 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:42:22,689 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:42:22,690 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:42:22,691 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 13, 42, 22, 684611))
2025-04-19 14:42:22,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:42:22,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:42:22,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:42:22,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:42:22,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:42:22,695 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:42:22,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:42:22,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:42:22,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:42:22,696 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:42:22,697 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:42:22,697 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:42:22,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:42:22,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:42:22,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:42:22,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:42:22,699 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:42:22,699 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:42:22,699 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:42:22,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:42:22,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:42:22,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:42:22,700 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:42:22,700 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:42:22,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:43:22,707 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:43:22,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:43:22,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:43:22,708 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:43:22,708 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:43:22,708 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:43:22,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:43:22,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:43:22,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:43:22,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:43:22,711 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:43:22,711 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 13, 43, 22, 708666))
2025-04-19 14:43:22,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:43:22,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:43:22,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:43:22,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:43:22,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:43:22,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:43:22,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:43:22,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:43:22,713 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:43:22,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:43:22,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:43:22,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:43:22,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:43:22,714 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:43:22,714 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:43:22,714 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:43:22,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:43:22,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:43:22,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:43:22,714 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:43:22,715 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:43:22,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:44:22,725 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:44:22,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:44:22,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:44:22,727 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:44:22,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:44:22,727 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:44:22,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:44:22,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:44:22,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:44:22,728 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:44:22,728 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:44:22,728 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 19, 13, 44, 22, 724365))
2025-04-19 14:44:22,728 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:44:22,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:44:22,730 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:44:22,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:44:22,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:44:22,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:44:22,731 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:44:22,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:44:22,731 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:44:22,731 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:44:22,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:44:22,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:44:22,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:44:22,732 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:44:22,732 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:44:22,732 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:44:22,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:44:22,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:44:22,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:44:22,733 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:44:22,733 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:44:22,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:45:20,923 - root - INFO - 应用程序关闭中...
2025-04-19 14:45:20,924 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 14:45:20,924 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 14:45:20,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 14:45:20,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 14:45:20,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 14:45:20,925 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 14:45:20,925 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 14:45:20,925 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 14:45:20,926 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 14:45:20,926 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 14:45:20,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:45:20,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:45:20,926 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:45:20,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:45:20,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:45:20,926 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 14:45:20,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:45:20,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:45:20,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 14:45:20,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:45:20,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:45:20,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 14:45:20,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:45:20,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:45:20,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 14:45:20,927 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 14:45:20,927 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 14:45:20,927 - root - INFO - 增强版任务调度器已停止
2025-04-19 14:45:20,927 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 14:45:20,928 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 14:45:20,928 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 14:45:20,928 - data.session - INFO - 数据库连接已关闭
2025-04-19 14:45:22,275 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:45:22,276 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:45:22,339 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 14:45:22,384 - data.session - INFO - 正在初始化数据库...
2025-04-19 14:45:22,408 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 14:45:22,434 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:45:22,434 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,435 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:45:22,436 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,436 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:45:22,436 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,437 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:45:22,437 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 14:45:22,438 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,440 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 14:45:22,440 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,440 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 14:45:22,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,441 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 14:45:22,442 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,443 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 14:45:22,443 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 14:45:22,446 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,447 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 14:45:22,447 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,447 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 14:45:22,448 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,449 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 14:45:22,449 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,450 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 14:45:22,450 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,451 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 14:45:22,452 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:45:22,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:45:22,453 - data.session - INFO - 数据库表初始化完成
2025-04-19 14:45:22,806 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 14:45:22,807 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 14:45:22,807 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 14:45:22,807 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 14:45:22,807 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 14:45:22,807 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 14:45:22,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 14:45:22,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 14:45:22,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 14:45:22,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 14:45:22,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:45:22,808 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 14:45:22,809 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 14:45:22,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:45:22,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:45:22,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:45:22,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:45:22,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:45:22,812 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 14:45:22,812 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 14:45:22,814 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:45:22,815 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:45:22,815 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:45:22,816 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:45:22,816 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:45:22,817 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:45:22,817 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:45:22,817 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:45:22,826 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 14:45:22,826 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1, 1)
2025-04-19 14:45:22,827 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 14:45:22,827 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:45:22,828 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 14:45:22,828 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 14:45:22,828 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 14:45:22,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:45:22,832 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 14:45:22,833 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1000, 2000, 2001)
2025-04-19 14:45:22,834 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:45:22,834 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:45:22,835 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:45:22,835 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1001, datetime.datetime(2025, 4, 19, 13, 45, 22, 829074))
2025-04-19 14:45:22,836 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:45:22,836 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:45:22,837 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 14:45:22,837 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 14:45:22,837 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 14:45:22,837 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 14:46:22,827 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:46:22,828 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:46:22,828 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (1001, datetime.datetime(2025, 4, 19, 13, 46, 22, 827616))
2025-04-19 14:46:22,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:46:22,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:46:22,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:46:22,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:46:22,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:46:22,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:46:22,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:46:22,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:46:22,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:46:22,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:46:22,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:46:22,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:46:22,860 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:46:22,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:46:22,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:46:22,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:46:22,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:46:22,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:46:22,861 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:46:22,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:46:22,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:46:22,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:46:22,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:46:22,861 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:46:22,861 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:46:22,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:46:22,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:46:22,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:46:22,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:46:22,861 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:46:22,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:47:22,831 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:47:22,832 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:47:22,832 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 13, 47, 22, 830558))
2025-04-19 14:47:22,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:47:22,877 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:47:22,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:47:22,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:47:22,878 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:47:22,878 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:47:22,878 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:47:22,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:47:22,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:47:22,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:47:22,879 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:47:22,880 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:47:22,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:47:22,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:47:22,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:47:22,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:47:22,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:47:22,881 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:47:22,881 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:47:22,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:47:22,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:47:22,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:47:22,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:47:22,881 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:47:22,881 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:47:22,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:47:22,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:47:22,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:47:22,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:47:22,881 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:47:22,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:48:22,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:48:22,845 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:48:22,845 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 13, 48, 22, 844872))
2025-04-19 14:48:22,846 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:48:22,892 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:48:22,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:48:22,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:48:22,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:48:22,892 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:48:22,892 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:48:22,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:48:22,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:48:22,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:48:22,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:48:22,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:48:22,893 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:48:22,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:48:22,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:48:22,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:48:22,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:48:22,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:48:22,893 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:48:22,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:48:22,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:48:22,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:48:22,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:48:22,894 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:48:22,894 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:48:22,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:48:22,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:48:22,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:48:22,895 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:48:22,895 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:48:22,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:49:22,857 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:22,858 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:49:22,859 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (1001, datetime.datetime(2025, 4, 19, 13, 49, 22, 856740))
2025-04-19 14:49:22,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:22,918 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:49:22,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:49:22,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:49:22,919 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:49:22,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:49:22,919 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:49:22,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:49:22,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:49:22,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:49:22,920 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:49:22,920 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:49:22,921 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:49:22,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:49:22,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:49:22,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:49:22,922 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:49:22,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:49:22,922 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:49:22,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:49:22,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:49:22,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:49:22,923 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:49:22,924 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:49:22,924 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:49:22,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:49:22,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:49:22,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:49:22,924 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:49:22,924 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:49:22,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:49:46,651 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 14:49:46,653 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,655 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:46,656 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:46,657 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,657 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,659 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:46,659 - sqlalchemy.engine.Engine - INFO - [cached since 0.003942s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:46,660 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,660 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:49:46,660 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:49:46,661 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,661 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:46,661 - sqlalchemy.engine.Engine - INFO - [cached since 0.006564s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:46,664 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:49:46,664 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (1, datetime.datetime(2025, 4, 19, 14, 49, 46, 664110), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:49:46,665 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,673 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:49:46,673 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1, datetime.datetime(2025, 4, 19, 14, 49, 46, 673881), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:49:46,674 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,674 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:49:46,675 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,675 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:46,675 - sqlalchemy.engine.Engine - INFO - [cached since 0.02013s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:46,677 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:49:46,677 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 49, 46, 676865), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 49, 46, 677874), datetime.datetime(2025, 4, 19, 14, 49, 46, 677874), 0)
2025-04-19 14:49:46,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,684 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,685 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:46,685 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37',)
2025-04-19 14:49:46,686 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,686 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37 (优先级 1) 添加到队列 0
2025-04-19 14:49:46,687 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0364秒
2025-04-19 14:49:46,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37, 优先级: 1
2025-04-19 14:49:46,783 - services.execution.task_executor - DEBUG - 任务 5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37 设置超时时间: 3600秒
2025-04-19 14:49:46,784 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,784 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:46,784 - sqlalchemy.engine.Engine - INFO - [cached since 0.09911s ago] ('5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37',)
2025-04-19 14:49:46,786 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:46,786 - sqlalchemy.engine.Engine - INFO - [cached since 0.1306s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:46,787 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:46,787 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (datetime.datetime(2025, 4, 19, 14, 49, 46, 787448), datetime.datetime(2025, 4, 19, 14, 49, 46, 787448), '5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37')
2025-04-19 14:49:46,788 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,795 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:46,795 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 49, 46, 795448), '5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37')
2025-04-19 14:49:46,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,803 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:49:46,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,804 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:49:46,805 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('6b95b9d3-e0bf-4e15-9bda-a08b8afdb7c1', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37', datetime.datetime(2025, 4, 19, 14, 49, 46, 803447), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 49, 46, 804451), datetime.datetime(2025, 4, 19, 14, 49, 46, 804451), 0)
2025-04-19 14:49:46,806 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,814 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:46,814 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('6b95b9d3-e0bf-4e15-9bda-a08b8afdb7c1',)
2025-04-19 14:49:46,815 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:49:46,815 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:49:46,815 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:46,816 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 49, 46, 815458), '6b95b9d3-e0bf-4e15-9bda-a08b8afdb7c1')
2025-04-19 14:49:46,816 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,822 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:49:46,823 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:49:46,823 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:49:46,823 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,824 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:49:46,824 - sqlalchemy.engine.Engine - INFO - [cached since 0.01943s ago] ('16975019-ca2a-480c-9417-9c5cd511a332', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37', datetime.datetime(2025, 4, 19, 14, 49, 46, 823449), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 49, 46, 824448), datetime.datetime(2025, 4, 19, 14, 49, 46, 824448), 0)
2025-04-19 14:49:46,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,831 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 16975019-ca2a-480c-9417-9c5cd511a332
2025-04-19 14:49:46,831 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,831 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:46,831 - sqlalchemy.engine.Engine - INFO - [cached since 0.01752s ago] ('16975019-ca2a-480c-9417-9c5cd511a332',)
2025-04-19 14:49:46,832 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:49:46,832 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:49:46,832 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:46,832 - sqlalchemy.engine.Engine - INFO - [cached since 0.01693s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 49, 46, 832448), '16975019-ca2a-480c-9417-9c5cd511a332')
2025-04-19 14:49:46,833 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,840 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:49:46,841 - sqlalchemy.engine.Engine - INFO - [generated in 0.00017s] ('5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37',)
2025-04-19 14:49:46,841 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37
2025-04-19 14:49:46,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,841 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:49:46,842 - services.execution.handlers.foundation - INFO - 任务 5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37 打印: ['5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37']
2025-04-19 14:49:46,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,843 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:49:46,843 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('e68da568-a2ba-4419-a70a-218fef23a9f9', 1, '{"success": true, "message": "打印成功", "output": {"message": ["5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37', datetime.datetime(2025, 4, 19, 14, 49, 46, 843449), datetime.datetime(2025, 4, 19, 14, 49, 46, 843449), 0)
2025-04-19 14:49:46,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,851 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,852 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:46,852 - sqlalchemy.engine.Engine - INFO - [cached since 0.03857s ago] ('16975019-ca2a-480c-9417-9c5cd511a332',)
2025-04-19 14:49:46,853 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:49:46,853 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:49:46,854 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:46,854 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (datetime.datetime(2025, 4, 19, 14, 49, 46, 853448), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 49, 46, 853448), '16975019-ca2a-480c-9417-9c5cd511a332')
2025-04-19 14:49:46,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,861 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,861 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:49:46,861 - sqlalchemy.engine.Engine - INFO - [cached since 0.01871s ago] ('c515d862-4f78-418a-9dfc-b7bd7ca8f9ed', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37', datetime.datetime(2025, 4, 19, 14, 49, 46, 861454), datetime.datetime(2025, 4, 19, 14, 49, 46, 861454), 0)
2025-04-19 14:49:46,862 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,868 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,868 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:46,868 - sqlalchemy.engine.Engine - INFO - [cached since 0.05426s ago] ('6b95b9d3-e0bf-4e15-9bda-a08b8afdb7c1',)
2025-04-19 14:49:46,869 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:49:46,869 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:49:46,869 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:46,869 - sqlalchemy.engine.Engine - INFO - [cached since 0.01567s ago] (datetime.datetime(2025, 4, 19, 14, 49, 46, 869448), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 49, 46, 869448), '6b95b9d3-e0bf-4e15-9bda-a08b8afdb7c1')
2025-04-19 14:49:46,870 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,875 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:46,875 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:46,876 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (datetime.datetime(2025, 4, 19, 14, 49, 46, 875448), '任务执行成功', 1000, 80, datetime.datetime(2025, 4, 19, 14, 49, 46, 875448), '5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37')
2025-04-19 14:49:46,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:46,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 5914fb03-f0d5-4bdf-bb7d-1d37cc8c2a37, 结果: True
2025-04-19 14:49:53,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,015 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:53,016 - sqlalchemy.engine.Engine - INFO - [cached since 6.361s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:53,017 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:49:53,018 - sqlalchemy.engine.Engine - INFO - [cached since 6.341s ago] ('38699070-899f-49f2-9770-db96932d95a4', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 49, 53, 17229), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 49, 53, 17229), datetime.datetime(2025, 4, 19, 14, 49, 53, 17229), 0)
2025-04-19 14:49:53,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,034 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,034 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:53,035 - sqlalchemy.engine.Engine - INFO - [cached since 6.35s ago] ('38699070-899f-49f2-9770-db96932d95a4',)
2025-04-19 14:49:53,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,038 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 38699070-899f-49f2-9770-db96932d95a4 (优先级 1) 添加到队列 0
2025-04-19 14:49:53,038 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:49:53,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 38699070-899f-49f2-9770-db96932d95a4, 优先级: 1
2025-04-19 14:49:53,126 - services.execution.task_executor - DEBUG - 任务 38699070-899f-49f2-9770-db96932d95a4 设置超时时间: 3600秒
2025-04-19 14:49:53,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,126 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:53,127 - sqlalchemy.engine.Engine - INFO - [cached since 6.442s ago] ('38699070-899f-49f2-9770-db96932d95a4',)
2025-04-19 14:49:53,128 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:53,128 - sqlalchemy.engine.Engine - INFO - [cached since 6.473s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:53,129 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:53,130 - sqlalchemy.engine.Engine - INFO - [cached since 6.343s ago] (datetime.datetime(2025, 4, 19, 14, 49, 53, 129890), datetime.datetime(2025, 4, 19, 14, 49, 53, 129890), '38699070-899f-49f2-9770-db96932d95a4')
2025-04-19 14:49:53,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,140 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,140 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:53,141 - sqlalchemy.engine.Engine - INFO - [cached since 6.346s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 49, 53, 140270), '38699070-899f-49f2-9770-db96932d95a4')
2025-04-19 14:49:53,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,147 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:49:53,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,150 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:49:53,150 - sqlalchemy.engine.Engine - INFO - [cached since 6.346s ago] ('d091b7da-7b7c-434b-ba5f-912f83d812bf', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '38699070-899f-49f2-9770-db96932d95a4', datetime.datetime(2025, 4, 19, 14, 49, 53, 147883), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 49, 53, 150915), datetime.datetime(2025, 4, 19, 14, 49, 53, 150915), 0)
2025-04-19 14:49:53,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,163 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:53,163 - sqlalchemy.engine.Engine - INFO - [cached since 6.349s ago] ('d091b7da-7b7c-434b-ba5f-912f83d812bf',)
2025-04-19 14:49:53,165 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:49:53,165 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:49:53,165 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:53,165 - sqlalchemy.engine.Engine - INFO - [cached since 6.35s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 49, 53, 165315), 'd091b7da-7b7c-434b-ba5f-912f83d812bf')
2025-04-19 14:49:53,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,174 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:49:53,174 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:49:53,174 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:49:53,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,176 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:49:53,176 - sqlalchemy.engine.Engine - INFO - [cached since 6.372s ago] ('d4e2d4c4-3150-4a05-bacd-0e94b5e8b50e', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '38699070-899f-49f2-9770-db96932d95a4', datetime.datetime(2025, 4, 19, 14, 49, 53, 175495), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 49, 53, 176323), datetime.datetime(2025, 4, 19, 14, 49, 53, 176323), 0)
2025-04-19 14:49:53,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,192 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: d4e2d4c4-3150-4a05-bacd-0e94b5e8b50e
2025-04-19 14:49:53,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,193 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:53,193 - sqlalchemy.engine.Engine - INFO - [cached since 6.379s ago] ('d4e2d4c4-3150-4a05-bacd-0e94b5e8b50e',)
2025-04-19 14:49:53,194 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:49:53,194 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:49:53,194 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:53,195 - sqlalchemy.engine.Engine - INFO - [cached since 6.38s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 49, 53, 194395), 'd4e2d4c4-3150-4a05-bacd-0e94b5e8b50e')
2025-04-19 14:49:53,196 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,204 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:49:53,204 - sqlalchemy.engine.Engine - INFO - [cached since 6.364s ago] ('38699070-899f-49f2-9770-db96932d95a4',)
2025-04-19 14:49:53,204 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 38699070-899f-49f2-9770-db96932d95a4
2025-04-19 14:49:53,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,205 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:49:53,205 - services.execution.handlers.foundation - INFO - 任务 38699070-899f-49f2-9770-db96932d95a4 打印: ['38699070-899f-49f2-9770-db96932d95a4']
2025-04-19 14:49:53,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,207 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:49:53,207 - sqlalchemy.engine.Engine - INFO - [cached since 6.364s ago] ('dfa17caa-0fbc-42bd-8076-065f48cd8103', 1, '{"success": true, "message": "打印成功", "output": {"message": ["38699070-899f-49f2-9770-db96932d95a4"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '38699070-899f-49f2-9770-db96932d95a4', datetime.datetime(2025, 4, 19, 14, 49, 53, 207306), datetime.datetime(2025, 4, 19, 14, 49, 53, 207306), 0)
2025-04-19 14:49:53,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,215 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:53,216 - sqlalchemy.engine.Engine - INFO - [cached since 6.402s ago] ('d4e2d4c4-3150-4a05-bacd-0e94b5e8b50e',)
2025-04-19 14:49:53,216 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:49:53,217 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:49:53,217 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:53,217 - sqlalchemy.engine.Engine - INFO - [cached since 6.364s ago] (datetime.datetime(2025, 4, 19, 14, 49, 53, 217918), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 49, 53, 217918), 'd4e2d4c4-3150-4a05-bacd-0e94b5e8b50e')
2025-04-19 14:49:53,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,226 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,226 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:49:53,227 - sqlalchemy.engine.Engine - INFO - [cached since 6.384s ago] ('c13c343d-927b-4f9c-ab7c-a54bb59ba480', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["38699070-899f-49f2-9770-db96932d95a4"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '38699070-899f-49f2-9770-db96932d95a4', datetime.datetime(2025, 4, 19, 14, 49, 53, 226326), datetime.datetime(2025, 4, 19, 14, 49, 53, 226326), 0)
2025-04-19 14:49:53,227 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,232 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:53,233 - sqlalchemy.engine.Engine - INFO - [cached since 6.419s ago] ('d091b7da-7b7c-434b-ba5f-912f83d812bf',)
2025-04-19 14:49:53,233 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:49:53,234 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:49:53,234 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:53,234 - sqlalchemy.engine.Engine - INFO - [cached since 6.38s ago] (datetime.datetime(2025, 4, 19, 14, 49, 53, 234290), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 49, 53, 234290), 'd091b7da-7b7c-434b-ba5f-912f83d812bf')
2025-04-19 14:49:53,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:53,243 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:53,243 - sqlalchemy.engine.Engine - INFO - [cached since 6.367s ago] (datetime.datetime(2025, 4, 19, 14, 49, 53, 242046), '任务执行成功', 1000, 101, datetime.datetime(2025, 4, 19, 14, 49, 53, 243177), '38699070-899f-49f2-9770-db96932d95a4')
2025-04-19 14:49:53,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:53,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: 38699070-899f-49f2-9770-db96932d95a4, 结果: True
2025-04-19 14:49:58,035 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,036 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:58,037 - sqlalchemy.engine.Engine - INFO - [cached since 11.38s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:58,042 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:49:58,042 - sqlalchemy.engine.Engine - INFO - [cached since 11.37s ago] ('a938e56a-7912-455b-b8fa-2ea267183406', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 49, 58, 42547), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 49, 58, 42547), datetime.datetime(2025, 4, 19, 14, 49, 58, 42547), 0)
2025-04-19 14:49:58,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,061 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,061 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:58,062 - sqlalchemy.engine.Engine - INFO - [cached since 11.38s ago] ('a938e56a-7912-455b-b8fa-2ea267183406',)
2025-04-19 14:49:58,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,065 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 a938e56a-7912-455b-b8fa-2ea267183406 (优先级 1) 添加到队列 0
2025-04-19 14:49:58,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:49:58,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: a938e56a-7912-455b-b8fa-2ea267183406, 优先级: 1
2025-04-19 14:49:58,141 - services.execution.task_executor - DEBUG - 任务 a938e56a-7912-455b-b8fa-2ea267183406 设置超时时间: 3600秒
2025-04-19 14:49:58,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,143 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:58,143 - sqlalchemy.engine.Engine - INFO - [cached since 11.46s ago] ('a938e56a-7912-455b-b8fa-2ea267183406',)
2025-04-19 14:49:58,145 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:58,145 - sqlalchemy.engine.Engine - INFO - [cached since 11.49s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:58,146 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:58,146 - sqlalchemy.engine.Engine - INFO - [cached since 11.36s ago] (datetime.datetime(2025, 4, 19, 14, 49, 58, 146609), datetime.datetime(2025, 4, 19, 14, 49, 58, 146609), 'a938e56a-7912-455b-b8fa-2ea267183406')
2025-04-19 14:49:58,147 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,159 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:58,160 - sqlalchemy.engine.Engine - INFO - [cached since 11.36s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 49, 58, 159322), 'a938e56a-7912-455b-b8fa-2ea267183406')
2025-04-19 14:49:58,160 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,167 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:49:58,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,169 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:49:58,169 - sqlalchemy.engine.Engine - INFO - [cached since 11.37s ago] ('8ea5f569-fa3b-47a2-b209-48eb1325f82d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a938e56a-7912-455b-b8fa-2ea267183406', datetime.datetime(2025, 4, 19, 14, 49, 58, 167896), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 49, 58, 169943), datetime.datetime(2025, 4, 19, 14, 49, 58, 169943), 0)
2025-04-19 14:49:58,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,178 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:58,178 - sqlalchemy.engine.Engine - INFO - [cached since 11.36s ago] ('8ea5f569-fa3b-47a2-b209-48eb1325f82d',)
2025-04-19 14:49:58,180 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:49:58,180 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:49:58,180 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:58,180 - sqlalchemy.engine.Engine - INFO - [cached since 11.36s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 49, 58, 180090), '8ea5f569-fa3b-47a2-b209-48eb1325f82d')
2025-04-19 14:49:58,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,186 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:49:58,186 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:49:58,187 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:49:58,187 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,187 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:49:58,187 - sqlalchemy.engine.Engine - INFO - [cached since 11.38s ago] ('c45eb02a-56e5-4f58-890c-dcc02fb0176b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a938e56a-7912-455b-b8fa-2ea267183406', datetime.datetime(2025, 4, 19, 14, 49, 58, 187746), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 49, 58, 187746), datetime.datetime(2025, 4, 19, 14, 49, 58, 187746), 0)
2025-04-19 14:49:58,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,192 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c45eb02a-56e5-4f58-890c-dcc02fb0176b
2025-04-19 14:49:58,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,193 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:58,193 - sqlalchemy.engine.Engine - INFO - [cached since 11.38s ago] ('c45eb02a-56e5-4f58-890c-dcc02fb0176b',)
2025-04-19 14:49:58,194 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:49:58,194 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:49:58,194 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:58,194 - sqlalchemy.engine.Engine - INFO - [cached since 11.38s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 49, 58, 194601), 'c45eb02a-56e5-4f58-890c-dcc02fb0176b')
2025-04-19 14:49:58,194 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,201 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,201 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:49:58,201 - sqlalchemy.engine.Engine - INFO - [cached since 11.36s ago] ('a938e56a-7912-455b-b8fa-2ea267183406',)
2025-04-19 14:49:58,201 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: a938e56a-7912-455b-b8fa-2ea267183406
2025-04-19 14:49:58,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,201 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:49:58,203 - services.execution.handlers.foundation - INFO - 任务 a938e56a-7912-455b-b8fa-2ea267183406 打印: ['a938e56a-7912-455b-b8fa-2ea267183406']
2025-04-19 14:49:58,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,203 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:49:58,203 - sqlalchemy.engine.Engine - INFO - [cached since 11.36s ago] ('43f8cf96-708c-4c09-b53d-26aa86cd47da', 1, '{"success": true, "message": "打印成功", "output": {"message": ["a938e56a-7912-455b-b8fa-2ea267183406"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a938e56a-7912-455b-b8fa-2ea267183406', datetime.datetime(2025, 4, 19, 14, 49, 58, 203139), datetime.datetime(2025, 4, 19, 14, 49, 58, 203139), 0)
2025-04-19 14:49:58,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,210 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,210 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:58,210 - sqlalchemy.engine.Engine - INFO - [cached since 11.4s ago] ('c45eb02a-56e5-4f58-890c-dcc02fb0176b',)
2025-04-19 14:49:58,211 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:49:58,211 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:49:58,211 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:58,211 - sqlalchemy.engine.Engine - INFO - [cached since 11.36s ago] (datetime.datetime(2025, 4, 19, 14, 49, 58, 211899), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 49, 58, 211899), 'c45eb02a-56e5-4f58-890c-dcc02fb0176b')
2025-04-19 14:49:58,212 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,219 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:49:58,219 - sqlalchemy.engine.Engine - INFO - [cached since 11.38s ago] ('483cef2a-d1a9-4e84-aee3-06fd58c40889', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["a938e56a-7912-455b-b8fa-2ea267183406"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a938e56a-7912-455b-b8fa-2ea267183406', datetime.datetime(2025, 4, 19, 14, 49, 58, 219432), datetime.datetime(2025, 4, 19, 14, 49, 58, 219432), 0)
2025-04-19 14:49:58,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,228 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:49:58,229 - sqlalchemy.engine.Engine - INFO - [cached since 11.41s ago] ('8ea5f569-fa3b-47a2-b209-48eb1325f82d',)
2025-04-19 14:49:58,229 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:49:58,230 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:49:58,230 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:49:58,230 - sqlalchemy.engine.Engine - INFO - [cached since 11.38s ago] (datetime.datetime(2025, 4, 19, 14, 49, 58, 230123), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 49, 58, 230123), '8ea5f569-fa3b-47a2-b209-48eb1325f82d')
2025-04-19 14:49:58,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:58,237 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:58,237 - sqlalchemy.engine.Engine - INFO - [cached since 11.36s ago] (datetime.datetime(2025, 4, 19, 14, 49, 58, 237121), '任务执行成功', 1000, 77, datetime.datetime(2025, 4, 19, 14, 49, 58, 237121), 'a938e56a-7912-455b-b8fa-2ea267183406')
2025-04-19 14:49:58,238 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:58,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: a938e56a-7912-455b-b8fa-2ea267183406, 结果: True
2025-04-19 14:49:59,930 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 14:49:59,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:59,932 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:59,932 - sqlalchemy.engine.Engine - INFO - [cached since 13.28s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:59,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:59,934 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:59,934 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:59,934 - sqlalchemy.engine.Engine - INFO - [cached since 13.28s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:59,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:59,937 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:49:59,938 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:59,938 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:59,938 - sqlalchemy.engine.Engine - INFO - [cached since 13.28s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:59,939 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:59,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:59,940 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:49:59,940 - sqlalchemy.engine.Engine - INFO - [cached since 13.27s ago] (1, datetime.datetime(2025, 4, 19, 14, 49, 59, 940195), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:49:59,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:59,954 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:49:59,954 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:59,955 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:49:59,955 - sqlalchemy.engine.Engine - INFO - [cached since 13.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:49:59,956 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:49:59,956 - sqlalchemy.engine.Engine - INFO - [cached since 13.28s ago] ('fb223890-555d-4236-9f2f-b684e817ab13', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 49, 59, 956174), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 49, 59, 956174), datetime.datetime(2025, 4, 19, 14, 49, 59, 956174), 0)
2025-04-19 14:49:59,957 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:59,967 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:49:59,967 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:49:59,968 - sqlalchemy.engine.Engine - INFO - [cached since 13.28s ago] ('fb223890-555d-4236-9f2f-b684e817ab13',)
2025-04-19 14:49:59,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:49:59,971 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 fb223890-555d-4236-9f2f-b684e817ab13 (优先级 1) 添加到队列 0
2025-04-19 14:49:59,971 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0415秒
2025-04-19 14:50:00,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: fb223890-555d-4236-9f2f-b684e817ab13, 优先级: 1
2025-04-19 14:50:00,080 - services.execution.task_executor - DEBUG - 任务 fb223890-555d-4236-9f2f-b684e817ab13 设置超时时间: 3600秒
2025-04-19 14:50:00,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,082 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:00,082 - sqlalchemy.engine.Engine - INFO - [cached since 13.4s ago] ('fb223890-555d-4236-9f2f-b684e817ab13',)
2025-04-19 14:50:00,083 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:00,083 - sqlalchemy.engine.Engine - INFO - [cached since 13.43s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:00,084 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:00,085 - sqlalchemy.engine.Engine - INFO - [cached since 13.3s ago] (datetime.datetime(2025, 4, 19, 14, 50, 0, 84982), datetime.datetime(2025, 4, 19, 14, 50, 0, 84982), 'fb223890-555d-4236-9f2f-b684e817ab13')
2025-04-19 14:50:00,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,095 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:00,096 - sqlalchemy.engine.Engine - INFO - [cached since 13.3s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 50, 0, 95181), 'fb223890-555d-4236-9f2f-b684e817ab13')
2025-04-19 14:50:00,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,103 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:50:00,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,104 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:00,104 - sqlalchemy.engine.Engine - INFO - [cached since 13.3s ago] ('891cdc31-964f-4165-be25-8da631b4fae1', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fb223890-555d-4236-9f2f-b684e817ab13', datetime.datetime(2025, 4, 19, 14, 50, 0, 103179), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 0, 104173), datetime.datetime(2025, 4, 19, 14, 50, 0, 104173), 0)
2025-04-19 14:50:00,104 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,112 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:00,112 - sqlalchemy.engine.Engine - INFO - [cached since 13.3s ago] ('891cdc31-964f-4165-be25-8da631b4fae1',)
2025-04-19 14:50:00,112 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:00,113 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:00,115 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:00,115 - sqlalchemy.engine.Engine - INFO - [cached since 13.3s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 0, 113250), '891cdc31-964f-4165-be25-8da631b4fae1')
2025-04-19 14:50:00,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,122 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:50:00,122 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:50:00,122 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:50:00,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,124 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:00,124 - sqlalchemy.engine.Engine - INFO - [cached since 13.32s ago] ('2d9a8807-2b47-4a85-9ccd-ba6b40e251d4', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fb223890-555d-4236-9f2f-b684e817ab13', datetime.datetime(2025, 4, 19, 14, 50, 0, 122290), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 0, 124285), datetime.datetime(2025, 4, 19, 14, 50, 0, 124285), 0)
2025-04-19 14:50:00,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,131 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2d9a8807-2b47-4a85-9ccd-ba6b40e251d4
2025-04-19 14:50:00,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,131 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:00,131 - sqlalchemy.engine.Engine - INFO - [cached since 13.32s ago] ('2d9a8807-2b47-4a85-9ccd-ba6b40e251d4',)
2025-04-19 14:50:00,132 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:00,132 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:00,133 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:00,133 - sqlalchemy.engine.Engine - INFO - [cached since 13.32s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 0, 133914), '2d9a8807-2b47-4a85-9ccd-ba6b40e251d4')
2025-04-19 14:50:00,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,144 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,145 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:50:00,145 - sqlalchemy.engine.Engine - INFO - [cached since 13.31s ago] ('fb223890-555d-4236-9f2f-b684e817ab13',)
2025-04-19 14:50:00,145 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: fb223890-555d-4236-9f2f-b684e817ab13
2025-04-19 14:50:00,146 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,147 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:50:00,149 - services.execution.handlers.foundation - INFO - 任务 fb223890-555d-4236-9f2f-b684e817ab13 打印: ['fb223890-555d-4236-9f2f-b684e817ab13']
2025-04-19 14:50:00,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,150 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:00,150 - sqlalchemy.engine.Engine - INFO - [cached since 13.31s ago] ('347b720d-56b7-4a11-aed5-5179ce7b96b5', 1, '{"success": true, "message": "打印成功", "output": {"message": ["fb223890-555d-4236-9f2f-b684e817ab13"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fb223890-555d-4236-9f2f-b684e817ab13', datetime.datetime(2025, 4, 19, 14, 50, 0, 150395), datetime.datetime(2025, 4, 19, 14, 50, 0, 150395), 0)
2025-04-19 14:50:00,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,156 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,157 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:00,157 - sqlalchemy.engine.Engine - INFO - [cached since 13.34s ago] ('2d9a8807-2b47-4a85-9ccd-ba6b40e251d4',)
2025-04-19 14:50:00,157 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:00,158 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:00,158 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:00,158 - sqlalchemy.engine.Engine - INFO - [cached since 13.3s ago] (datetime.datetime(2025, 4, 19, 14, 50, 0, 158914), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 0, 158914), '2d9a8807-2b47-4a85-9ccd-ba6b40e251d4')
2025-04-19 14:50:00,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,166 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:00,166 - sqlalchemy.engine.Engine - INFO - [cached since 13.32s ago] ('1c6b47f0-2765-49b6-b55a-ec7357d64b20', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["fb223890-555d-4236-9f2f-b684e817ab13"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fb223890-555d-4236-9f2f-b684e817ab13', datetime.datetime(2025, 4, 19, 14, 50, 0, 166392), datetime.datetime(2025, 4, 19, 14, 50, 0, 166392), 0)
2025-04-19 14:50:00,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,174 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:00,174 - sqlalchemy.engine.Engine - INFO - [cached since 13.36s ago] ('891cdc31-964f-4165-be25-8da631b4fae1',)
2025-04-19 14:50:00,174 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:00,175 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:00,175 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:00,175 - sqlalchemy.engine.Engine - INFO - [cached since 13.32s ago] (datetime.datetime(2025, 4, 19, 14, 50, 0, 175947), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 0, 175947), '891cdc31-964f-4165-be25-8da631b4fae1')
2025-04-19 14:50:00,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:00,188 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:00,189 - sqlalchemy.engine.Engine - INFO - [cached since 13.31s ago] (datetime.datetime(2025, 4, 19, 14, 50, 0, 188101), '任务执行成功', 1000, 92, datetime.datetime(2025, 4, 19, 14, 50, 0, 188101), 'fb223890-555d-4236-9f2f-b684e817ab13')
2025-04-19 14:50:00,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: fb223890-555d-4236-9f2f-b684e817ab13, 结果: True
2025-04-19 14:50:03,064 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,064 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:03,066 - sqlalchemy.engine.Engine - INFO - [cached since 16.41s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:03,068 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:50:03,068 - sqlalchemy.engine.Engine - INFO - [cached since 16.39s ago] ('a5751fcb-3bb5-4e95-bd3f-c9931ef2671f', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 50, 3, 68674), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 50, 3, 68674), datetime.datetime(2025, 4, 19, 14, 50, 3, 68674), 0)
2025-04-19 14:50:03,069 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,083 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,083 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:03,083 - sqlalchemy.engine.Engine - INFO - [cached since 16.4s ago] ('a5751fcb-3bb5-4e95-bd3f-c9931ef2671f',)
2025-04-19 14:50:03,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,086 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 a5751fcb-3bb5-4e95-bd3f-c9931ef2671f (优先级 1) 添加到队列 0
2025-04-19 14:50:03,086 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:50:03,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: a5751fcb-3bb5-4e95-bd3f-c9931ef2671f, 优先级: 1
2025-04-19 14:50:03,140 - services.execution.task_executor - DEBUG - 任务 a5751fcb-3bb5-4e95-bd3f-c9931ef2671f 设置超时时间: 3600秒
2025-04-19 14:50:03,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,141 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:03,142 - sqlalchemy.engine.Engine - INFO - [cached since 16.46s ago] ('a5751fcb-3bb5-4e95-bd3f-c9931ef2671f',)
2025-04-19 14:50:03,143 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:03,143 - sqlalchemy.engine.Engine - INFO - [cached since 16.49s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:03,144 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:03,144 - sqlalchemy.engine.Engine - INFO - [cached since 16.36s ago] (datetime.datetime(2025, 4, 19, 14, 50, 3, 144200), datetime.datetime(2025, 4, 19, 14, 50, 3, 144200), 'a5751fcb-3bb5-4e95-bd3f-c9931ef2671f')
2025-04-19 14:50:03,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,152 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:03,153 - sqlalchemy.engine.Engine - INFO - [cached since 16.36s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 50, 3, 152063), 'a5751fcb-3bb5-4e95-bd3f-c9931ef2671f')
2025-04-19 14:50:03,153 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,160 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:50:03,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,161 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:03,162 - sqlalchemy.engine.Engine - INFO - [cached since 16.36s ago] ('10b32179-e8e4-44d4-88d2-50cb6d6e3dca', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a5751fcb-3bb5-4e95-bd3f-c9931ef2671f', datetime.datetime(2025, 4, 19, 14, 50, 3, 160040), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 3, 161036), datetime.datetime(2025, 4, 19, 14, 50, 3, 161036), 0)
2025-04-19 14:50:03,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,169 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:03,169 - sqlalchemy.engine.Engine - INFO - [cached since 16.35s ago] ('10b32179-e8e4-44d4-88d2-50cb6d6e3dca',)
2025-04-19 14:50:03,170 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:03,170 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:03,171 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:03,171 - sqlalchemy.engine.Engine - INFO - [cached since 16.36s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 3, 171034), '10b32179-e8e4-44d4-88d2-50cb6d6e3dca')
2025-04-19 14:50:03,171 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,177 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:50:03,177 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:50:03,177 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:50:03,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,178 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:03,178 - sqlalchemy.engine.Engine - INFO - [cached since 16.37s ago] ('e96b84d2-c603-4d0b-91af-3816310862a0', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a5751fcb-3bb5-4e95-bd3f-c9931ef2671f', datetime.datetime(2025, 4, 19, 14, 50, 3, 178748), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 3, 178748), datetime.datetime(2025, 4, 19, 14, 50, 3, 178748), 0)
2025-04-19 14:50:03,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,185 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e96b84d2-c603-4d0b-91af-3816310862a0
2025-04-19 14:50:03,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,186 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:03,187 - sqlalchemy.engine.Engine - INFO - [cached since 16.37s ago] ('e96b84d2-c603-4d0b-91af-3816310862a0',)
2025-04-19 14:50:03,188 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:03,188 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:03,188 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:03,188 - sqlalchemy.engine.Engine - INFO - [cached since 16.37s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 3, 188751), 'e96b84d2-c603-4d0b-91af-3816310862a0')
2025-04-19 14:50:03,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,196 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:50:03,196 - sqlalchemy.engine.Engine - INFO - [cached since 16.36s ago] ('a5751fcb-3bb5-4e95-bd3f-c9931ef2671f',)
2025-04-19 14:50:03,196 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: a5751fcb-3bb5-4e95-bd3f-c9931ef2671f
2025-04-19 14:50:03,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,197 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:50:03,197 - services.execution.handlers.foundation - INFO - 任务 a5751fcb-3bb5-4e95-bd3f-c9931ef2671f 打印: ['a5751fcb-3bb5-4e95-bd3f-c9931ef2671f']
2025-04-19 14:50:03,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,198 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:03,198 - sqlalchemy.engine.Engine - INFO - [cached since 16.36s ago] ('a50da570-607e-40e8-a89c-f644f8768ad3', 1, '{"success": true, "message": "打印成功", "output": {"message": ["a5751fcb-3bb5-4e95-bd3f-c9931ef2671f"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a5751fcb-3bb5-4e95-bd3f-c9931ef2671f', datetime.datetime(2025, 4, 19, 14, 50, 3, 198539), datetime.datetime(2025, 4, 19, 14, 50, 3, 198539), 0)
2025-04-19 14:50:03,199 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,205 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,205 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:03,205 - sqlalchemy.engine.Engine - INFO - [cached since 16.39s ago] ('e96b84d2-c603-4d0b-91af-3816310862a0',)
2025-04-19 14:50:03,206 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:03,206 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:03,206 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:03,206 - sqlalchemy.engine.Engine - INFO - [cached since 16.35s ago] (datetime.datetime(2025, 4, 19, 14, 50, 3, 206540), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 3, 206540), 'e96b84d2-c603-4d0b-91af-3816310862a0')
2025-04-19 14:50:03,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,213 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:03,213 - sqlalchemy.engine.Engine - INFO - [cached since 16.37s ago] ('eabae112-888f-4d2e-954a-02033ba24d2a', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["a5751fcb-3bb5-4e95-bd3f-c9931ef2671f"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a5751fcb-3bb5-4e95-bd3f-c9931ef2671f', datetime.datetime(2025, 4, 19, 14, 50, 3, 213799), datetime.datetime(2025, 4, 19, 14, 50, 3, 213799), 0)
2025-04-19 14:50:03,214 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,222 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:03,222 - sqlalchemy.engine.Engine - INFO - [cached since 16.41s ago] ('10b32179-e8e4-44d4-88d2-50cb6d6e3dca',)
2025-04-19 14:50:03,223 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:03,223 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:03,223 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:03,224 - sqlalchemy.engine.Engine - INFO - [cached since 16.37s ago] (datetime.datetime(2025, 4, 19, 14, 50, 3, 223173), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 3, 223173), '10b32179-e8e4-44d4-88d2-50cb6d6e3dca')
2025-04-19 14:50:03,224 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:03,230 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:03,231 - sqlalchemy.engine.Engine - INFO - [cached since 16.36s ago] (datetime.datetime(2025, 4, 19, 14, 50, 3, 229872), '任务执行成功', 1000, 77, datetime.datetime(2025, 4, 19, 14, 50, 3, 230929), 'a5751fcb-3bb5-4e95-bd3f-c9931ef2671f')
2025-04-19 14:50:03,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:03,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: a5751fcb-3bb5-4e95-bd3f-c9931ef2671f, 结果: True
2025-04-19 14:50:08,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,097 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:08,098 - sqlalchemy.engine.Engine - INFO - [cached since 21.44s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:08,100 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:50:08,101 - sqlalchemy.engine.Engine - INFO - [cached since 21.42s ago] ('4c841faf-8c3d-4130-a500-d022fda1540f', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 50, 8, 100810), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 50, 8, 100810), datetime.datetime(2025, 4, 19, 14, 50, 8, 100810), 0)
2025-04-19 14:50:08,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,118 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:08,119 - sqlalchemy.engine.Engine - INFO - [cached since 21.43s ago] ('4c841faf-8c3d-4130-a500-d022fda1540f',)
2025-04-19 14:50:08,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,121 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 4c841faf-8c3d-4130-a500-d022fda1540f (优先级 1) 添加到队列 0
2025-04-19 14:50:08,121 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:50:08,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 4c841faf-8c3d-4130-a500-d022fda1540f, 优先级: 1
2025-04-19 14:50:08,160 - services.execution.task_executor - DEBUG - 任务 4c841faf-8c3d-4130-a500-d022fda1540f 设置超时时间: 3600秒
2025-04-19 14:50:08,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,161 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:08,161 - sqlalchemy.engine.Engine - INFO - [cached since 21.48s ago] ('4c841faf-8c3d-4130-a500-d022fda1540f',)
2025-04-19 14:50:08,163 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:08,163 - sqlalchemy.engine.Engine - INFO - [cached since 21.51s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:08,164 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:08,164 - sqlalchemy.engine.Engine - INFO - [cached since 21.38s ago] (datetime.datetime(2025, 4, 19, 14, 50, 8, 164505), datetime.datetime(2025, 4, 19, 14, 50, 8, 164505), '4c841faf-8c3d-4130-a500-d022fda1540f')
2025-04-19 14:50:08,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,176 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:08,176 - sqlalchemy.engine.Engine - INFO - [cached since 21.38s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 50, 8, 176512), '4c841faf-8c3d-4130-a500-d022fda1540f')
2025-04-19 14:50:08,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,185 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:50:08,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,187 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:08,187 - sqlalchemy.engine.Engine - INFO - [cached since 21.38s ago] ('aaed9903-64cc-4b09-aced-927fae6a7aeb', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4c841faf-8c3d-4130-a500-d022fda1540f', datetime.datetime(2025, 4, 19, 14, 50, 8, 185509), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 8, 187509), datetime.datetime(2025, 4, 19, 14, 50, 8, 187509), 0)
2025-04-19 14:50:08,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,196 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:08,196 - sqlalchemy.engine.Engine - INFO - [cached since 21.38s ago] ('aaed9903-64cc-4b09-aced-927fae6a7aeb',)
2025-04-19 14:50:08,197 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:08,197 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:08,197 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:08,198 - sqlalchemy.engine.Engine - INFO - [cached since 21.38s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 8, 197506), 'aaed9903-64cc-4b09-aced-927fae6a7aeb')
2025-04-19 14:50:08,199 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,206 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:50:08,206 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:50:08,206 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:50:08,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,206 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:08,206 - sqlalchemy.engine.Engine - INFO - [cached since 21.4s ago] ('fffb4ea6-686e-40dc-9e77-ff410964de0b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4c841faf-8c3d-4130-a500-d022fda1540f', datetime.datetime(2025, 4, 19, 14, 50, 8, 206959), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 8, 206959), datetime.datetime(2025, 4, 19, 14, 50, 8, 206959), 0)
2025-04-19 14:50:08,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,213 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: fffb4ea6-686e-40dc-9e77-ff410964de0b
2025-04-19 14:50:08,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,214 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:08,214 - sqlalchemy.engine.Engine - INFO - [cached since 21.4s ago] ('fffb4ea6-686e-40dc-9e77-ff410964de0b',)
2025-04-19 14:50:08,214 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:08,215 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:08,215 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:08,215 - sqlalchemy.engine.Engine - INFO - [cached since 21.4s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 8, 215006), 'fffb4ea6-686e-40dc-9e77-ff410964de0b')
2025-04-19 14:50:08,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,225 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:50:08,226 - sqlalchemy.engine.Engine - INFO - [cached since 21.38s ago] ('4c841faf-8c3d-4130-a500-d022fda1540f',)
2025-04-19 14:50:08,228 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 4c841faf-8c3d-4130-a500-d022fda1540f
2025-04-19 14:50:08,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,229 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:50:08,229 - services.execution.handlers.foundation - INFO - 任务 4c841faf-8c3d-4130-a500-d022fda1540f 打印: ['4c841faf-8c3d-4130-a500-d022fda1540f']
2025-04-19 14:50:08,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,229 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:08,230 - sqlalchemy.engine.Engine - INFO - [cached since 21.39s ago] ('d4b4959f-6c65-4301-8a42-959985e4114b', 1, '{"success": true, "message": "打印成功", "output": {"message": ["4c841faf-8c3d-4130-a500-d022fda1540f"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4c841faf-8c3d-4130-a500-d022fda1540f', datetime.datetime(2025, 4, 19, 14, 50, 8, 229565), datetime.datetime(2025, 4, 19, 14, 50, 8, 229565), 0)
2025-04-19 14:50:08,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,237 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:08,237 - sqlalchemy.engine.Engine - INFO - [cached since 21.42s ago] ('fffb4ea6-686e-40dc-9e77-ff410964de0b',)
2025-04-19 14:50:08,238 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:08,238 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:08,238 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:08,239 - sqlalchemy.engine.Engine - INFO - [cached since 21.39s ago] (datetime.datetime(2025, 4, 19, 14, 50, 8, 238571), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 8, 238571), 'fffb4ea6-686e-40dc-9e77-ff410964de0b')
2025-04-19 14:50:08,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,245 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,246 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:08,246 - sqlalchemy.engine.Engine - INFO - [cached since 21.4s ago] ('c9090cf3-e113-46c2-83b5-5cd7c9fd411a', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["4c841faf-8c3d-4130-a500-d022fda1540f"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4c841faf-8c3d-4130-a500-d022fda1540f', datetime.datetime(2025, 4, 19, 14, 50, 8, 246572), datetime.datetime(2025, 4, 19, 14, 50, 8, 246572), 0)
2025-04-19 14:50:08,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,254 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:08,254 - sqlalchemy.engine.Engine - INFO - [cached since 21.44s ago] ('aaed9903-64cc-4b09-aced-927fae6a7aeb',)
2025-04-19 14:50:08,254 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:08,255 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:08,255 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:08,255 - sqlalchemy.engine.Engine - INFO - [cached since 21.4s ago] (datetime.datetime(2025, 4, 19, 14, 50, 8, 255713), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 8, 255713), 'aaed9903-64cc-4b09-aced-927fae6a7aeb')
2025-04-19 14:50:08,256 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:08,263 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:08,263 - sqlalchemy.engine.Engine - INFO - [cached since 21.39s ago] (datetime.datetime(2025, 4, 19, 14, 50, 8, 262728), '任务执行成功', 1000, 87, datetime.datetime(2025, 4, 19, 14, 50, 8, 263744), '4c841faf-8c3d-4130-a500-d022fda1540f')
2025-04-19 14:50:08,263 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:08,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: 4c841faf-8c3d-4130-a500-d022fda1540f, 结果: True
2025-04-19 14:50:13,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,136 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:13,136 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:13,138 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:50:13,138 - sqlalchemy.engine.Engine - INFO - [cached since 26.46s ago] ('416781a1-4aef-4fc7-92e2-a94da4131f5e', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 50, 13, 137842), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 50, 13, 138842), datetime.datetime(2025, 4, 19, 14, 50, 13, 138842), 0)
2025-04-19 14:50:13,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,155 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:13,155 - sqlalchemy.engine.Engine - INFO - [cached since 26.47s ago] ('416781a1-4aef-4fc7-92e2-a94da4131f5e',)
2025-04-19 14:50:13,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,159 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 416781a1-4aef-4fc7-92e2-a94da4131f5e (优先级 1) 添加到队列 0
2025-04-19 14:50:13,159 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:50:13,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 416781a1-4aef-4fc7-92e2-a94da4131f5e, 优先级: 1
2025-04-19 14:50:13,259 - services.execution.task_executor - DEBUG - 任务 416781a1-4aef-4fc7-92e2-a94da4131f5e 设置超时时间: 3600秒
2025-04-19 14:50:13,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,261 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:13,261 - sqlalchemy.engine.Engine - INFO - [cached since 26.58s ago] ('416781a1-4aef-4fc7-92e2-a94da4131f5e',)
2025-04-19 14:50:13,262 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:13,263 - sqlalchemy.engine.Engine - INFO - [cached since 26.61s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:13,264 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:13,264 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] (datetime.datetime(2025, 4, 19, 14, 50, 13, 264731), datetime.datetime(2025, 4, 19, 14, 50, 13, 264731), '416781a1-4aef-4fc7-92e2-a94da4131f5e')
2025-04-19 14:50:13,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,272 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,272 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:13,272 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 50, 13, 272195), '416781a1-4aef-4fc7-92e2-a94da4131f5e')
2025-04-19 14:50:13,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,283 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:50:13,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,284 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:13,284 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] ('203f3cc8-d9db-483d-84bd-3cf6ab154016', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '416781a1-4aef-4fc7-92e2-a94da4131f5e', datetime.datetime(2025, 4, 19, 14, 50, 13, 283566), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 13, 284448), datetime.datetime(2025, 4, 19, 14, 50, 13, 284448), 0)
2025-04-19 14:50:13,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,291 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,291 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:13,291 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] ('203f3cc8-d9db-483d-84bd-3cf6ab154016',)
2025-04-19 14:50:13,293 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:13,293 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:13,294 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:13,294 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 13, 294958), '203f3cc8-d9db-483d-84bd-3cf6ab154016')
2025-04-19 14:50:13,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,303 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:50:13,304 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:50:13,304 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:50:13,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,304 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:13,304 - sqlalchemy.engine.Engine - INFO - [cached since 26.5s ago] ('7ae36d14-c6d9-4949-98f6-67708835e0fc', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '416781a1-4aef-4fc7-92e2-a94da4131f5e', datetime.datetime(2025, 4, 19, 14, 50, 13, 304322), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 13, 304322), datetime.datetime(2025, 4, 19, 14, 50, 13, 304322), 0)
2025-04-19 14:50:13,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,312 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 7ae36d14-c6d9-4949-98f6-67708835e0fc
2025-04-19 14:50:13,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,313 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:13,313 - sqlalchemy.engine.Engine - INFO - [cached since 26.5s ago] ('7ae36d14-c6d9-4949-98f6-67708835e0fc',)
2025-04-19 14:50:13,314 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:13,314 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:13,314 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:13,317 - sqlalchemy.engine.Engine - INFO - [cached since 26.5s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 13, 314705), '7ae36d14-c6d9-4949-98f6-67708835e0fc')
2025-04-19 14:50:13,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,323 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,323 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:50:13,324 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] ('416781a1-4aef-4fc7-92e2-a94da4131f5e',)
2025-04-19 14:50:13,324 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 416781a1-4aef-4fc7-92e2-a94da4131f5e
2025-04-19 14:50:13,324 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,325 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:50:13,325 - services.execution.handlers.foundation - INFO - 任务 416781a1-4aef-4fc7-92e2-a94da4131f5e 打印: ['416781a1-4aef-4fc7-92e2-a94da4131f5e']
2025-04-19 14:50:13,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,326 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:13,326 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] ('1913c76d-3dd2-4bc3-bace-7364706bc689', 1, '{"success": true, "message": "打印成功", "output": {"message": ["416781a1-4aef-4fc7-92e2-a94da4131f5e"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '416781a1-4aef-4fc7-92e2-a94da4131f5e', datetime.datetime(2025, 4, 19, 14, 50, 13, 326386), datetime.datetime(2025, 4, 19, 14, 50, 13, 326386), 0)
2025-04-19 14:50:13,327 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,334 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:13,334 - sqlalchemy.engine.Engine - INFO - [cached since 26.52s ago] ('7ae36d14-c6d9-4949-98f6-67708835e0fc',)
2025-04-19 14:50:13,336 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:13,336 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:13,336 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:13,336 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] (datetime.datetime(2025, 4, 19, 14, 50, 13, 336474), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 13, 336474), '7ae36d14-c6d9-4949-98f6-67708835e0fc')
2025-04-19 14:50:13,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,347 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:13,347 - sqlalchemy.engine.Engine - INFO - [cached since 26.5s ago] ('313bfd22-8f79-4d9e-a61e-825de43aac01', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["416781a1-4aef-4fc7-92e2-a94da4131f5e"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '416781a1-4aef-4fc7-92e2-a94da4131f5e', datetime.datetime(2025, 4, 19, 14, 50, 13, 347248), datetime.datetime(2025, 4, 19, 14, 50, 13, 347248), 0)
2025-04-19 14:50:13,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,353 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:13,353 - sqlalchemy.engine.Engine - INFO - [cached since 26.54s ago] ('203f3cc8-d9db-483d-84bd-3cf6ab154016',)
2025-04-19 14:50:13,354 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:13,354 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:13,355 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:13,355 - sqlalchemy.engine.Engine - INFO - [cached since 26.5s ago] (datetime.datetime(2025, 4, 19, 14, 50, 13, 354774), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 13, 355722), '203f3cc8-d9db-483d-84bd-3cf6ab154016')
2025-04-19 14:50:13,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,363 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:13,363 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:13,363 - sqlalchemy.engine.Engine - INFO - [cached since 26.49s ago] (datetime.datetime(2025, 4, 19, 14, 50, 13, 362720), '任务执行成功', 1000, 90, datetime.datetime(2025, 4, 19, 14, 50, 13, 363720), '416781a1-4aef-4fc7-92e2-a94da4131f5e')
2025-04-19 14:50:13,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:13,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 416781a1-4aef-4fc7-92e2-a94da4131f5e, 结果: True
2025-04-19 14:50:18,157 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,157 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:18,158 - sqlalchemy.engine.Engine - INFO - [cached since 31.5s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:18,160 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:50:18,161 - sqlalchemy.engine.Engine - INFO - [cached since 31.48s ago] ('dc1fe8f2-a9d4-4b31-bb43-31fea966165a', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 50, 18, 160780), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 50, 18, 160780), datetime.datetime(2025, 4, 19, 14, 50, 18, 160780), 0)
2025-04-19 14:50:18,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,178 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:18,178 - sqlalchemy.engine.Engine - INFO - [cached since 31.49s ago] ('dc1fe8f2-a9d4-4b31-bb43-31fea966165a',)
2025-04-19 14:50:18,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,180 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 dc1fe8f2-a9d4-4b31-bb43-31fea966165a (优先级 1) 添加到队列 0
2025-04-19 14:50:18,181 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:50:18,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: dc1fe8f2-a9d4-4b31-bb43-31fea966165a, 优先级: 1
2025-04-19 14:50:18,268 - services.execution.task_executor - DEBUG - 任务 dc1fe8f2-a9d4-4b31-bb43-31fea966165a 设置超时时间: 3600秒
2025-04-19 14:50:18,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,269 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:18,270 - sqlalchemy.engine.Engine - INFO - [cached since 31.58s ago] ('dc1fe8f2-a9d4-4b31-bb43-31fea966165a',)
2025-04-19 14:50:18,271 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:18,272 - sqlalchemy.engine.Engine - INFO - [cached since 31.62s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:18,274 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:18,274 - sqlalchemy.engine.Engine - INFO - [cached since 31.49s ago] (datetime.datetime(2025, 4, 19, 14, 50, 18, 274568), datetime.datetime(2025, 4, 19, 14, 50, 18, 274568), 'dc1fe8f2-a9d4-4b31-bb43-31fea966165a')
2025-04-19 14:50:18,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,285 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:18,285 - sqlalchemy.engine.Engine - INFO - [cached since 31.49s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 50, 18, 285568), 'dc1fe8f2-a9d4-4b31-bb43-31fea966165a')
2025-04-19 14:50:18,286 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,295 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:50:18,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,296 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:18,296 - sqlalchemy.engine.Engine - INFO - [cached since 31.49s ago] ('377a2d8b-437c-4d96-8fa4-ca5e6618b673', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dc1fe8f2-a9d4-4b31-bb43-31fea966165a', datetime.datetime(2025, 4, 19, 14, 50, 18, 295567), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 18, 296569), datetime.datetime(2025, 4, 19, 14, 50, 18, 296569), 0)
2025-04-19 14:50:18,297 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,305 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,305 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:18,306 - sqlalchemy.engine.Engine - INFO - [cached since 31.49s ago] ('377a2d8b-437c-4d96-8fa4-ca5e6618b673',)
2025-04-19 14:50:18,306 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:18,307 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:18,307 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:18,307 - sqlalchemy.engine.Engine - INFO - [cached since 31.49s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 18, 307652), '377a2d8b-437c-4d96-8fa4-ca5e6618b673')
2025-04-19 14:50:18,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,315 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:50:18,316 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:50:18,316 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:50:18,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,317 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:18,318 - sqlalchemy.engine.Engine - INFO - [cached since 31.51s ago] ('4d47cfa0-aecf-43dc-b37b-7af8cdb57aa6', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dc1fe8f2-a9d4-4b31-bb43-31fea966165a', datetime.datetime(2025, 4, 19, 14, 50, 18, 316567), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 18, 317584), datetime.datetime(2025, 4, 19, 14, 50, 18, 317584), 0)
2025-04-19 14:50:18,318 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,326 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4d47cfa0-aecf-43dc-b37b-7af8cdb57aa6
2025-04-19 14:50:18,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,327 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:18,327 - sqlalchemy.engine.Engine - INFO - [cached since 31.51s ago] ('4d47cfa0-aecf-43dc-b37b-7af8cdb57aa6',)
2025-04-19 14:50:18,328 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:18,328 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:18,328 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:18,329 - sqlalchemy.engine.Engine - INFO - [cached since 31.51s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 18, 328571), '4d47cfa0-aecf-43dc-b37b-7af8cdb57aa6')
2025-04-19 14:50:18,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,337 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:50:18,337 - sqlalchemy.engine.Engine - INFO - [cached since 31.5s ago] ('dc1fe8f2-a9d4-4b31-bb43-31fea966165a',)
2025-04-19 14:50:18,338 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: dc1fe8f2-a9d4-4b31-bb43-31fea966165a
2025-04-19 14:50:18,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,339 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:50:18,339 - services.execution.handlers.foundation - INFO - 任务 dc1fe8f2-a9d4-4b31-bb43-31fea966165a 打印: ['dc1fe8f2-a9d4-4b31-bb43-31fea966165a']
2025-04-19 14:50:18,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,341 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:18,341 - sqlalchemy.engine.Engine - INFO - [cached since 31.5s ago] ('bac18b06-06c9-4993-bb9e-088c5f5b3f84', 1, '{"success": true, "message": "打印成功", "output": {"message": ["dc1fe8f2-a9d4-4b31-bb43-31fea966165a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dc1fe8f2-a9d4-4b31-bb43-31fea966165a', datetime.datetime(2025, 4, 19, 14, 50, 18, 341155), datetime.datetime(2025, 4, 19, 14, 50, 18, 341155), 0)
2025-04-19 14:50:18,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,352 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:18,352 - sqlalchemy.engine.Engine - INFO - [cached since 31.54s ago] ('4d47cfa0-aecf-43dc-b37b-7af8cdb57aa6',)
2025-04-19 14:50:18,354 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:18,354 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:18,355 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:18,355 - sqlalchemy.engine.Engine - INFO - [cached since 31.5s ago] (datetime.datetime(2025, 4, 19, 14, 50, 18, 354114), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 18, 354114), '4d47cfa0-aecf-43dc-b37b-7af8cdb57aa6')
2025-04-19 14:50:18,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,363 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,364 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:18,364 - sqlalchemy.engine.Engine - INFO - [cached since 31.52s ago] ('70d6085b-072a-4608-9194-71f45f9e9f32', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["dc1fe8f2-a9d4-4b31-bb43-31fea966165a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'dc1fe8f2-a9d4-4b31-bb43-31fea966165a', datetime.datetime(2025, 4, 19, 14, 50, 18, 364499), datetime.datetime(2025, 4, 19, 14, 50, 18, 364499), 0)
2025-04-19 14:50:18,365 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,373 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:18,373 - sqlalchemy.engine.Engine - INFO - [cached since 31.56s ago] ('377a2d8b-437c-4d96-8fa4-ca5e6618b673',)
2025-04-19 14:50:18,374 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:18,374 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:18,375 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:18,375 - sqlalchemy.engine.Engine - INFO - [cached since 31.52s ago] (datetime.datetime(2025, 4, 19, 14, 50, 18, 375431), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 18, 375431), '377a2d8b-437c-4d96-8fa4-ca5e6618b673')
2025-04-19 14:50:18,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,383 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:18,384 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:18,384 - sqlalchemy.engine.Engine - INFO - [cached since 31.51s ago] (datetime.datetime(2025, 4, 19, 14, 50, 18, 383467), '任务执行成功', 1000, 98, datetime.datetime(2025, 4, 19, 14, 50, 18, 384333), 'dc1fe8f2-a9d4-4b31-bb43-31fea966165a')
2025-04-19 14:50:18,385 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:18,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: dc1fe8f2-a9d4-4b31-bb43-31fea966165a, 结果: True
2025-04-19 14:50:22,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:22,870 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:50:22,870 - sqlalchemy.engine.Engine - INFO - [cached since 300s ago] (1001, datetime.datetime(2025, 4, 19, 13, 50, 22, 868672))
2025-04-19 14:50:22,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:22,947 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:50:22,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:50:22,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:50:22,947 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:50:22,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:50:22,948 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:50:22,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:50:22,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:50:22,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:50:22,948 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:50:22,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:50:22,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:50:23,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,180 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:23,180 - sqlalchemy.engine.Engine - INFO - [cached since 36.52s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:23,182 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:50:23,182 - sqlalchemy.engine.Engine - INFO - [cached since 36.51s ago] ('e454a9f5-239e-4ad2-ba0e-27848314fee7', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 50, 23, 182636), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 50, 23, 182636), datetime.datetime(2025, 4, 19, 14, 50, 23, 182636), 0)
2025-04-19 14:50:23,183 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,211 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,212 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:23,212 - sqlalchemy.engine.Engine - INFO - [cached since 36.53s ago] ('e454a9f5-239e-4ad2-ba0e-27848314fee7',)
2025-04-19 14:50:23,214 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,215 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 e454a9f5-239e-4ad2-ba0e-27848314fee7 (优先级 1) 添加到队列 0
2025-04-19 14:50:23,215 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:50:23,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: e454a9f5-239e-4ad2-ba0e-27848314fee7, 优先级: 1
2025-04-19 14:50:23,241 - services.execution.task_executor - DEBUG - 任务 e454a9f5-239e-4ad2-ba0e-27848314fee7 设置超时时间: 3600秒
2025-04-19 14:50:23,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,242 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:23,243 - sqlalchemy.engine.Engine - INFO - [cached since 36.56s ago] ('e454a9f5-239e-4ad2-ba0e-27848314fee7',)
2025-04-19 14:50:23,244 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:23,244 - sqlalchemy.engine.Engine - INFO - [cached since 36.59s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:23,245 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:23,246 - sqlalchemy.engine.Engine - INFO - [cached since 36.46s ago] (datetime.datetime(2025, 4, 19, 14, 50, 23, 245348), datetime.datetime(2025, 4, 19, 14, 50, 23, 245348), 'e454a9f5-239e-4ad2-ba0e-27848314fee7')
2025-04-19 14:50:23,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,255 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:23,256 - sqlalchemy.engine.Engine - INFO - [cached since 36.46s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 50, 23, 255267), 'e454a9f5-239e-4ad2-ba0e-27848314fee7')
2025-04-19 14:50:23,258 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,265 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:50:23,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,268 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:23,268 - sqlalchemy.engine.Engine - INFO - [cached since 36.46s ago] ('52a2dbf6-25a8-4338-a53e-a7de3f17ba0a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e454a9f5-239e-4ad2-ba0e-27848314fee7', datetime.datetime(2025, 4, 19, 14, 50, 23, 267130), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 23, 268085), datetime.datetime(2025, 4, 19, 14, 50, 23, 268085), 0)
2025-04-19 14:50:23,268 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,275 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:23,276 - sqlalchemy.engine.Engine - INFO - [cached since 36.46s ago] ('52a2dbf6-25a8-4338-a53e-a7de3f17ba0a',)
2025-04-19 14:50:23,278 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:23,278 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:23,278 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:23,279 - sqlalchemy.engine.Engine - INFO - [cached since 36.46s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 23, 278092), '52a2dbf6-25a8-4338-a53e-a7de3f17ba0a')
2025-04-19 14:50:23,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,286 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:50:23,287 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:50:23,287 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:50:23,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,288 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:23,288 - sqlalchemy.engine.Engine - INFO - [cached since 36.48s ago] ('8a9cacd5-d090-4b7e-98ca-0a1e494a449a', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e454a9f5-239e-4ad2-ba0e-27848314fee7', datetime.datetime(2025, 4, 19, 14, 50, 23, 287813), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 23, 288856), datetime.datetime(2025, 4, 19, 14, 50, 23, 288856), 0)
2025-04-19 14:50:23,288 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,297 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 8a9cacd5-d090-4b7e-98ca-0a1e494a449a
2025-04-19 14:50:23,298 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,298 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:23,298 - sqlalchemy.engine.Engine - INFO - [cached since 36.49s ago] ('8a9cacd5-d090-4b7e-98ca-0a1e494a449a',)
2025-04-19 14:50:23,300 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:23,300 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:23,300 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:23,300 - sqlalchemy.engine.Engine - INFO - [cached since 36.48s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 23, 300881), '8a9cacd5-d090-4b7e-98ca-0a1e494a449a')
2025-04-19 14:50:23,301 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,308 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,309 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:50:23,309 - sqlalchemy.engine.Engine - INFO - [cached since 36.47s ago] ('e454a9f5-239e-4ad2-ba0e-27848314fee7',)
2025-04-19 14:50:23,309 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: e454a9f5-239e-4ad2-ba0e-27848314fee7
2025-04-19 14:50:23,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,310 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:50:23,310 - services.execution.handlers.foundation - INFO - 任务 e454a9f5-239e-4ad2-ba0e-27848314fee7 打印: ['e454a9f5-239e-4ad2-ba0e-27848314fee7']
2025-04-19 14:50:23,311 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,311 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:23,311 - sqlalchemy.engine.Engine - INFO - [cached since 36.47s ago] ('078209dd-8710-4c84-a99f-b5d9e65a9a8c', 1, '{"success": true, "message": "打印成功", "output": {"message": ["e454a9f5-239e-4ad2-ba0e-27848314fee7"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e454a9f5-239e-4ad2-ba0e-27848314fee7', datetime.datetime(2025, 4, 19, 14, 50, 23, 311913), datetime.datetime(2025, 4, 19, 14, 50, 23, 311913), 0)
2025-04-19 14:50:23,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,318 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:23,319 - sqlalchemy.engine.Engine - INFO - [cached since 36.5s ago] ('8a9cacd5-d090-4b7e-98ca-0a1e494a449a',)
2025-04-19 14:50:23,320 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:23,320 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:23,320 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:23,321 - sqlalchemy.engine.Engine - INFO - [cached since 36.47s ago] (datetime.datetime(2025, 4, 19, 14, 50, 23, 320250), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 23, 320250), '8a9cacd5-d090-4b7e-98ca-0a1e494a449a')
2025-04-19 14:50:23,321 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,328 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:23,329 - sqlalchemy.engine.Engine - INFO - [cached since 36.49s ago] ('74094eed-8934-4790-81d1-e6d61aa0b160', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["e454a9f5-239e-4ad2-ba0e-27848314fee7"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e454a9f5-239e-4ad2-ba0e-27848314fee7', datetime.datetime(2025, 4, 19, 14, 50, 23, 328410), datetime.datetime(2025, 4, 19, 14, 50, 23, 328410), 0)
2025-04-19 14:50:23,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,336 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:23,337 - sqlalchemy.engine.Engine - INFO - [cached since 36.52s ago] ('52a2dbf6-25a8-4338-a53e-a7de3f17ba0a',)
2025-04-19 14:50:23,338 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:23,338 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:23,339 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:23,342 - sqlalchemy.engine.Engine - INFO - [cached since 36.49s ago] (datetime.datetime(2025, 4, 19, 14, 50, 23, 339325), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 23, 339325), '52a2dbf6-25a8-4338-a53e-a7de3f17ba0a')
2025-04-19 14:50:23,343 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,361 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:23,361 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:23,362 - sqlalchemy.engine.Engine - INFO - [cached since 36.49s ago] (datetime.datetime(2025, 4, 19, 14, 50, 23, 360126), '任务执行成功', 1000, 104, datetime.datetime(2025, 4, 19, 14, 50, 23, 361516), 'e454a9f5-239e-4ad2-ba0e-27848314fee7')
2025-04-19 14:50:23,365 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:23,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: e454a9f5-239e-4ad2-ba0e-27848314fee7, 结果: True
2025-04-19 14:50:28,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,215 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:28,215 - sqlalchemy.engine.Engine - INFO - [cached since 41.56s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:28,217 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:50:28,217 - sqlalchemy.engine.Engine - INFO - [cached since 41.54s ago] ('a4d7fce9-2427-40e5-ba29-c2ab58bfe72a', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 50, 28, 216965), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 50, 28, 217966), datetime.datetime(2025, 4, 19, 14, 50, 28, 217966), 0)
2025-04-19 14:50:28,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,234 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,236 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:28,236 - sqlalchemy.engine.Engine - INFO - [cached since 41.55s ago] ('a4d7fce9-2427-40e5-ba29-c2ab58bfe72a',)
2025-04-19 14:50:28,237 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,238 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 a4d7fce9-2427-40e5-ba29-c2ab58bfe72a (优先级 1) 添加到队列 0
2025-04-19 14:50:28,238 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:50:28,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: a4d7fce9-2427-40e5-ba29-c2ab58bfe72a, 优先级: 1
2025-04-19 14:50:28,305 - services.execution.task_executor - DEBUG - 任务 a4d7fce9-2427-40e5-ba29-c2ab58bfe72a 设置超时时间: 3600秒
2025-04-19 14:50:28,306 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,307 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:28,307 - sqlalchemy.engine.Engine - INFO - [cached since 41.62s ago] ('a4d7fce9-2427-40e5-ba29-c2ab58bfe72a',)
2025-04-19 14:50:28,308 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:28,308 - sqlalchemy.engine.Engine - INFO - [cached since 41.65s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:28,309 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:28,310 - sqlalchemy.engine.Engine - INFO - [cached since 41.52s ago] (datetime.datetime(2025, 4, 19, 14, 50, 28, 309824), datetime.datetime(2025, 4, 19, 14, 50, 28, 309824), 'a4d7fce9-2427-40e5-ba29-c2ab58bfe72a')
2025-04-19 14:50:28,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,319 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,319 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:28,319 - sqlalchemy.engine.Engine - INFO - [cached since 41.52s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 50, 28, 319823), 'a4d7fce9-2427-40e5-ba29-c2ab58bfe72a')
2025-04-19 14:50:28,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,327 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:50:28,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,328 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:28,329 - sqlalchemy.engine.Engine - INFO - [cached since 41.52s ago] ('4f7aabe4-8a45-4579-8a78-3182fc09e2de', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a4d7fce9-2427-40e5-ba29-c2ab58bfe72a', datetime.datetime(2025, 4, 19, 14, 50, 28, 327136), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 28, 328154), datetime.datetime(2025, 4, 19, 14, 50, 28, 328154), 0)
2025-04-19 14:50:28,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,337 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:28,338 - sqlalchemy.engine.Engine - INFO - [cached since 41.52s ago] ('4f7aabe4-8a45-4579-8a78-3182fc09e2de',)
2025-04-19 14:50:28,339 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:28,339 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:28,339 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:28,340 - sqlalchemy.engine.Engine - INFO - [cached since 41.52s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 28, 339141), '4f7aabe4-8a45-4579-8a78-3182fc09e2de')
2025-04-19 14:50:28,340 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,346 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:50:28,347 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:50:28,347 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:50:28,348 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,348 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:50:28,349 - sqlalchemy.engine.Engine - INFO - [cached since 41.54s ago] ('26be2b99-75aa-40d6-af72-fbdbb5fcdbfb', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a4d7fce9-2427-40e5-ba29-c2ab58bfe72a', datetime.datetime(2025, 4, 19, 14, 50, 28, 347811), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 50, 28, 348734), datetime.datetime(2025, 4, 19, 14, 50, 28, 348734), 0)
2025-04-19 14:50:28,349 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,356 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 26be2b99-75aa-40d6-af72-fbdbb5fcdbfb
2025-04-19 14:50:28,357 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,357 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:28,357 - sqlalchemy.engine.Engine - INFO - [cached since 41.54s ago] ('26be2b99-75aa-40d6-af72-fbdbb5fcdbfb',)
2025-04-19 14:50:28,358 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:28,358 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:28,358 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:28,359 - sqlalchemy.engine.Engine - INFO - [cached since 41.54s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 50, 28, 358734), '26be2b99-75aa-40d6-af72-fbdbb5fcdbfb')
2025-04-19 14:50:28,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,367 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:50:28,367 - sqlalchemy.engine.Engine - INFO - [cached since 41.53s ago] ('a4d7fce9-2427-40e5-ba29-c2ab58bfe72a',)
2025-04-19 14:50:28,367 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: a4d7fce9-2427-40e5-ba29-c2ab58bfe72a
2025-04-19 14:50:28,367 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,367 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:50:28,369 - services.execution.handlers.foundation - INFO - 任务 a4d7fce9-2427-40e5-ba29-c2ab58bfe72a 打印: ['a4d7fce9-2427-40e5-ba29-c2ab58bfe72a']
2025-04-19 14:50:28,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,369 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:28,370 - sqlalchemy.engine.Engine - INFO - [cached since 41.53s ago] ('d6b1f4c2-e08e-4c48-a67a-83584e12e390', 1, '{"success": true, "message": "打印成功", "output": {"message": ["a4d7fce9-2427-40e5-ba29-c2ab58bfe72a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a4d7fce9-2427-40e5-ba29-c2ab58bfe72a', datetime.datetime(2025, 4, 19, 14, 50, 28, 369231), datetime.datetime(2025, 4, 19, 14, 50, 28, 369231), 0)
2025-04-19 14:50:28,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,377 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:28,377 - sqlalchemy.engine.Engine - INFO - [cached since 41.56s ago] ('26be2b99-75aa-40d6-af72-fbdbb5fcdbfb',)
2025-04-19 14:50:28,377 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:50:28,378 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:50:28,378 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:28,378 - sqlalchemy.engine.Engine - INFO - [cached since 41.52s ago] (datetime.datetime(2025, 4, 19, 14, 50, 28, 378237), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 28, 378237), '26be2b99-75aa-40d6-af72-fbdbb5fcdbfb')
2025-04-19 14:50:28,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,384 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,385 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:50:28,385 - sqlalchemy.engine.Engine - INFO - [cached since 41.54s ago] ('aa14b936-ed73-4340-ac3c-058f7abcde74', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["a4d7fce9-2427-40e5-ba29-c2ab58bfe72a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a4d7fce9-2427-40e5-ba29-c2ab58bfe72a', datetime.datetime(2025, 4, 19, 14, 50, 28, 385738), datetime.datetime(2025, 4, 19, 14, 50, 28, 385738), 0)
2025-04-19 14:50:28,386 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,393 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,393 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:50:28,393 - sqlalchemy.engine.Engine - INFO - [cached since 41.58s ago] ('4f7aabe4-8a45-4579-8a78-3182fc09e2de',)
2025-04-19 14:50:28,394 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:50:28,394 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:50:28,394 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:50:28,394 - sqlalchemy.engine.Engine - INFO - [cached since 41.54s ago] (datetime.datetime(2025, 4, 19, 14, 50, 28, 394638), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 50, 28, 394638), '4f7aabe4-8a45-4579-8a78-3182fc09e2de')
2025-04-19 14:50:28,394 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,401 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:28,401 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:50:28,401 - sqlalchemy.engine.Engine - INFO - [cached since 41.53s ago] (datetime.datetime(2025, 4, 19, 14, 50, 28, 400628), '任务执行成功', 1000, 81, datetime.datetime(2025, 4, 19, 14, 50, 28, 401625), 'a4d7fce9-2427-40e5-ba29-c2ab58bfe72a')
2025-04-19 14:50:28,402 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:28,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: a4d7fce9-2427-40e5-ba29-c2ab58bfe72a, 结果: True
2025-04-19 14:50:31,430 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 14:50:31,432 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:31,432 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:31,432 - sqlalchemy.engine.Engine - INFO - [cached since 44.78s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:31,433 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:50:31,433 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (0, datetime.datetime(2025, 4, 19, 14, 50, 31, 433768), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:50:31,434 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:31,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:50:31,443 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:50:31,443 - sqlalchemy.engine.Engine - INFO - [cached since 44.79s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:50:31,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:50:31,444 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0134秒
2025-04-19 14:51:22,897 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:51:22,898 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:51:22,898 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 19, 13, 51, 22, 896677))
2025-04-19 14:51:22,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:51:23,007 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:51:23,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:51:23,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:51:23,007 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:51:23,007 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:51:23,007 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:51:23,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:51:23,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:51:23,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:51:23,008 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:51:23,008 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:51:23,008 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:51:23,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:51:23,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:51:23,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:51:23,009 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:51:23,009 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:51:23,009 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:51:23,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:51:23,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:51:23,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:51:23,010 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:51:23,010 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:51:23,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:51:38,030 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:51:38,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:51:38,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:51:38,031 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:51:38,031 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:51:38,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:52:22,894 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:52:22,895 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:52:22,895 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (1001, datetime.datetime(2025, 4, 19, 13, 52, 22, 894546))
2025-04-19 14:52:22,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:52:23,051 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:52:23,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:52:23,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:52:23,052 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:52:23,052 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:52:23,052 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:52:23,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:52:23,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:52:23,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:52:23,052 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:52:23,052 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:52:23,052 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:52:23,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:52:23,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:52:23,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:52:23,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:52:23,053 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:52:23,053 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:52:23,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:52:23,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:52:23,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:52:23,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:52:23,053 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:52:23,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:52:38,066 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:52:38,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:52:38,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:52:38,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:52:38,068 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:52:38,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:53:22,895 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:53:22,896 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:53:22,896 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (1001, datetime.datetime(2025, 4, 19, 13, 53, 22, 895577))
2025-04-19 14:53:22,898 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:53:23,067 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:53:23,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:53:23,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:53:23,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:53:23,068 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:53:23,068 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:53:23,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:53:23,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:53:23,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:53:23,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:53:23,069 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:53:23,069 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:53:23,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:53:23,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:53:23,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:53:23,070 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:53:23,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:53:23,071 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:53:23,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:53:23,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:53:23,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:53:23,072 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:53:23,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:53:23,077 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:53:38,094 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:53:38,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:53:38,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:53:38,094 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:53:38,095 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:53:38,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:54:22,904 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:22,905 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:54:22,905 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (1001, datetime.datetime(2025, 4, 19, 13, 54, 22, 903801))
2025-04-19 14:54:22,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:23,122 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:54:23,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:54:23,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:54:23,122 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:54:23,122 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:54:23,122 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:54:23,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:54:23,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:54:23,123 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:54:23,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:54:23,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:54:23,123 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:54:23,125 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:54:23,125 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:54:23,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:54:38,151 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:54:38,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:54:38,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:54:38,152 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:54:38,152 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:54:38,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:54:42,900 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 14:54:42,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:42,901 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:54:42,901 - sqlalchemy.engine.Engine - INFO - [cached since 296.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:54:42,902 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:42,903 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:42,903 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:54:42,903 - sqlalchemy.engine.Engine - INFO - [cached since 296.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:54:42,904 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:42,904 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:54:42,905 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:54:42,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:42,905 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:54:42,905 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:54:42,906 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:54:42,906 - sqlalchemy.engine.Engine - INFO - [cached since 296.2s ago] (1, datetime.datetime(2025, 4, 19, 14, 54, 42, 906882), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:54:42,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:42,919 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:42,919 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:54:42,919 - sqlalchemy.engine.Engine - INFO - [cached since 296.2s ago] (1, datetime.datetime(2025, 4, 19, 14, 54, 42, 919059), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:54:42,920 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:42,920 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:54:42,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:42,921 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:54:42,921 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:54:42,922 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:54:42,922 - sqlalchemy.engine.Engine - INFO - [cached since 296.2s ago] ('ee1e709a-d52e-494d-83a2-9b260974438b', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 54, 42, 921162), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 54, 42, 922150), datetime.datetime(2025, 4, 19, 14, 54, 42, 922150), 0)
2025-04-19 14:54:42,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:42,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:42,935 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:54:42,936 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('ee1e709a-d52e-494d-83a2-9b260974438b',)
2025-04-19 14:54:42,937 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:42,937 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ee1e709a-d52e-494d-83a2-9b260974438b (优先级 1) 添加到队列 0
2025-04-19 14:54:42,937 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0367秒
2025-04-19 14:54:43,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: ee1e709a-d52e-494d-83a2-9b260974438b, 优先级: 1
2025-04-19 14:54:43,049 - services.execution.task_executor - DEBUG - 任务 ee1e709a-d52e-494d-83a2-9b260974438b 设置超时时间: 3600秒
2025-04-19 14:54:43,050 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,050 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:54:43,051 - sqlalchemy.engine.Engine - INFO - [cached since 296.4s ago] ('ee1e709a-d52e-494d-83a2-9b260974438b',)
2025-04-19 14:54:43,052 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:54:43,052 - sqlalchemy.engine.Engine - INFO - [cached since 296.4s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:54:43,053 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:54:43,054 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] (datetime.datetime(2025, 4, 19, 14, 54, 43, 53347), datetime.datetime(2025, 4, 19, 14, 54, 43, 53347), 'ee1e709a-d52e-494d-83a2-9b260974438b')
2025-04-19 14:54:43,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,061 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,062 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:54:43,062 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 54, 43, 62348), 'ee1e709a-d52e-494d-83a2-9b260974438b')
2025-04-19 14:54:43,063 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,070 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:54:43,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,071 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:54:43,072 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('22eeb3f6-9c2e-441d-9803-a73e0a00ad87', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ee1e709a-d52e-494d-83a2-9b260974438b', datetime.datetime(2025, 4, 19, 14, 54, 43, 70347), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 54, 43, 71348), datetime.datetime(2025, 4, 19, 14, 54, 43, 71348), 0)
2025-04-19 14:54:43,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,080 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,081 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:54:43,081 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('22eeb3f6-9c2e-441d-9803-a73e0a00ad87',)
2025-04-19 14:54:43,082 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:54:43,082 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:54:43,083 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:54:43,083 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 54, 43, 83348), '22eeb3f6-9c2e-441d-9803-a73e0a00ad87')
2025-04-19 14:54:43,083 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,091 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:54:43,091 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:54:43,091 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:54:43,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,092 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:54:43,093 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('dd010418-604d-41b9-8941-7ad70582f01a', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ee1e709a-d52e-494d-83a2-9b260974438b', datetime.datetime(2025, 4, 19, 14, 54, 43, 92347), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 54, 43, 92347), datetime.datetime(2025, 4, 19, 14, 54, 43, 92347), 0)
2025-04-19 14:54:43,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,101 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: dd010418-604d-41b9-8941-7ad70582f01a
2025-04-19 14:54:43,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,102 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:54:43,102 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('dd010418-604d-41b9-8941-7ad70582f01a',)
2025-04-19 14:54:43,103 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:54:43,103 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:54:43,103 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:54:43,104 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 54, 43, 103347), 'dd010418-604d-41b9-8941-7ad70582f01a')
2025-04-19 14:54:43,104 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,112 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:54:43,112 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('ee1e709a-d52e-494d-83a2-9b260974438b',)
2025-04-19 14:54:43,112 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: ee1e709a-d52e-494d-83a2-9b260974438b
2025-04-19 14:54:43,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,113 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:54:43,114 - services.execution.handlers.foundation - INFO - 任务 ee1e709a-d52e-494d-83a2-9b260974438b 打印: ['ee1e709a-d52e-494d-83a2-9b260974438b']
2025-04-19 14:54:43,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,114 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:54:43,115 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('dede3134-a473-47cb-a3e6-7822689af3d9', 1, '{"success": true, "message": "打印成功", "output": {"message": ["ee1e709a-d52e-494d-83a2-9b260974438b"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ee1e709a-d52e-494d-83a2-9b260974438b', datetime.datetime(2025, 4, 19, 14, 54, 43, 114348), datetime.datetime(2025, 4, 19, 14, 54, 43, 114348), 0)
2025-04-19 14:54:43,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,121 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,122 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:54:43,122 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('dd010418-604d-41b9-8941-7ad70582f01a',)
2025-04-19 14:54:43,123 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:54:43,123 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:54:43,124 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:54:43,124 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] (datetime.datetime(2025, 4, 19, 14, 54, 43, 123347), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 54, 43, 124475), 'dd010418-604d-41b9-8941-7ad70582f01a')
2025-04-19 14:54:43,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,132 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:54:43,133 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('ae53192d-a6d5-4500-92ab-29eeaad24c97', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["ee1e709a-d52e-494d-83a2-9b260974438b"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'ee1e709a-d52e-494d-83a2-9b260974438b', datetime.datetime(2025, 4, 19, 14, 54, 43, 132347), datetime.datetime(2025, 4, 19, 14, 54, 43, 132347), 0)
2025-04-19 14:54:43,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,140 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,141 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:54:43,141 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] ('22eeb3f6-9c2e-441d-9803-a73e0a00ad87',)
2025-04-19 14:54:43,142 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:54:43,142 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:54:43,143 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:54:43,143 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] (datetime.datetime(2025, 4, 19, 14, 54, 43, 142352), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 54, 43, 143352), '22eeb3f6-9c2e-441d-9803-a73e0a00ad87')
2025-04-19 14:54:43,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:43,153 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:54:43,153 - sqlalchemy.engine.Engine - INFO - [cached since 296.3s ago] (datetime.datetime(2025, 4, 19, 14, 54, 43, 152434), '任务执行成功', 1000, 91, datetime.datetime(2025, 4, 19, 14, 54, 43, 153446), 'ee1e709a-d52e-494d-83a2-9b260974438b')
2025-04-19 14:54:43,153 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:43,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: ee1e709a-d52e-494d-83a2-9b260974438b, 结果: True
2025-04-19 14:54:44,942 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 14:54:44,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:44,945 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:54:44,945 - sqlalchemy.engine.Engine - INFO - [cached since 298.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:54:44,946 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:54:44,946 - sqlalchemy.engine.Engine - INFO - [cached since 253.5s ago] (0, datetime.datetime(2025, 4, 19, 14, 54, 44, 946649), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:54:44,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:44,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:54:44,960 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:54:44,960 - sqlalchemy.engine.Engine - INFO - [cached since 298.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:54:44,961 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:54:44,962 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0198秒
2025-04-19 14:55:22,898 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:55:22,899 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:55:22,900 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (1001, datetime.datetime(2025, 4, 19, 13, 55, 22, 898141))
2025-04-19 14:55:22,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:55:23,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:55:23,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:55:23,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:55:23,165 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:55:23,165 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:55:23,165 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:55:23,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:55:23,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:55:23,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:55:23,165 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:55:23,166 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:55:23,166 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:55:23,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:55:23,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:55:23,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:55:23,167 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:55:23,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:55:23,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:55:38,190 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:55:38,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:55:38,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:55:38,192 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:55:38,192 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:55:38,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:55:53,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:55:53,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:55:53,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:55:53,207 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:55:53,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:55:53,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:56:22,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:56:22,908 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:56:22,908 - sqlalchemy.engine.Engine - INFO - [cached since 660.1s ago] (1001, datetime.datetime(2025, 4, 19, 13, 56, 22, 907184))
2025-04-19 14:56:22,910 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:56:23,237 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:56:23,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:56:23,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:56:23,237 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:56:23,237 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:56:23,238 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:56:23,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:56:23,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:56:23,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:56:23,238 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:56:23,239 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:56:23,239 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:56:23,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:56:23,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:56:23,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:56:23,239 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:56:23,239 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:56:23,243 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:56:38,252 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:56:38,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:56:38,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:56:38,253 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:56:38,253 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:56:38,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:56:53,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:56:53,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:56:53,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:56:53,270 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:56:53,271 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:56:53,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:57:22,904 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:57:22,905 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:57:22,905 - sqlalchemy.engine.Engine - INFO - [cached since 720.1s ago] (1001, datetime.datetime(2025, 4, 19, 13, 57, 22, 903354))
2025-04-19 14:57:22,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:57:23,262 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:57:23,262 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:57:23,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:57:23,263 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:57:23,263 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:57:23,263 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:57:23,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:57:23,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:57:23,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:57:23,264 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:57:23,264 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:57:23,264 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:57:23,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:57:23,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:57:23,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:57:23,265 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:57:23,265 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:57:23,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:57:38,281 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 14:57:38,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:57:38,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:57:38,281 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:57:38,282 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 14:57:38,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:57:53,281 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 14:57:53,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:57:53,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:57:53,282 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:57:53,282 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 14:57:53,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:58:22,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:22,908 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:58:22,908 - sqlalchemy.engine.Engine - INFO - [cached since 780.1s ago] (1001, datetime.datetime(2025, 4, 19, 13, 58, 22, 907342))
2025-04-19 14:58:22,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:23,283 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 14:58:23,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:58:23,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:58:23,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 14:58:23,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 14:58:23,284 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 14:58:23,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:58:23,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:58:23,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:58:23,285 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 14:58:23,285 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 14:58:23,285 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 14:58:23,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:58:23,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:58:23,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:58:23,286 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 14:58:23,286 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:58:23,291 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:58:39,388 - root - INFO - 应用程序关闭中...
2025-04-19 14:58:39,388 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 14:58:39,389 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 14:58:39,389 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 14:58:39,389 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 14:58:39,389 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 14:58:39,389 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 14:58:39,390 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 14:58:39,390 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 14:58:39,390 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 14:58:39,390 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 14:58:39,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:58:39,391 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:58:39,391 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 14:58:39,391 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:58:39,391 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:58:39,391 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-19 14:58:39,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:58:39,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:58:39,392 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 14:58:39,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:58:39,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:58:39,392 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 1
2025-04-19 14:58:39,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:58:39,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:58:39,393 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 14:58:39,393 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 14:58:39,393 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 14:58:39,393 - root - INFO - 增强版任务调度器已停止
2025-04-19 14:58:39,393 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 14:58:39,393 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 14:58:39,393 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 14:58:39,394 - data.session - INFO - 数据库连接已关闭
2025-04-19 14:58:40,463 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:58:40,464 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:58:40,519 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 14:58:40,576 - data.session - INFO - 正在初始化数据库...
2025-04-19 14:58:40,594 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 14:58:40,595 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:58:40,596 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,596 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:58:40,597 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,597 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:58:40,597 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,598 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:40,598 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 14:58:40,598 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,599 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 14:58:40,600 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,601 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 14:58:40,602 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,603 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 14:58:40,604 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,605 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 14:58:40,605 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,605 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 14:58:40,606 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,607 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 14:58:40,607 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,609 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 14:58:40,610 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,610 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 14:58:40,611 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,613 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 14:58:40,614 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,615 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 14:58:40,615 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:58:40,617 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:40,617 - data.session - INFO - 数据库表初始化完成
2025-04-19 14:58:40,990 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 14:58:40,991 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 14:58:40,991 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 14:58:40,991 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 14:58:40,992 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 14:58:40,992 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 14:58:40,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 14:58:40,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 14:58:40,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 14:58:40,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 14:58:40,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:58:40,992 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 14:58:40,992 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 14:58:40,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:58:40,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:58:40,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:58:40,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:58:40,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:58:40,994 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 14:58:40,994 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 14:58:40,995 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:58:40,996 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:58:40,996 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:58:40,997 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:58:40,997 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:58:40,997 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:58:40,997 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:58:40,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:41,006 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 14:58:41,006 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1, 1)
2025-04-19 14:58:41,007 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 14:58:41,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:41,008 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 14:58:41,009 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 14:58:41,009 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 14:58:41,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:41,011 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 14:58:41,011 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (1000, 2000, 2001)
2025-04-19 14:58:41,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:41,013 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:58:41,013 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 14:58:41,013 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 14:58:41,013 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 14:58:41,013 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 14:58:41,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:41,014 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:58:41,015 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1001, datetime.datetime(2025, 4, 19, 13, 58, 41, 9504))
2025-04-19 14:58:41,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,419 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 14:58:48,421 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,422 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:58:48,422 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:58:48,423 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,424 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,424 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:58:48,424 - sqlalchemy.engine.Engine - INFO - [cached since 0.002497s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:58:48,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,425 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:58:48,425 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:58:48,427 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,427 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:58:48,427 - sqlalchemy.engine.Engine - INFO - [cached since 0.005838s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:58:48,429 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:58:48,429 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1, datetime.datetime(2025, 4, 19, 14, 58, 48, 429901), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:58:48,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,445 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,447 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:58:48,447 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, datetime.datetime(2025, 4, 19, 14, 58, 48, 447522), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:58:48,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,448 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:58:48,448 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,449 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:58:48,449 - sqlalchemy.engine.Engine - INFO - [cached since 0.02704s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:58:48,450 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:58:48,451 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('67a149ee-7ca8-4026-9efa-fdfe44dfa73a', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 58, 48, 449522), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 58, 48, 450618), datetime.datetime(2025, 4, 19, 14, 58, 48, 450618), 0)
2025-04-19 14:58:48,451 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,460 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,462 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:58:48,462 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('67a149ee-7ca8-4026-9efa-fdfe44dfa73a',)
2025-04-19 14:58:48,463 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,464 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 67a149ee-7ca8-4026-9efa-fdfe44dfa73a (优先级 1) 添加到队列 0
2025-04-19 14:58:48,464 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0442秒
2025-04-19 14:58:48,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 67a149ee-7ca8-4026-9efa-fdfe44dfa73a, 优先级: 1
2025-04-19 14:58:48,503 - services.execution.task_executor - DEBUG - 任务 67a149ee-7ca8-4026-9efa-fdfe44dfa73a 设置超时时间: 3600秒
2025-04-19 14:58:48,504 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,504 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:58:48,504 - sqlalchemy.engine.Engine - INFO - [cached since 0.04316s ago] ('67a149ee-7ca8-4026-9efa-fdfe44dfa73a',)
2025-04-19 14:58:48,505 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:58:48,505 - sqlalchemy.engine.Engine - INFO - [cached since 0.08357s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:58:48,507 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:58:48,507 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 19, 14, 58, 48, 506740), datetime.datetime(2025, 4, 19, 14, 58, 48, 506740), '67a149ee-7ca8-4026-9efa-fdfe44dfa73a')
2025-04-19 14:58:48,507 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,519 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:58:48,519 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 58, 48, 519751), '67a149ee-7ca8-4026-9efa-fdfe44dfa73a')
2025-04-19 14:58:48,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,527 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:58:48,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,529 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:58:48,529 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('30fd9a5a-abef-4205-8293-e3c02d67eef1', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '67a149ee-7ca8-4026-9efa-fdfe44dfa73a', datetime.datetime(2025, 4, 19, 14, 58, 48, 527740), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 58, 48, 529748), datetime.datetime(2025, 4, 19, 14, 58, 48, 529748), 0)
2025-04-19 14:58:48,529 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,536 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:58:48,536 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('30fd9a5a-abef-4205-8293-e3c02d67eef1',)
2025-04-19 14:58:48,537 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:58:48,537 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:58:48,538 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:58:48,538 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 58, 48, 538516), '30fd9a5a-abef-4205-8293-e3c02d67eef1')
2025-04-19 14:58:48,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,549 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:58:48,549 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:58:48,549 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:58:48,550 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,550 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:58:48,550 - sqlalchemy.engine.Engine - INFO - [cached since 0.02143s ago] ('220e682e-9359-46be-be3d-9cf10b209797', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '67a149ee-7ca8-4026-9efa-fdfe44dfa73a', datetime.datetime(2025, 4, 19, 14, 58, 48, 549549), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 58, 48, 550553), datetime.datetime(2025, 4, 19, 14, 58, 48, 550553), 0)
2025-04-19 14:58:48,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,557 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 220e682e-9359-46be-be3d-9cf10b209797
2025-04-19 14:58:48,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,558 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:58:48,558 - sqlalchemy.engine.Engine - INFO - [cached since 0.02266s ago] ('220e682e-9359-46be-be3d-9cf10b209797',)
2025-04-19 14:58:48,559 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:58:48,559 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:58:48,559 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:58:48,560 - sqlalchemy.engine.Engine - INFO - [cached since 0.02214s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 58, 48, 559545), '220e682e-9359-46be-be3d-9cf10b209797')
2025-04-19 14:58:48,560 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,570 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:58:48,570 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('67a149ee-7ca8-4026-9efa-fdfe44dfa73a',)
2025-04-19 14:58:48,570 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 67a149ee-7ca8-4026-9efa-fdfe44dfa73a
2025-04-19 14:58:48,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,571 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:58:48,571 - services.execution.handlers.foundation - INFO - 任务 67a149ee-7ca8-4026-9efa-fdfe44dfa73a 打印: ['67a149ee-7ca8-4026-9efa-fdfe44dfa73a']
2025-04-19 14:58:48,571 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,572 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:58:48,572 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] ('f0564e48-85fd-41c3-9148-14a1f20e265a', 1, '{"success": true, "message": "打印成功", "output": {"message": ["67a149ee-7ca8-4026-9efa-fdfe44dfa73a"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '67a149ee-7ca8-4026-9efa-fdfe44dfa73a', datetime.datetime(2025, 4, 19, 14, 58, 48, 572122), datetime.datetime(2025, 4, 19, 14, 58, 48, 572122), 0)
2025-04-19 14:58:48,573 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,579 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,580 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:58:48,581 - sqlalchemy.engine.Engine - INFO - [cached since 0.04443s ago] ('220e682e-9359-46be-be3d-9cf10b209797',)
2025-04-19 14:58:48,581 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:58:48,581 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:58:48,582 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:58:48,582 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (datetime.datetime(2025, 4, 19, 14, 58, 48, 581042), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 58, 48, 582042), '220e682e-9359-46be-be3d-9cf10b209797')
2025-04-19 14:58:48,582 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,588 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,589 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:58:48,589 - sqlalchemy.engine.Engine - INFO - [cached since 0.01751s ago] ('e67380a1-90c9-47ad-adff-641acff5ec40', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["67a149ee-7ca8-4026-9efa-fdfe44dfa73a"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '67a149ee-7ca8-4026-9efa-fdfe44dfa73a', datetime.datetime(2025, 4, 19, 14, 58, 48, 589485), datetime.datetime(2025, 4, 19, 14, 58, 48, 589485), 0)
2025-04-19 14:58:48,590 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,597 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,597 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:58:48,598 - sqlalchemy.engine.Engine - INFO - [cached since 0.06212s ago] ('30fd9a5a-abef-4205-8293-e3c02d67eef1',)
2025-04-19 14:58:48,598 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:58:48,599 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:58:48,599 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:58:48,599 - sqlalchemy.engine.Engine - INFO - [cached since 0.01781s ago] (datetime.datetime(2025, 4, 19, 14, 58, 48, 599499), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 58, 48, 599499), '30fd9a5a-abef-4205-8293-e3c02d67eef1')
2025-04-19 14:58:48,600 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,607 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:48,608 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:58:48,608 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] (datetime.datetime(2025, 4, 19, 14, 58, 48, 607486), '任务执行成功', 1000, 89, datetime.datetime(2025, 4, 19, 14, 58, 48, 608487), '67a149ee-7ca8-4026-9efa-fdfe44dfa73a')
2025-04-19 14:58:48,608 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:48,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 67a149ee-7ca8-4026-9efa-fdfe44dfa73a, 结果: True
2025-04-19 14:58:53,876 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 14:58:53,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:53,877 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:58:53,877 - sqlalchemy.engine.Engine - INFO - [cached since 5.456s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:58:53,879 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:58:53,879 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (0, datetime.datetime(2025, 4, 19, 14, 58, 53, 879473), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:58:53,879 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:53,894 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:58:53,894 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:58:53,895 - sqlalchemy.engine.Engine - INFO - [cached since 5.473s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:58:53,895 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:58:53,896 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0202秒
2025-04-19 14:59:34,520 - root - INFO - 应用程序关闭中...
2025-04-19 14:59:34,520 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 14:59:34,520 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 14:59:34,521 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 14:59:34,521 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 14:59:34,521 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 14:59:34,521 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 14:59:34,521 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 14:59:34,521 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 14:59:34,522 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 14:59:34,522 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 14:59:34,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 14:59:34,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 14:59:34,522 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 14:59:34,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 14:59:34,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 14:59:34,523 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 14:59:34,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 14:59:34,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 14:59:34,524 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 14:59:34,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 14:59:34,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 14:59:34,524 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 14:59:34,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 14:59:34,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 14:59:34,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 14:59:34,525 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 14:59:34,526 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 14:59:34,526 - root - INFO - 增强版任务调度器已停止
2025-04-19 14:59:34,526 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 14:59:34,526 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 14:59:34,526 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 14:59:34,527 - data.session - INFO - 数据库连接已关闭
2025-04-19 14:59:36,957 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:59:36,958 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:59:37,714 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 14:59:37,715 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 14:59:37,777 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 14:59:37,824 - data.session - INFO - 正在初始化数据库...
2025-04-19 14:59:37,859 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 14:59:37,881 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:59:37,881 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,881 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:59:37,882 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,883 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:59:37,883 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:37,884 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 14:59:37,884 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,887 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 14:59:37,887 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,889 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 14:59:37,889 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,891 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 14:59:37,891 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,892 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 14:59:37,892 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,894 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 14:59:37,895 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,896 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 14:59:37,896 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,897 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 14:59:37,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,899 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 14:59:37,899 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,903 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 14:59:37,903 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,905 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 14:59:37,906 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 14:59:37,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:37,907 - data.session - INFO - 数据库表初始化完成
2025-04-19 14:59:38,276 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 14:59:38,277 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 14:59:38,277 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 14:59:38,277 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 14:59:38,277 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 14:59:38,277 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 14:59:38,277 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 14:59:38,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 14:59:38,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 14:59:38,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 14:59:38,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 14:59:38,278 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 14:59:38,278 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 14:59:38,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 14:59:38,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 14:59:38,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 14:59:38,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 14:59:38,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 14:59:38,280 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 14:59:38,281 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 14:59:38,281 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:59:38,282 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 14:59:38,282 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:59:38,283 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 14:59:38,283 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:59:38,283 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 14:59:38,284 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 14:59:38,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:38,292 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 14:59:38,293 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1, 1)
2025-04-19 14:59:38,293 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 14:59:38,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:38,294 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 14:59:38,295 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 14:59:38,295 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 14:59:38,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:38,298 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 14:59:38,298 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1000, 2000, 2001)
2025-04-19 14:59:38,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:38,300 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 14:59:38,300 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 14:59:38,300 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 14:59:38,300 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 14:59:38,300 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 14:59:38,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:38,304 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 14:59:38,304 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (1001, datetime.datetime(2025, 4, 19, 13, 59, 38, 295970))
2025-04-19 14:59:38,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,114 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 14:59:48,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,118 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:59:48,118 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:59:48,119 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,121 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:59:48,121 - sqlalchemy.engine.Engine - INFO - [cached since 0.002565s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:59:48,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,122 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:59:48,122 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:59:48,123 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,123 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:59:48,123 - sqlalchemy.engine.Engine - INFO - [cached since 0.004829s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:59:48,125 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:59:48,125 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1, datetime.datetime(2025, 4, 19, 14, 59, 48, 124567), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:59:48,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,136 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:59:48,137 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1, datetime.datetime(2025, 4, 19, 14, 59, 48, 136562), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:59:48,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,138 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 14:59:48,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,138 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:59:48,139 - sqlalchemy.engine.Engine - INFO - [cached since 0.02064s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:59:48,140 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:59:48,141 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('750a4ef6-186c-443c-b5bc-a639e6d8d122', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 59, 48, 140563), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 59, 48, 140563), datetime.datetime(2025, 4, 19, 14, 59, 48, 140563), 0)
2025-04-19 14:59:48,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,149 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,150 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:48,150 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('750a4ef6-186c-443c-b5bc-a639e6d8d122',)
2025-04-19 14:59:48,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,152 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 750a4ef6-186c-443c-b5bc-a639e6d8d122 (优先级 1) 添加到队列 0
2025-04-19 14:59:48,152 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0380秒
2025-04-19 14:59:48,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 750a4ef6-186c-443c-b5bc-a639e6d8d122, 优先级: 1
2025-04-19 14:59:48,246 - services.execution.task_executor - DEBUG - 任务 750a4ef6-186c-443c-b5bc-a639e6d8d122 设置超时时间: 3600秒
2025-04-19 14:59:48,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,248 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:48,248 - sqlalchemy.engine.Engine - INFO - [cached since 0.09805s ago] ('750a4ef6-186c-443c-b5bc-a639e6d8d122',)
2025-04-19 14:59:48,250 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:59:48,250 - sqlalchemy.engine.Engine - INFO - [cached since 0.1318s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:59:48,251 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:48,251 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (datetime.datetime(2025, 4, 19, 14, 59, 48, 250635), datetime.datetime(2025, 4, 19, 14, 59, 48, 251654), '750a4ef6-186c-443c-b5bc-a639e6d8d122')
2025-04-19 14:59:48,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,291 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:48,291 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 59, 48, 291636), '750a4ef6-186c-443c-b5bc-a639e6d8d122')
2025-04-19 14:59:48,292 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,325 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:59:48,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,328 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:59:48,328 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('07b669fc-354a-4703-bbcd-2541cbbef9e8', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '750a4ef6-186c-443c-b5bc-a639e6d8d122', datetime.datetime(2025, 4, 19, 14, 59, 48, 326721), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 59, 48, 328725), datetime.datetime(2025, 4, 19, 14, 59, 48, 328725), 0)
2025-04-19 14:59:48,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,344 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:59:48,344 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('07b669fc-354a-4703-bbcd-2541cbbef9e8',)
2025-04-19 14:59:48,345 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:59:48,345 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:59:48,346 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:59:48,347 - sqlalchemy.engine.Engine - INFO - [generated in 0.00142s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 59, 48, 346736), '07b669fc-354a-4703-bbcd-2541cbbef9e8')
2025-04-19 14:59:48,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,355 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:59:48,355 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:59:48,356 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:59:48,358 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,360 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:59:48,360 - sqlalchemy.engine.Engine - INFO - [cached since 0.032s ago] ('78a6e77c-89c3-4a9d-ab31-cadd08a552b7', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '750a4ef6-186c-443c-b5bc-a639e6d8d122', datetime.datetime(2025, 4, 19, 14, 59, 48, 356732), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 59, 48, 360770), datetime.datetime(2025, 4, 19, 14, 59, 48, 360770), 0)
2025-04-19 14:59:48,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,370 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 78a6e77c-89c3-4a9d-ab31-cadd08a552b7
2025-04-19 14:59:48,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,371 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:59:48,371 - sqlalchemy.engine.Engine - INFO - [cached since 0.02782s ago] ('78a6e77c-89c3-4a9d-ab31-cadd08a552b7',)
2025-04-19 14:59:48,372 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:59:48,372 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:59:48,373 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:59:48,373 - sqlalchemy.engine.Engine - INFO - [cached since 0.02745s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 59, 48, 373723), '78a6e77c-89c3-4a9d-ab31-cadd08a552b7')
2025-04-19 14:59:48,374 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,384 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,386 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:59:48,386 - sqlalchemy.engine.Engine - INFO - [generated in 0.00189s] ('750a4ef6-186c-443c-b5bc-a639e6d8d122',)
2025-04-19 14:59:48,387 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 750a4ef6-186c-443c-b5bc-a639e6d8d122
2025-04-19 14:59:48,387 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,388 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:59:48,388 - services.execution.handlers.foundation - INFO - 任务 750a4ef6-186c-443c-b5bc-a639e6d8d122 打印: ['750a4ef6-186c-443c-b5bc-a639e6d8d122']
2025-04-19 14:59:48,388 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,389 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:59:48,389 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('9b351f09-fa68-4d0a-83f7-a732703e147f', 1, '{"success": true, "message": "打印成功", "output": {"message": ["750a4ef6-186c-443c-b5bc-a639e6d8d122"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '750a4ef6-186c-443c-b5bc-a639e6d8d122', datetime.datetime(2025, 4, 19, 14, 59, 48, 389754), datetime.datetime(2025, 4, 19, 14, 59, 48, 389754), 0)
2025-04-19 14:59:48,390 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,396 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,397 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:59:48,397 - sqlalchemy.engine.Engine - INFO - [cached since 0.05369s ago] ('78a6e77c-89c3-4a9d-ab31-cadd08a552b7',)
2025-04-19 14:59:48,398 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:59:48,398 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:59:48,399 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:59:48,399 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (datetime.datetime(2025, 4, 19, 14, 59, 48, 398732), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 59, 48, 399659), '78a6e77c-89c3-4a9d-ab31-cadd08a552b7')
2025-04-19 14:59:48,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,408 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,409 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:59:48,409 - sqlalchemy.engine.Engine - INFO - [cached since 0.02s ago] ('f8507a95-6c6d-4c9c-ae3f-b30410028992', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["750a4ef6-186c-443c-b5bc-a639e6d8d122"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '750a4ef6-186c-443c-b5bc-a639e6d8d122', datetime.datetime(2025, 4, 19, 14, 59, 48, 409637), datetime.datetime(2025, 4, 19, 14, 59, 48, 409637), 0)
2025-04-19 14:59:48,409 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,417 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,418 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:59:48,418 - sqlalchemy.engine.Engine - INFO - [cached since 0.07413s ago] ('07b669fc-354a-4703-bbcd-2541cbbef9e8',)
2025-04-19 14:59:48,418 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:59:48,419 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:59:48,419 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:59:48,419 - sqlalchemy.engine.Engine - INFO - [cached since 0.02038s ago] (datetime.datetime(2025, 4, 19, 14, 59, 48, 419644), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 59, 48, 419644), '07b669fc-354a-4703-bbcd-2541cbbef9e8')
2025-04-19 14:59:48,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,427 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:48,428 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:48,428 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (datetime.datetime(2025, 4, 19, 14, 59, 48, 427641), '任务执行成功', 1000, 137, datetime.datetime(2025, 4, 19, 14, 59, 48, 428637), '750a4ef6-186c-443c-b5bc-a639e6d8d122')
2025-04-19 14:59:48,428 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:48,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 750a4ef6-186c-443c-b5bc-a639e6d8d122, 结果: True
2025-04-19 14:59:53,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,335 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:59:53,335 - sqlalchemy.engine.Engine - INFO - [cached since 5.217s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:59:53,336 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 14:59:53,337 - sqlalchemy.engine.Engine - INFO - [cached since 5.196s ago] ('97ec4f3a-79db-4941-b375-10bfed8aa582', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 14, 59, 53, 336309), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 14, 59, 53, 336309), datetime.datetime(2025, 4, 19, 14, 59, 53, 336309), 0)
2025-04-19 14:59:53,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,347 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:53,347 - sqlalchemy.engine.Engine - INFO - [cached since 5.197s ago] ('97ec4f3a-79db-4941-b375-10bfed8aa582',)
2025-04-19 14:59:53,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,349 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 97ec4f3a-79db-4941-b375-10bfed8aa582 (优先级 1) 添加到队列 0
2025-04-19 14:59:53,349 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 14:59:53,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 97ec4f3a-79db-4941-b375-10bfed8aa582, 优先级: 1
2025-04-19 14:59:53,379 - services.execution.task_executor - DEBUG - 任务 97ec4f3a-79db-4941-b375-10bfed8aa582 设置超时时间: 3600秒
2025-04-19 14:59:53,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,379 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:53,380 - sqlalchemy.engine.Engine - INFO - [cached since 5.229s ago] ('97ec4f3a-79db-4941-b375-10bfed8aa582',)
2025-04-19 14:59:53,381 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:59:53,381 - sqlalchemy.engine.Engine - INFO - [cached since 5.262s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:59:53,382 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:53,382 - sqlalchemy.engine.Engine - INFO - [cached since 5.131s ago] (datetime.datetime(2025, 4, 19, 14, 59, 53, 382791), datetime.datetime(2025, 4, 19, 14, 59, 53, 382791), '97ec4f3a-79db-4941-b375-10bfed8aa582')
2025-04-19 14:59:53,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,391 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,391 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:53,391 - sqlalchemy.engine.Engine - INFO - [cached since 5.101s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 14, 59, 53, 391931), '97ec4f3a-79db-4941-b375-10bfed8aa582')
2025-04-19 14:59:53,393 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,401 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 14:59:53,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,404 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:59:53,404 - sqlalchemy.engine.Engine - INFO - [cached since 5.076s ago] ('5b5559d9-6aee-44eb-819a-9fdf3aaac680', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '97ec4f3a-79db-4941-b375-10bfed8aa582', datetime.datetime(2025, 4, 19, 14, 59, 53, 403376), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 59, 53, 404332), datetime.datetime(2025, 4, 19, 14, 59, 53, 404332), 0)
2025-04-19 14:59:53,405 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,413 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:59:53,413 - sqlalchemy.engine.Engine - INFO - [cached since 5.069s ago] ('5b5559d9-6aee-44eb-819a-9fdf3aaac680',)
2025-04-19 14:59:53,414 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:59:53,414 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:59:53,415 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:59:53,415 - sqlalchemy.engine.Engine - INFO - [cached since 5.068s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 59, 53, 415193), '5b5559d9-6aee-44eb-819a-9fdf3aaac680')
2025-04-19 14:59:53,415 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,424 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 14:59:53,424 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 14:59:53,424 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 14:59:53,425 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,425 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 14:59:53,425 - sqlalchemy.engine.Engine - INFO - [cached since 5.097s ago] ('c507ad28-1469-47f9-bbcb-6844a2a6ea7e', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '97ec4f3a-79db-4941-b375-10bfed8aa582', datetime.datetime(2025, 4, 19, 14, 59, 53, 424195), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 14, 59, 53, 425330), datetime.datetime(2025, 4, 19, 14, 59, 53, 425330), 0)
2025-04-19 14:59:53,425 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,432 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c507ad28-1469-47f9-bbcb-6844a2a6ea7e
2025-04-19 14:59:53,433 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,433 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:59:53,433 - sqlalchemy.engine.Engine - INFO - [cached since 5.089s ago] ('c507ad28-1469-47f9-bbcb-6844a2a6ea7e',)
2025-04-19 14:59:53,434 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:59:53,435 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:59:53,435 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:59:53,435 - sqlalchemy.engine.Engine - INFO - [cached since 5.089s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 14, 59, 53, 435400), 'c507ad28-1469-47f9-bbcb-6844a2a6ea7e')
2025-04-19 14:59:53,436 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,441 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,441 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 14:59:53,442 - sqlalchemy.engine.Engine - INFO - [cached since 5.057s ago] ('97ec4f3a-79db-4941-b375-10bfed8aa582',)
2025-04-19 14:59:53,442 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 97ec4f3a-79db-4941-b375-10bfed8aa582
2025-04-19 14:59:53,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,443 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 14:59:53,443 - services.execution.handlers.foundation - INFO - 任务 97ec4f3a-79db-4941-b375-10bfed8aa582 打印: ['97ec4f3a-79db-4941-b375-10bfed8aa582']
2025-04-19 14:59:53,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,443 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:59:53,443 - sqlalchemy.engine.Engine - INFO - [cached since 5.054s ago] ('a1a1b044-8c69-4635-87d7-63159ab75b11', 1, '{"success": true, "message": "打印成功", "output": {"message": ["97ec4f3a-79db-4941-b375-10bfed8aa582"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '97ec4f3a-79db-4941-b375-10bfed8aa582', datetime.datetime(2025, 4, 19, 14, 59, 53, 443305), datetime.datetime(2025, 4, 19, 14, 59, 53, 443305), 0)
2025-04-19 14:59:53,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,453 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:59:53,454 - sqlalchemy.engine.Engine - INFO - [cached since 5.11s ago] ('c507ad28-1469-47f9-bbcb-6844a2a6ea7e',)
2025-04-19 14:59:53,455 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 14:59:53,455 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 14:59:53,455 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:59:53,455 - sqlalchemy.engine.Engine - INFO - [cached since 5.057s ago] (datetime.datetime(2025, 4, 19, 14, 59, 53, 455813), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 59, 53, 455813), 'c507ad28-1469-47f9-bbcb-6844a2a6ea7e')
2025-04-19 14:59:53,456 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,464 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,464 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 14:59:53,464 - sqlalchemy.engine.Engine - INFO - [cached since 5.075s ago] ('f044f485-a5f0-444d-b48b-630c3bf3fad6', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["97ec4f3a-79db-4941-b375-10bfed8aa582"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '97ec4f3a-79db-4941-b375-10bfed8aa582', datetime.datetime(2025, 4, 19, 14, 59, 53, 464483), datetime.datetime(2025, 4, 19, 14, 59, 53, 464483), 0)
2025-04-19 14:59:53,464 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,479 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,480 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 14:59:53,480 - sqlalchemy.engine.Engine - INFO - [cached since 5.137s ago] ('5b5559d9-6aee-44eb-819a-9fdf3aaac680',)
2025-04-19 14:59:53,481 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 14:59:53,481 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 14:59:53,482 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 14:59:53,483 - sqlalchemy.engine.Engine - INFO - [cached since 5.084s ago] (datetime.datetime(2025, 4, 19, 14, 59, 53, 482801), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 14, 59, 53, 482801), '5b5559d9-6aee-44eb-819a-9fdf3aaac680')
2025-04-19 14:59:53,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,490 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:53,490 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 14:59:53,490 - sqlalchemy.engine.Engine - INFO - [cached since 5.063s ago] (datetime.datetime(2025, 4, 19, 14, 59, 53, 490799), '任务执行成功', 1000, 98, datetime.datetime(2025, 4, 19, 14, 59, 53, 490799), '97ec4f3a-79db-4941-b375-10bfed8aa582')
2025-04-19 14:59:53,491 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:53,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 97ec4f3a-79db-4941-b375-10bfed8aa582, 结果: True
2025-04-19 14:59:55,881 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 14:59:55,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:55,882 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:59:55,882 - sqlalchemy.engine.Engine - INFO - [cached since 7.764s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:59:55,883 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 14:59:55,883 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (0, datetime.datetime(2025, 4, 19, 14, 59, 55, 883868), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 14:59:55,884 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:55,890 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 14:59:55,890 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 14:59:55,890 - sqlalchemy.engine.Engine - INFO - [cached since 7.772s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 14:59:55,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 14:59:55,891 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0100秒
2025-04-19 15:00:38,279 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:00:38,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:00:38,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:00:38,280 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:00:38,281 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:00:38,282 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:00:38,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:00:38,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:00:38,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:00:38,283 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:00:38,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:00:38,283 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:00:38,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:00:38,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:00:38,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:00:38,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:00:38,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:00:38,284 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:00:38,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:00:38,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:00:38,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:00:38,285 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:00:38,285 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:00:38,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:00:38,310 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:00:38,310 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:00:38,310 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 14, 0, 38, 309975))
2025-04-19 15:00:38,312 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:00:38,419 - root - INFO - 应用程序关闭中...
2025-04-19 15:00:38,420 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:00:38,420 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:00:38,421 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:00:38,421 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:00:38,421 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:00:38,421 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:00:38,421 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:00:38,422 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:00:38,422 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:00:38,422 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:00:38,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:00:38,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:00:38,422 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:00:38,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:00:38,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:00:38,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-19 15:00:38,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:00:38,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:00:38,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 2
2025-04-19 15:00:38,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:00:38,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:00:38,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:00:38,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:00:38,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:00:38,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:00:38,424 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:00:38,424 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:00:38,424 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:00:38,425 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:00:38,425 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:00:38,426 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:00:38,426 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:00:39,531 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:00:39,531 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:00:39,595 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:00:39,639 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:00:39,666 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:00:39,691 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:00:39,692 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,693 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:00:39,693 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,693 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:00:39,694 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:00:39,694 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:00:39,694 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,696 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:00:39,696 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,697 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:00:39,697 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,698 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:00:39,698 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,699 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:00:39,699 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,700 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:00:39,700 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,701 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:00:39,701 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,701 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:00:39,702 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,702 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:00:39,702 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:00:39,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,704 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:00:39,704 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:00:39,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:00:39,705 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:00:40,059 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:00:40,059 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:00:40,060 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:00:40,060 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:00:40,060 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:00:40,060 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:00:40,060 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:00:40,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:00:40,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:00:40,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:00:40,062 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:00:40,062 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:00:40,062 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:00:40,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:00:40,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:00:40,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:00:40,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:00:40,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:00:40,065 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:00:40,065 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:00:40,066 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:00:40,067 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:00:40,067 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:00:40,068 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:00:40,068 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:00:40,069 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:00:40,069 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:00:40,069 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:00:40,077 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:00:40,078 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (1, 1)
2025-04-19 15:00:40,079 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:00:40,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:00:40,079 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:00:40,080 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:00:40,080 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:00:40,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:00:40,082 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:00:40,083 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1000, 2000, 2001)
2025-04-19 15:00:40,086 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:00:40,087 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:00:40,087 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:00:40,087 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:00:40,087 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:00:40,088 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:00:40,088 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:00:40,090 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:00:40,090 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (1001, datetime.datetime(2025, 4, 19, 14, 0, 40, 80648))
2025-04-19 15:00:40,091 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:14,599 - root - INFO - 应用程序关闭中...
2025-04-19 15:01:14,600 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:01:14,600 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:01:14,600 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:01:14,600 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:01:14,600 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:01:14,601 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:01:14,601 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:01:14,601 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:01:14,602 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:01:14,602 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:01:14,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:01:14,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:01:14,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:01:14,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:01:14,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:01:14,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:01:14,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:01:14,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:01:14,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:01:14,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:01:14,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:01:14,604 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:01:14,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:01:14,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:01:14,604 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:01:14,604 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:01:14,605 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:01:14,605 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:01:14,606 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:01:14,607 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:01:14,607 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:01:14,607 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:01:15,740 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:01:15,740 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:01:15,794 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:01:15,847 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:01:15,878 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:01:15,897 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:01:15,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,899 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:01:15,899 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,900 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:01:15,900 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:15,901 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:01:15,901 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,905 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:01:15,905 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,909 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:01:15,909 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,910 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:01:15,910 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,911 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:01:15,911 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,911 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:01:15,912 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,914 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:01:15,914 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,924 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:01:15,924 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,931 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:01:15,931 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,932 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:01:15,933 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,933 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:01:15,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:01:15,937 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:15,937 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:01:16,306 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:01:16,306 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:01:16,306 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:01:16,307 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:01:16,307 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:01:16,307 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:01:16,307 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:01:16,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:01:16,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:01:16,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:01:16,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:01:16,309 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:01:16,309 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:01:16,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:01:16,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:01:16,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:01:16,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:01:16,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:01:16,311 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:01:16,311 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:01:16,312 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:01:16,313 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:01:16,314 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:01:16,314 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:01:16,315 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:01:16,315 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:01:16,315 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:01:16,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:16,325 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:01:16,326 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (1, 1)
2025-04-19 15:01:16,327 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:01:16,327 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:16,328 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:01:16,328 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:01:16,329 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:01:16,330 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:16,331 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:01:16,331 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1000, 2000, 2001)
2025-04-19 15:01:16,333 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:16,333 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:01:16,333 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:01:16,334 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:01:16,334 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:01:16,334 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:01:16,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:16,335 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:01:16,336 - sqlalchemy.engine.Engine - INFO - [generated in 0.00183s] (1001, datetime.datetime(2025, 4, 19, 14, 1, 16, 330174))
2025-04-19 15:01:16,339 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,331 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:01:20,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,333 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:01:20,334 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:01:20,334 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,335 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:01:20,335 - sqlalchemy.engine.Engine - INFO - [cached since 0.002131s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:01:20,336 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,336 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:01:20,337 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:01:20,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,337 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:01:20,337 - sqlalchemy.engine.Engine - INFO - [cached since 0.003991s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:01:20,339 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:01:20,339 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1, datetime.datetime(2025, 4, 19, 15, 1, 20, 339110), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:01:20,340 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,347 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,348 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:01:20,348 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, datetime.datetime(2025, 4, 19, 15, 1, 20, 348110), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:01:20,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,349 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:01:20,349 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,349 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:01:20,349 - sqlalchemy.engine.Engine - INFO - [cached since 0.016s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:01:20,351 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:01:20,351 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('f4cd4bd1-73a6-4c4f-b341-47d058c660b7', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 1, 20, 350110), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 1, 20, 351197), datetime.datetime(2025, 4, 19, 15, 1, 20, 351197), 0)
2025-04-19 15:01:20,352 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,363 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,364 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:20,364 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('f4cd4bd1-73a6-4c4f-b341-47d058c660b7',)
2025-04-19 15:01:20,365 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,366 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f4cd4bd1-73a6-4c4f-b341-47d058c660b7 (优先级 1) 添加到队列 0
2025-04-19 15:01:20,366 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0350秒
2025-04-19 15:01:20,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: f4cd4bd1-73a6-4c4f-b341-47d058c660b7, 优先级: 1
2025-04-19 15:01:20,446 - services.execution.task_executor - DEBUG - 任务 f4cd4bd1-73a6-4c4f-b341-47d058c660b7 设置超时时间: 3600秒
2025-04-19 15:01:20,447 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,448 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:20,448 - sqlalchemy.engine.Engine - INFO - [cached since 0.08456s ago] ('f4cd4bd1-73a6-4c4f-b341-47d058c660b7',)
2025-04-19 15:01:20,449 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:01:20,450 - sqlalchemy.engine.Engine - INFO - [cached since 0.1166s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:01:20,451 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:20,451 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (datetime.datetime(2025, 4, 19, 15, 1, 20, 450504), datetime.datetime(2025, 4, 19, 15, 1, 20, 451486), 'f4cd4bd1-73a6-4c4f-b341-47d058c660b7')
2025-04-19 15:01:20,452 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,464 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,464 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:20,464 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 1, 20, 464499), 'f4cd4bd1-73a6-4c4f-b341-47d058c660b7')
2025-04-19 15:01:20,465 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,472 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:01:20,473 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,475 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:01:20,475 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('ccfd8fa5-bd4a-4f77-808b-b436d3201587', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f4cd4bd1-73a6-4c4f-b341-47d058c660b7', datetime.datetime(2025, 4, 19, 15, 1, 20, 473477), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 1, 20, 474489), datetime.datetime(2025, 4, 19, 15, 1, 20, 474489), 0)
2025-04-19 15:01:20,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,487 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,489 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:01:20,489 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] ('ccfd8fa5-bd4a-4f77-808b-b436d3201587',)
2025-04-19 15:01:20,491 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:01:20,491 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:01:20,492 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:01:20,492 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 1, 20, 492506), 'ccfd8fa5-bd4a-4f77-808b-b436d3201587')
2025-04-19 15:01:20,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,503 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:01:20,503 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:01:20,504 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:01:20,504 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,505 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:01:20,505 - sqlalchemy.engine.Engine - INFO - [cached since 0.03068s ago] ('c1f7e3a0-1115-46de-8e4f-c4d688d3074c', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f4cd4bd1-73a6-4c4f-b341-47d058c660b7', datetime.datetime(2025, 4, 19, 15, 1, 20, 504486), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 1, 20, 505488), datetime.datetime(2025, 4, 19, 15, 1, 20, 505488), 0)
2025-04-19 15:01:20,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,513 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c1f7e3a0-1115-46de-8e4f-c4d688d3074c
2025-04-19 15:01:20,514 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,514 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:01:20,515 - sqlalchemy.engine.Engine - INFO - [cached since 0.02587s ago] ('c1f7e3a0-1115-46de-8e4f-c4d688d3074c',)
2025-04-19 15:01:20,515 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:01:20,515 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:01:20,516 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:01:20,516 - sqlalchemy.engine.Engine - INFO - [cached since 0.02417s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 1, 20, 516488), 'c1f7e3a0-1115-46de-8e4f-c4d688d3074c')
2025-04-19 15:01:20,517 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,527 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:01:20,527 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('f4cd4bd1-73a6-4c4f-b341-47d058c660b7',)
2025-04-19 15:01:20,528 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: f4cd4bd1-73a6-4c4f-b341-47d058c660b7
2025-04-19 15:01:20,528 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,528 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:01:20,529 - services.execution.handlers.foundation - INFO - 任务 f4cd4bd1-73a6-4c4f-b341-47d058c660b7 打印: ['f4cd4bd1-73a6-4c4f-b341-47d058c660b7']
2025-04-19 15:01:20,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,530 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:01:20,530 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('3b428a63-8468-4400-b3f5-f708b3a76285', 1, '{"success": true, "message": "打印成功", "output": {"message": ["f4cd4bd1-73a6-4c4f-b341-47d058c660b7"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f4cd4bd1-73a6-4c4f-b341-47d058c660b7', datetime.datetime(2025, 4, 19, 15, 1, 20, 530068), datetime.datetime(2025, 4, 19, 15, 1, 20, 530068), 0)
2025-04-19 15:01:20,530 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,541 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:01:20,541 - sqlalchemy.engine.Engine - INFO - [cached since 0.05181s ago] ('c1f7e3a0-1115-46de-8e4f-c4d688d3074c',)
2025-04-19 15:01:20,542 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:01:20,542 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:01:20,542 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:01:20,542 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 19, 15, 1, 20, 542072), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 1, 20, 542072), 'c1f7e3a0-1115-46de-8e4f-c4d688d3074c')
2025-04-19 15:01:20,543 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,551 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,551 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:01:20,552 - sqlalchemy.engine.Engine - INFO - [cached since 0.02194s ago] ('bb687f0e-1921-4ca9-8ed5-0c7eaea7b710', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["f4cd4bd1-73a6-4c4f-b341-47d058c660b7"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f4cd4bd1-73a6-4c4f-b341-47d058c660b7', datetime.datetime(2025, 4, 19, 15, 1, 20, 551069), datetime.datetime(2025, 4, 19, 15, 1, 20, 551069), 0)
2025-04-19 15:01:20,552 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,559 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:01:20,560 - sqlalchemy.engine.Engine - INFO - [cached since 0.07064s ago] ('ccfd8fa5-bd4a-4f77-808b-b436d3201587',)
2025-04-19 15:01:20,562 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:01:20,562 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:01:20,562 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:01:20,562 - sqlalchemy.engine.Engine - INFO - [cached since 0.02015s ago] (datetime.datetime(2025, 4, 19, 15, 1, 20, 562069), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 1, 20, 562069), 'ccfd8fa5-bd4a-4f77-808b-b436d3201587')
2025-04-19 15:01:20,564 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,571 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:20,574 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:20,575 - sqlalchemy.engine.Engine - INFO - [generated in 0.00095s] (datetime.datetime(2025, 4, 19, 15, 1, 20, 571080), '任务执行成功', 1000, 107, datetime.datetime(2025, 4, 19, 15, 1, 20, 574168), 'f4cd4bd1-73a6-4c4f-b341-47d058c660b7')
2025-04-19 15:01:20,577 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:20,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: f4cd4bd1-73a6-4c4f-b341-47d058c660b7, 结果: True
2025-04-19 15:01:26,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,328 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:01:26,328 - sqlalchemy.engine.Engine - INFO - [cached since 5.995s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:01:26,329 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:01:26,330 - sqlalchemy.engine.Engine - INFO - [cached since 5.98s ago] ('6d78c482-059f-4c23-974b-a3e20c708092', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 1, 26, 329309), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 1, 26, 329309), datetime.datetime(2025, 4, 19, 15, 1, 26, 329309), 0)
2025-04-19 15:01:26,332 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,348 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,349 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:26,351 - sqlalchemy.engine.Engine - INFO - [cached since 5.987s ago] ('6d78c482-059f-4c23-974b-a3e20c708092',)
2025-04-19 15:01:26,352 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,353 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d78c482-059f-4c23-974b-a3e20c708092 (优先级 1) 添加到队列 0
2025-04-19 15:01:26,354 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:01:26,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 6d78c482-059f-4c23-974b-a3e20c708092, 优先级: 1
2025-04-19 15:01:26,437 - services.execution.task_executor - DEBUG - 任务 6d78c482-059f-4c23-974b-a3e20c708092 设置超时时间: 3600秒
2025-04-19 15:01:26,437 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,438 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:26,438 - sqlalchemy.engine.Engine - INFO - [cached since 6.075s ago] ('6d78c482-059f-4c23-974b-a3e20c708092',)
2025-04-19 15:01:26,439 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:01:26,440 - sqlalchemy.engine.Engine - INFO - [cached since 6.107s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:01:26,440 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:26,441 - sqlalchemy.engine.Engine - INFO - [cached since 5.991s ago] (datetime.datetime(2025, 4, 19, 15, 1, 26, 440720), datetime.datetime(2025, 4, 19, 15, 1, 26, 440720), '6d78c482-059f-4c23-974b-a3e20c708092')
2025-04-19 15:01:26,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,451 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:26,451 - sqlalchemy.engine.Engine - INFO - [cached since 5.987s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 1, 26, 451721), '6d78c482-059f-4c23-974b-a3e20c708092')
2025-04-19 15:01:26,452 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,461 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:01:26,462 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,462 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:01:26,463 - sqlalchemy.engine.Engine - INFO - [cached since 5.988s ago] ('d00f0ff2-fc0f-461e-9ed4-93ff6b0561da', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '6d78c482-059f-4c23-974b-a3e20c708092', datetime.datetime(2025, 4, 19, 15, 1, 26, 461726), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 1, 26, 462735), datetime.datetime(2025, 4, 19, 15, 1, 26, 462735), 0)
2025-04-19 15:01:26,463 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,470 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,471 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:01:26,471 - sqlalchemy.engine.Engine - INFO - [cached since 5.983s ago] ('d00f0ff2-fc0f-461e-9ed4-93ff6b0561da',)
2025-04-19 15:01:26,472 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:01:26,472 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:01:26,472 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:01:26,473 - sqlalchemy.engine.Engine - INFO - [cached since 5.981s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 1, 26, 472719), 'd00f0ff2-fc0f-461e-9ed4-93ff6b0561da')
2025-04-19 15:01:26,473 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,481 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:01:26,482 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:01:26,482 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:01:26,483 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,483 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:01:26,483 - sqlalchemy.engine.Engine - INFO - [cached since 6.009s ago] ('4fc1d8bf-c099-4be8-9db1-ce8f5233b295', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '6d78c482-059f-4c23-974b-a3e20c708092', datetime.datetime(2025, 4, 19, 15, 1, 26, 482721), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 1, 26, 483720), datetime.datetime(2025, 4, 19, 15, 1, 26, 483720), 0)
2025-04-19 15:01:26,484 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,492 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4fc1d8bf-c099-4be8-9db1-ce8f5233b295
2025-04-19 15:01:26,493 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,493 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:01:26,493 - sqlalchemy.engine.Engine - INFO - [cached since 6.005s ago] ('4fc1d8bf-c099-4be8-9db1-ce8f5233b295',)
2025-04-19 15:01:26,494 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:01:26,494 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:01:26,494 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:01:26,495 - sqlalchemy.engine.Engine - INFO - [cached since 6.003s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 1, 26, 494719), '4fc1d8bf-c099-4be8-9db1-ce8f5233b295')
2025-04-19 15:01:26,495 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,503 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,503 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:01:26,503 - sqlalchemy.engine.Engine - INFO - [cached since 5.977s ago] ('6d78c482-059f-4c23-974b-a3e20c708092',)
2025-04-19 15:01:26,503 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 6d78c482-059f-4c23-974b-a3e20c708092
2025-04-19 15:01:26,504 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,504 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:01:26,504 - services.execution.handlers.foundation - INFO - 任务 6d78c482-059f-4c23-974b-a3e20c708092 打印: ['6d78c482-059f-4c23-974b-a3e20c708092']
2025-04-19 15:01:26,505 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,505 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:01:26,505 - sqlalchemy.engine.Engine - INFO - [cached since 5.976s ago] ('69b72c92-76a4-4366-a751-f28637450e41', 1, '{"success": true, "message": "打印成功", "output": {"message": ["6d78c482-059f-4c23-974b-a3e20c708092"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '6d78c482-059f-4c23-974b-a3e20c708092', datetime.datetime(2025, 4, 19, 15, 1, 26, 505720), datetime.datetime(2025, 4, 19, 15, 1, 26, 505720), 0)
2025-04-19 15:01:26,505 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,513 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,513 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:01:26,514 - sqlalchemy.engine.Engine - INFO - [cached since 6.025s ago] ('4fc1d8bf-c099-4be8-9db1-ce8f5233b295',)
2025-04-19 15:01:26,514 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:01:26,514 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:01:26,515 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:01:26,515 - sqlalchemy.engine.Engine - INFO - [cached since 5.973s ago] (datetime.datetime(2025, 4, 19, 15, 1, 26, 515719), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 1, 26, 515719), '4fc1d8bf-c099-4be8-9db1-ce8f5233b295')
2025-04-19 15:01:26,515 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,522 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,522 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:01:26,523 - sqlalchemy.engine.Engine - INFO - [cached since 5.994s ago] ('98f5afbd-7071-48f6-997f-51e2675c2ba8', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["6d78c482-059f-4c23-974b-a3e20c708092"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '6d78c482-059f-4c23-974b-a3e20c708092', datetime.datetime(2025, 4, 19, 15, 1, 26, 522728), datetime.datetime(2025, 4, 19, 15, 1, 26, 522728), 0)
2025-04-19 15:01:26,523 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,530 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:01:26,530 - sqlalchemy.engine.Engine - INFO - [cached since 6.041s ago] ('d00f0ff2-fc0f-461e-9ed4-93ff6b0561da',)
2025-04-19 15:01:26,530 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:01:26,530 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:01:26,531 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:01:26,531 - sqlalchemy.engine.Engine - INFO - [cached since 5.989s ago] (datetime.datetime(2025, 4, 19, 15, 1, 26, 531720), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 1, 26, 531720), 'd00f0ff2-fc0f-461e-9ed4-93ff6b0561da')
2025-04-19 15:01:26,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:26,539 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:01:26,539 - sqlalchemy.engine.Engine - INFO - [cached since 5.966s ago] (datetime.datetime(2025, 4, 19, 15, 1, 26, 538718), '任务执行成功', 1000, 87, datetime.datetime(2025, 4, 19, 15, 1, 26, 539719), '6d78c482-059f-4c23-974b-a3e20c708092')
2025-04-19 15:01:26,539 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:26,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 6d78c482-059f-4c23-974b-a3e20c708092, 结果: True
2025-04-19 15:01:27,174 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:01:27,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:27,176 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:01:27,176 - sqlalchemy.engine.Engine - INFO - [cached since 6.843s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:01:27,177 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:01:27,178 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (0, datetime.datetime(2025, 4, 19, 15, 1, 27, 177867), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:01:27,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:27,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:01:27,194 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:01:27,195 - sqlalchemy.engine.Engine - INFO - [cached since 6.862s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:01:27,196 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:01:27,196 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0215秒
2025-04-19 15:02:03,794 - root - INFO - 应用程序关闭中...
2025-04-19 15:02:03,795 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:02:03,795 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:02:03,795 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:02:03,796 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:02:03,796 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:02:03,796 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:02:03,796 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:02:03,796 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:02:03,797 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:02:03,797 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:02:03,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:02:03,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:02:03,798 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:02:03,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:02:03,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:02:03,798 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:02:03,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:02:03,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:02:03,798 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:02:03,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:02:03,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:02:03,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:02:03,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:02:03,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:02:03,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:02:03,799 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:02:03,799 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:02:03,799 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:02:03,799 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:02:03,799 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:02:03,799 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:02:03,800 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:02:05,004 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:02:05,004 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:02:05,063 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:02:05,109 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:02:05,144 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:02:05,162 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:02:05,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,163 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:02:05,165 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,165 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:02:05,167 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,167 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:05,167 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:02:05,168 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,169 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:02:05,170 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,171 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:02:05,171 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,173 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:02:05,173 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,174 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:02:05,174 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,176 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:02:05,176 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,178 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:02:05,178 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,178 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:02:05,179 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,180 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:02:05,181 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,184 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:02:05,184 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,185 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:02:05,186 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:02:05,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:05,187 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:02:05,528 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:02:05,529 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:02:05,529 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:02:05,529 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:02:05,530 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:02:05,530 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:02:05,530 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:02:05,531 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:02:05,531 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:02:05,532 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:02:05,532 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:02:05,532 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:02:05,532 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:02:05,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:02:05,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:02:05,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:02:05,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:02:05,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:02:05,534 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:02:05,534 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:02:05,543 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:02:05,545 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:02:05,546 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:02:05,549 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:02:05,549 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:02:05,551 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:02:05,551 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:02:05,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:05,560 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:02:05,560 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1, 1)
2025-04-19 15:02:05,561 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:02:05,562 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:05,562 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:02:05,563 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:02:05,563 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:02:05,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:05,565 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:02:05,565 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (1000, 2000, 2001)
2025-04-19 15:02:05,567 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:05,567 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:02:05,568 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:02:05,568 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:02:05,568 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:02:05,568 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:02:05,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:05,568 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:02:05,569 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1001, datetime.datetime(2025, 4, 19, 14, 2, 5, 563179))
2025-04-19 15:02:05,570 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,127 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:02:11,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,133 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:02:11,133 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:02:11,134 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,135 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:02:11,136 - sqlalchemy.engine.Engine - INFO - [cached since 0.003211s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:02:11,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,137 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:02:11,137 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:02:11,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,138 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:02:11,138 - sqlalchemy.engine.Engine - INFO - [cached since 0.005404s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:02:11,139 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:02:11,140 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1, datetime.datetime(2025, 4, 19, 15, 2, 11, 139891), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:02:11,140 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,156 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,158 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:02:11,158 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1, datetime.datetime(2025, 4, 19, 15, 2, 11, 157498), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:02:11,159 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,160 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:02:11,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,161 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:02:11,162 - sqlalchemy.engine.Engine - INFO - [cached since 0.02907s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:02:11,165 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:02:11,165 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] ('f51ea7a3-31e5-4e5f-8ce1-95946543f545', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 2, 11, 164097), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 2, 11, 165102), datetime.datetime(2025, 4, 19, 15, 2, 11, 165102), 0)
2025-04-19 15:02:11,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,176 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:02:11,177 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('f51ea7a3-31e5-4e5f-8ce1-95946543f545',)
2025-04-19 15:02:11,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,179 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f51ea7a3-31e5-4e5f-8ce1-95946543f545 (优先级 1) 添加到队列 0
2025-04-19 15:02:11,179 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0520秒
2025-04-19 15:02:11,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: f51ea7a3-31e5-4e5f-8ce1-95946543f545, 优先级: 1
2025-04-19 15:02:11,220 - services.execution.task_executor - DEBUG - 任务 f51ea7a3-31e5-4e5f-8ce1-95946543f545 设置超时时间: 3600秒
2025-04-19 15:02:11,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,222 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:02:11,223 - sqlalchemy.engine.Engine - INFO - [cached since 0.0469s ago] ('f51ea7a3-31e5-4e5f-8ce1-95946543f545',)
2025-04-19 15:02:11,225 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:02:11,225 - sqlalchemy.engine.Engine - INFO - [cached since 0.09167s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:02:11,226 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:02:11,227 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (datetime.datetime(2025, 4, 19, 15, 2, 11, 226124), datetime.datetime(2025, 4, 19, 15, 2, 11, 226124), 'f51ea7a3-31e5-4e5f-8ce1-95946543f545')
2025-04-19 15:02:11,227 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,238 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:02:11,238 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 2, 11, 238631), 'f51ea7a3-31e5-4e5f-8ce1-95946543f545')
2025-04-19 15:02:11,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,249 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:02:11,250 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,251 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:02:11,252 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('e395abbe-52e3-4147-9c1d-0f0b5728fcc8', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f51ea7a3-31e5-4e5f-8ce1-95946543f545', datetime.datetime(2025, 4, 19, 15, 2, 11, 250947), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 2, 11, 251945), datetime.datetime(2025, 4, 19, 15, 2, 11, 251945), 0)
2025-04-19 15:02:11,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,264 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,266 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:02:11,266 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] ('e395abbe-52e3-4147-9c1d-0f0b5728fcc8',)
2025-04-19 15:02:11,267 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:02:11,267 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:02:11,268 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:02:11,268 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 2, 11, 268324), 'e395abbe-52e3-4147-9c1d-0f0b5728fcc8')
2025-04-19 15:02:11,269 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,280 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:02:11,280 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:02:11,281 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:02:11,282 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,282 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:02:11,283 - sqlalchemy.engine.Engine - INFO - [cached since 0.03102s ago] ('1fbe19d8-7a30-48ca-9dc3-051bb26c7518', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f51ea7a3-31e5-4e5f-8ce1-95946543f545', datetime.datetime(2025, 4, 19, 15, 2, 11, 281334), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 2, 11, 282431), datetime.datetime(2025, 4, 19, 15, 2, 11, 282431), 0)
2025-04-19 15:02:11,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,296 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1fbe19d8-7a30-48ca-9dc3-051bb26c7518
2025-04-19 15:02:11,297 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,297 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:02:11,298 - sqlalchemy.engine.Engine - INFO - [cached since 0.03255s ago] ('1fbe19d8-7a30-48ca-9dc3-051bb26c7518',)
2025-04-19 15:02:11,299 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:02:11,299 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:02:11,299 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:02:11,300 - sqlalchemy.engine.Engine - INFO - [cached since 0.03178s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 2, 11, 299747), '1fbe19d8-7a30-48ca-9dc3-051bb26c7518')
2025-04-19 15:02:11,300 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,317 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:02:11,317 - sqlalchemy.engine.Engine - INFO - [generated in 0.00083s] ('f51ea7a3-31e5-4e5f-8ce1-95946543f545',)
2025-04-19 15:02:11,318 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: f51ea7a3-31e5-4e5f-8ce1-95946543f545
2025-04-19 15:02:11,318 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,319 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:02:11,319 - services.execution.handlers.foundation - INFO - 任务 f51ea7a3-31e5-4e5f-8ce1-95946543f545 打印: ['f51ea7a3-31e5-4e5f-8ce1-95946543f545']
2025-04-19 15:02:11,319 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,320 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:02:11,320 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('c1e45c92-ce8a-4f22-ad02-38e6210d347b', 1, '{"success": true, "message": "打印成功", "output": {"message": ["f51ea7a3-31e5-4e5f-8ce1-95946543f545"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f51ea7a3-31e5-4e5f-8ce1-95946543f545', datetime.datetime(2025, 4, 19, 15, 2, 11, 320739), datetime.datetime(2025, 4, 19, 15, 2, 11, 320739), 0)
2025-04-19 15:02:11,321 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,338 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:02:11,338 - sqlalchemy.engine.Engine - INFO - [cached since 0.07286s ago] ('1fbe19d8-7a30-48ca-9dc3-051bb26c7518',)
2025-04-19 15:02:11,339 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:02:11,339 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:02:11,339 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:02:11,340 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (datetime.datetime(2025, 4, 19, 15, 2, 11, 339749), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 2, 11, 339749), '1fbe19d8-7a30-48ca-9dc3-051bb26c7518')
2025-04-19 15:02:11,340 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,350 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:02:11,350 - sqlalchemy.engine.Engine - INFO - [cached since 0.03046s ago] ('cefa9031-68d0-42f2-b468-7294dd596a7d', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["f51ea7a3-31e5-4e5f-8ce1-95946543f545"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'f51ea7a3-31e5-4e5f-8ce1-95946543f545', datetime.datetime(2025, 4, 19, 15, 2, 11, 350739), datetime.datetime(2025, 4, 19, 15, 2, 11, 350739), 0)
2025-04-19 15:02:11,351 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,359 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,359 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:02:11,359 - sqlalchemy.engine.Engine - INFO - [cached since 0.09423s ago] ('e395abbe-52e3-4147-9c1d-0f0b5728fcc8',)
2025-04-19 15:02:11,360 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:02:11,360 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:02:11,360 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:02:11,361 - sqlalchemy.engine.Engine - INFO - [cached since 0.0218s ago] (datetime.datetime(2025, 4, 19, 15, 2, 11, 360739), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 2, 11, 360739), 'e395abbe-52e3-4147-9c1d-0f0b5728fcc8')
2025-04-19 15:02:11,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:11,373 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:02:11,374 - sqlalchemy.engine.Engine - INFO - [generated in 0.00118s] (datetime.datetime(2025, 4, 19, 15, 2, 11, 370746), '任务执行成功', 1000, 133, datetime.datetime(2025, 4, 19, 15, 2, 11, 373746), 'f51ea7a3-31e5-4e5f-8ce1-95946543f545')
2025-04-19 15:02:11,377 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:11,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: f51ea7a3-31e5-4e5f-8ce1-95946543f545, 结果: True
2025-04-19 15:02:14,035 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:02:14,036 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:14,037 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:02:14,037 - sqlalchemy.engine.Engine - INFO - [cached since 2.904s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:02:14,038 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:02:14,039 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (0, datetime.datetime(2025, 4, 19, 15, 2, 14, 38855), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:02:14,040 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:14,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:02:14,053 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:02:14,053 - sqlalchemy.engine.Engine - INFO - [cached since 2.92s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:02:14,055 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:02:14,055 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0192秒
2025-04-19 15:03:05,577 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:03:05,577 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:03:05,577 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 14, 3, 5, 576196))
2025-04-19 15:03:05,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:03:20,544 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:03:20,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:03:20,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:03:20,545 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:03:20,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:03:20,546 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:03:20,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:03:20,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:03:20,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:03:20,547 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:03:20,547 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:03:20,547 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:03:20,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:03:20,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:03:20,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:03:20,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:03:20,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:03:20,549 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:03:20,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:03:20,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:03:20,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:03:20,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:03:20,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:03:20,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:03:20,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:03:20,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:03:20,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:03:20,551 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:03:20,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:03:20,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:04:05,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:04:05,570 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:04:05,570 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 14, 4, 5, 569483))
2025-04-19 15:04:05,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:04:20,575 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:04:20,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:04:20,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:04:20,576 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:04:20,576 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:04:20,576 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:04:20,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:04:20,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:04:20,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:04:20,577 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:04:20,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:04:20,578 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:04:20,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:04:20,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:04:20,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:04:20,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:04:20,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:04:20,578 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:04:20,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:04:20,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:04:20,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:04:20,579 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:04:20,579 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:04:20,579 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:04:20,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:04:20,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:04:20,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:04:20,579 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:04:20,579 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:04:20,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:05:05,570 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:05:05,570 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:05:05,571 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 14, 5, 5, 565689))
2025-04-19 15:05:05,572 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:05:20,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:05:20,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:05:20,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:05:20,585 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:05:20,585 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:05:20,585 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:05:20,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:05:20,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:05:20,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:05:20,586 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:05:20,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:05:20,588 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:05:20,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:05:20,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:05:20,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:05:20,589 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:05:20,589 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:05:20,589 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:05:20,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:05:20,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:05:20,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:05:20,591 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:05:20,591 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:05:20,593 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:05:20,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:05:20,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:05:20,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:05:20,593 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:05:20,593 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:05:20,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:06:05,567 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:06:05,569 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:06:05,569 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (1001, datetime.datetime(2025, 4, 19, 14, 6, 5, 567868))
2025-04-19 15:06:05,570 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:06:05,784 - root - INFO - 应用程序关闭中...
2025-04-19 15:06:05,785 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:06:05,785 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:06:05,785 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:06:05,785 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:06:05,785 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:06:05,785 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:06:05,785 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:06:05,785 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:06:05,785 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:06:05,785 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:06:05,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:06:05,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:06:05,786 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:06:05,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:06:05,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:06:05,786 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:06:05,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:06:05,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:06:05,787 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:06:05,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:06:05,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:06:05,787 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:06:05,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:06:05,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:06:05,787 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:06:05,787 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:06:05,787 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:06:05,787 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:06:05,787 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:06:05,788 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:06:05,788 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:06:05,788 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:06:07,123 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:06:07,124 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:06:07,185 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:06:07,233 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:06:07,262 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:06:07,288 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:06:07,288 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,288 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:06:07,289 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,289 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:06:07,289 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:06:07,290 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:06:07,290 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,291 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:06:07,292 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,295 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:06:07,295 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,300 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:06:07,300 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,301 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:06:07,301 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,302 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:06:07,302 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,302 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:06:07,302 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,304 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:06:07,304 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,308 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:06:07,308 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,311 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:06:07,312 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,316 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:06:07,316 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:06:07,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:06:07,318 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:06:07,695 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:06:07,696 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:06:07,696 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:06:07,696 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:06:07,696 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:06:07,696 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:06:07,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:06:07,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:06:07,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:06:07,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:06:07,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:06:07,696 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:06:07,697 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:06:07,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:06:07,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:06:07,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:06:07,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:06:07,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:06:07,700 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:06:07,700 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:06:07,701 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:06:07,702 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:06:07,702 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:06:07,703 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:06:07,703 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:06:07,703 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:06:07,704 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:06:07,705 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:06:07,713 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:06:07,713 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1, 1)
2025-04-19 15:06:07,714 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:06:07,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:06:07,714 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:06:07,715 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:06:07,715 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:06:07,716 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:06:07,717 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:06:07,717 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1000, 2000, 2001)
2025-04-19 15:06:07,719 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:06:07,720 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:06:07,720 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:06:07,721 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:06:07,721 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:06:07,721 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:06:07,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:06:07,722 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:06:07,722 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (1001, datetime.datetime(2025, 4, 19, 14, 6, 7, 715492))
2025-04-19 15:06:07,723 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:07,723 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:07:07,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:07:07,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:07:07,724 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:07:07,725 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:07:07,725 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:07:07,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:07:07,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:07:07,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:07:07,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:07,725 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:07:07,726 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 14, 7, 7, 723055))
2025-04-19 15:07:07,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:07:07,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:07:07,727 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:07:07,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:07:07,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:07:07,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:07:07,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:07:07,729 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:07:07,729 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:07:07,730 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:07,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:07:07,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:07:07,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:07:07,731 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:07:07,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:07:07,731 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:07:07,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:07:07,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:07:07,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:07:07,731 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:07:07,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:07:07,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:07:11,105 - root - INFO - 应用程序关闭中...
2025-04-19 15:07:11,105 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:07:11,105 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:07:11,106 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:07:11,106 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:07:11,106 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:07:11,106 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:07:11,106 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:07:11,107 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:07:11,107 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:07:11,107 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:07:11,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:07:11,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:07:11,107 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:07:11,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:07:11,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:07:11,107 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:07:11,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:07:11,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:07:11,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:07:11,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:07:11,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:07:11,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:07:11,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:07:11,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:07:11,109 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:07:11,109 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:07:11,109 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:07:11,109 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:07:11,109 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:07:11,109 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:07:11,109 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:07:11,109 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:07:12,338 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:07:12,338 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:07:12,393 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:07:12,446 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:07:12,467 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:07:12,471 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:07:12,471 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,471 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:07:12,471 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,472 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:07:12,472 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,472 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:12,473 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:07:12,473 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,475 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:07:12,475 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,476 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:07:12,476 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,477 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:07:12,477 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,478 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:07:12,479 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,479 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:07:12,480 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,480 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:07:12,480 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,481 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:07:12,481 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,482 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:07:12,482 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,483 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:07:12,483 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,484 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:07:12,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:07:12,485 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:12,486 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:07:12,882 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:07:12,882 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:07:12,883 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:07:12,883 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:07:12,884 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:07:12,884 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:07:12,884 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:07:12,885 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:07:12,885 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:07:12,885 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:07:12,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:07:12,886 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:07:12,886 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:07:12,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:07:12,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:07:12,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:07:12,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:07:12,890 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:07:12,890 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:07:12,890 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:07:12,891 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:07:12,892 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:07:12,892 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:07:12,893 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:07:12,893 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:07:12,894 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:07:12,894 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:07:12,895 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:12,905 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:07:12,906 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1, 1)
2025-04-19 15:07:12,907 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:07:12,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:12,908 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:07:12,909 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:07:12,909 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:07:12,910 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:12,911 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:07:12,912 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (1000, 2000, 2001)
2025-04-19 15:07:12,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:12,929 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:07:12,929 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:07:12,930 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:07:12,930 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:07:12,930 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:07:12,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:12,931 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:07:12,932 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1001, datetime.datetime(2025, 4, 19, 14, 7, 12, 910885))
2025-04-19 15:07:12,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:23,923 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:07:23,925 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:23,927 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:07:23,927 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:07:23,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:23,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:23,929 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:07:23,929 - sqlalchemy.engine.Engine - INFO - [cached since 0.002986s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:07:23,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:23,931 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:07:23,931 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:07:23,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:23,932 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:07:23,932 - sqlalchemy.engine.Engine - INFO - [cached since 0.005508s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:07:23,934 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:07:23,935 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1, datetime.datetime(2025, 4, 19, 15, 7, 23, 934375), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:07:23,935 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:23,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:23,952 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:07:23,952 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, datetime.datetime(2025, 4, 19, 15, 7, 23, 952779), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:07:23,953 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:23,954 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:07:23,954 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:23,954 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:07:23,954 - sqlalchemy.engine.Engine - INFO - [cached since 0.02798s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:07:23,956 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:07:23,957 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] ('be553f83-d7a5-410a-8739-52bc57d611ac', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 7, 23, 955776), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 7, 23, 956765), datetime.datetime(2025, 4, 19, 15, 7, 23, 956765), 0)
2025-04-19 15:07:23,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:23,967 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:23,968 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:23,968 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('be553f83-d7a5-410a-8739-52bc57d611ac',)
2025-04-19 15:07:23,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:23,970 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 be553f83-d7a5-410a-8739-52bc57d611ac (优先级 1) 添加到队列 0
2025-04-19 15:07:23,970 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0473秒
2025-04-19 15:07:24,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: be553f83-d7a5-410a-8739-52bc57d611ac, 优先级: 1
2025-04-19 15:07:24,031 - services.execution.task_executor - DEBUG - 任务 be553f83-d7a5-410a-8739-52bc57d611ac 设置超时时间: 3600秒
2025-04-19 15:07:24,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,032 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:24,033 - sqlalchemy.engine.Engine - INFO - [cached since 0.06417s ago] ('be553f83-d7a5-410a-8739-52bc57d611ac',)
2025-04-19 15:07:24,034 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:07:24,034 - sqlalchemy.engine.Engine - INFO - [cached since 0.1068s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:07:24,035 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:24,035 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] (datetime.datetime(2025, 4, 19, 15, 7, 24, 34075), datetime.datetime(2025, 4, 19, 15, 7, 24, 35232), 'be553f83-d7a5-410a-8739-52bc57d611ac')
2025-04-19 15:07:24,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,044 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:24,044 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 7, 24, 44290), 'be553f83-d7a5-410a-8739-52bc57d611ac')
2025-04-19 15:07:24,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,051 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:07:24,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,053 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:07:24,054 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('57bbb4d8-3604-4206-b64a-b14a07cb3b6a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'be553f83-d7a5-410a-8739-52bc57d611ac', datetime.datetime(2025, 4, 19, 15, 7, 24, 52451), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 7, 24, 53849), datetime.datetime(2025, 4, 19, 15, 7, 24, 53849), 0)
2025-04-19 15:07:24,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,061 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,062 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:07:24,063 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('57bbb4d8-3604-4206-b64a-b14a07cb3b6a',)
2025-04-19 15:07:24,063 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:07:24,064 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:07:24,064 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:07:24,064 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 7, 24, 64554), '57bbb4d8-3604-4206-b64a-b14a07cb3b6a')
2025-04-19 15:07:24,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,073 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:07:24,073 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:07:24,073 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:07:24,073 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,073 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:07:24,074 - sqlalchemy.engine.Engine - INFO - [cached since 0.02102s ago] ('3ef87fb5-6bf1-4b40-bd81-b6ae59ed1c23', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'be553f83-d7a5-410a-8739-52bc57d611ac', datetime.datetime(2025, 4, 19, 15, 7, 24, 73033), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 7, 24, 73992), datetime.datetime(2025, 4, 19, 15, 7, 24, 73992), 0)
2025-04-19 15:07:24,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,080 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 3ef87fb5-6bf1-4b40-bd81-b6ae59ed1c23
2025-04-19 15:07:24,080 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,080 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:07:24,081 - sqlalchemy.engine.Engine - INFO - [cached since 0.01869s ago] ('3ef87fb5-6bf1-4b40-bd81-b6ae59ed1c23',)
2025-04-19 15:07:24,081 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:07:24,081 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:07:24,082 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:07:24,082 - sqlalchemy.engine.Engine - INFO - [cached since 0.01802s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 7, 24, 82991), '3ef87fb5-6bf1-4b40-bd81-b6ae59ed1c23')
2025-04-19 15:07:24,083 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,092 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:07:24,092 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] ('be553f83-d7a5-410a-8739-52bc57d611ac',)
2025-04-19 15:07:24,093 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: be553f83-d7a5-410a-8739-52bc57d611ac
2025-04-19 15:07:24,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,094 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:07:24,094 - services.execution.handlers.foundation - INFO - 任务 be553f83-d7a5-410a-8739-52bc57d611ac 打印: ['be553f83-d7a5-410a-8739-52bc57d611ac']
2025-04-19 15:07:24,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,095 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:07:24,096 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('4e71914e-11e5-497c-aea7-4d2fb8f405ca', 1, '{"success": true, "message": "打印成功", "output": {"message": ["be553f83-d7a5-410a-8739-52bc57d611ac"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'be553f83-d7a5-410a-8739-52bc57d611ac', datetime.datetime(2025, 4, 19, 15, 7, 24, 95997), datetime.datetime(2025, 4, 19, 15, 7, 24, 95997), 0)
2025-04-19 15:07:24,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,106 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:07:24,106 - sqlalchemy.engine.Engine - INFO - [cached since 0.044s ago] ('3ef87fb5-6bf1-4b40-bd81-b6ae59ed1c23',)
2025-04-19 15:07:24,108 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:07:24,108 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:07:24,109 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:07:24,109 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (datetime.datetime(2025, 4, 19, 15, 7, 24, 108269), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 7, 24, 109277), '3ef87fb5-6bf1-4b40-bd81-b6ae59ed1c23')
2025-04-19 15:07:24,110 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,116 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,116 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:07:24,117 - sqlalchemy.engine.Engine - INFO - [cached since 0.02143s ago] ('daf03752-4a4e-461e-8daf-7ee4f50de699', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["be553f83-d7a5-410a-8739-52bc57d611ac"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'be553f83-d7a5-410a-8739-52bc57d611ac', datetime.datetime(2025, 4, 19, 15, 7, 24, 116771), datetime.datetime(2025, 4, 19, 15, 7, 24, 116771), 0)
2025-04-19 15:07:24,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,125 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,126 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:07:24,126 - sqlalchemy.engine.Engine - INFO - [cached since 0.06369s ago] ('57bbb4d8-3604-4206-b64a-b14a07cb3b6a',)
2025-04-19 15:07:24,126 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:07:24,126 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:07:24,127 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:07:24,127 - sqlalchemy.engine.Engine - INFO - [cached since 0.01891s ago] (datetime.datetime(2025, 4, 19, 15, 7, 24, 127778), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 7, 24, 127778), '57bbb4d8-3604-4206-b64a-b14a07cb3b6a')
2025-04-19 15:07:24,128 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:24,138 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:24,139 - sqlalchemy.engine.Engine - INFO - [generated in 0.00096s] (datetime.datetime(2025, 4, 19, 15, 7, 24, 137217), '任务执行成功', 1000, 92, datetime.datetime(2025, 4, 19, 15, 7, 24, 138223), 'be553f83-d7a5-410a-8739-52bc57d611ac')
2025-04-19 15:07:24,140 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:24,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: be553f83-d7a5-410a-8739-52bc57d611ac, 结果: True
2025-04-19 15:07:27,887 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:27,888 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:07:27,888 - sqlalchemy.engine.Engine - INFO - [cached since 3.962s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:07:27,891 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:07:27,892 - sqlalchemy.engine.Engine - INFO - [cached since 3.936s ago] ('29787c9c-47e8-4c2d-bca0-6d5018ef0480', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 7, 27, 891752), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 7, 27, 891752), datetime.datetime(2025, 4, 19, 15, 7, 27, 891752), 0)
2025-04-19 15:07:27,892 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:27,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:27,920 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:27,922 - sqlalchemy.engine.Engine - INFO - [cached since 3.954s ago] ('29787c9c-47e8-4c2d-bca0-6d5018ef0480',)
2025-04-19 15:07:27,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:27,925 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 29787c9c-47e8-4c2d-bca0-6d5018ef0480 (优先级 1) 添加到队列 0
2025-04-19 15:07:27,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:07:27,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 29787c9c-47e8-4c2d-bca0-6d5018ef0480, 优先级: 1
2025-04-19 15:07:27,965 - services.execution.task_executor - DEBUG - 任务 29787c9c-47e8-4c2d-bca0-6d5018ef0480 设置超时时间: 3600秒
2025-04-19 15:07:27,966 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:27,966 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:27,967 - sqlalchemy.engine.Engine - INFO - [cached since 3.999s ago] ('29787c9c-47e8-4c2d-bca0-6d5018ef0480',)
2025-04-19 15:07:27,968 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:07:27,969 - sqlalchemy.engine.Engine - INFO - [cached since 4.042s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:07:27,970 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:27,970 - sqlalchemy.engine.Engine - INFO - [cached since 3.935s ago] (datetime.datetime(2025, 4, 19, 15, 7, 27, 970545), datetime.datetime(2025, 4, 19, 15, 7, 27, 970545), '29787c9c-47e8-4c2d-bca0-6d5018ef0480')
2025-04-19 15:07:27,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:27,981 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:27,982 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:27,982 - sqlalchemy.engine.Engine - INFO - [cached since 3.938s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 7, 27, 982455), '29787c9c-47e8-4c2d-bca0-6d5018ef0480')
2025-04-19 15:07:27,982 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:27,989 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:07:27,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:27,990 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:07:27,990 - sqlalchemy.engine.Engine - INFO - [cached since 3.937s ago] ('ac0fb559-428b-48e8-b53d-cb233b7243b5', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '29787c9c-47e8-4c2d-bca0-6d5018ef0480', datetime.datetime(2025, 4, 19, 15, 7, 27, 989563), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 7, 27, 990455), datetime.datetime(2025, 4, 19, 15, 7, 27, 990455), 0)
2025-04-19 15:07:27,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:28,001 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:07:28,001 - sqlalchemy.engine.Engine - INFO - [cached since 3.939s ago] ('ac0fb559-428b-48e8-b53d-cb233b7243b5',)
2025-04-19 15:07:28,002 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:07:28,002 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:07:28,002 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:07:28,002 - sqlalchemy.engine.Engine - INFO - [cached since 3.938s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 7, 28, 2508), 'ac0fb559-428b-48e8-b53d-cb233b7243b5')
2025-04-19 15:07:28,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,009 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:07:28,010 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:07:28,010 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:07:28,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:28,011 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:07:28,012 - sqlalchemy.engine.Engine - INFO - [cached since 3.958s ago] ('b3f7b13f-fa1f-44e7-b3f5-088dd0b24a2a', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '29787c9c-47e8-4c2d-bca0-6d5018ef0480', datetime.datetime(2025, 4, 19, 15, 7, 28, 10590), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 7, 28, 11611), datetime.datetime(2025, 4, 19, 15, 7, 28, 11611), 0)
2025-04-19 15:07:28,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,020 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b3f7b13f-fa1f-44e7-b3f5-088dd0b24a2a
2025-04-19 15:07:28,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:28,021 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:07:28,021 - sqlalchemy.engine.Engine - INFO - [cached since 3.959s ago] ('b3f7b13f-fa1f-44e7-b3f5-088dd0b24a2a',)
2025-04-19 15:07:28,021 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:07:28,022 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:07:28,022 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:07:28,022 - sqlalchemy.engine.Engine - INFO - [cached since 3.958s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 7, 28, 22810), 'b3f7b13f-fa1f-44e7-b3f5-088dd0b24a2a')
2025-04-19 15:07:28,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:28,032 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:07:28,032 - sqlalchemy.engine.Engine - INFO - [cached since 3.94s ago] ('29787c9c-47e8-4c2d-bca0-6d5018ef0480',)
2025-04-19 15:07:28,033 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 29787c9c-47e8-4c2d-bca0-6d5018ef0480
2025-04-19 15:07:28,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,034 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:07:28,034 - services.execution.handlers.foundation - INFO - 任务 29787c9c-47e8-4c2d-bca0-6d5018ef0480 打印: ['29787c9c-47e8-4c2d-bca0-6d5018ef0480']
2025-04-19 15:07:28,034 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:28,035 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:07:28,035 - sqlalchemy.engine.Engine - INFO - [cached since 3.94s ago] ('e8f4be22-1843-4675-a679-d5d241947e2f', 1, '{"success": true, "message": "打印成功", "output": {"message": ["29787c9c-47e8-4c2d-bca0-6d5018ef0480"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '29787c9c-47e8-4c2d-bca0-6d5018ef0480', datetime.datetime(2025, 4, 19, 15, 7, 28, 35829), datetime.datetime(2025, 4, 19, 15, 7, 28, 35829), 0)
2025-04-19 15:07:28,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:28,044 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:07:28,044 - sqlalchemy.engine.Engine - INFO - [cached since 3.982s ago] ('b3f7b13f-fa1f-44e7-b3f5-088dd0b24a2a',)
2025-04-19 15:07:28,045 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:07:28,045 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:07:28,046 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:07:28,046 - sqlalchemy.engine.Engine - INFO - [cached since 3.938s ago] (datetime.datetime(2025, 4, 19, 15, 7, 28, 46841), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 7, 28, 46841), 'b3f7b13f-fa1f-44e7-b3f5-088dd0b24a2a')
2025-04-19 15:07:28,047 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:28,054 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:07:28,054 - sqlalchemy.engine.Engine - INFO - [cached since 3.959s ago] ('91c77525-17a1-4c45-9e81-8974415442ca', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["29787c9c-47e8-4c2d-bca0-6d5018ef0480"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '29787c9c-47e8-4c2d-bca0-6d5018ef0480', datetime.datetime(2025, 4, 19, 15, 7, 28, 54831), datetime.datetime(2025, 4, 19, 15, 7, 28, 54831), 0)
2025-04-19 15:07:28,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:28,060 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:07:28,061 - sqlalchemy.engine.Engine - INFO - [cached since 3.999s ago] ('ac0fb559-428b-48e8-b53d-cb233b7243b5',)
2025-04-19 15:07:28,061 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:07:28,062 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:07:28,062 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:07:28,062 - sqlalchemy.engine.Engine - INFO - [cached since 3.954s ago] (datetime.datetime(2025, 4, 19, 15, 7, 28, 62831), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 7, 28, 62831), 'ac0fb559-428b-48e8-b53d-cb233b7243b5')
2025-04-19 15:07:28,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:28,071 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:07:28,072 - sqlalchemy.engine.Engine - INFO - [cached since 3.935s ago] (datetime.datetime(2025, 4, 19, 15, 7, 28, 70837), '任务执行成功', 1000, 89, datetime.datetime(2025, 4, 19, 15, 7, 28, 71839), '29787c9c-47e8-4c2d-bca0-6d5018ef0480')
2025-04-19 15:07:28,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:28,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 29787c9c-47e8-4c2d-bca0-6d5018ef0480, 结果: True
2025-04-19 15:07:32,136 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:07:32,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:32,137 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:07:32,137 - sqlalchemy.engine.Engine - INFO - [cached since 8.211s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:07:32,139 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:07:32,139 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] (1, datetime.datetime(2025, 4, 19, 15, 7, 32, 139253), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:07:32,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:32,156 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:07:32,156 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:07:32,156 - sqlalchemy.engine.Engine - INFO - [cached since 8.23s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:07:32,158 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:07:32,158 - sqlalchemy.engine.Engine - INFO - [cached since 8.224s ago] (0, datetime.datetime(2025, 4, 19, 15, 7, 32, 158531), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:07:32,159 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:07:32,167 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0313秒
2025-04-19 15:08:12,913 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:08:12,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:08:12,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:08:12,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:08:12,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:08:12,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:08:12,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:08:12,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:08:12,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:08:12,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:08:12,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:08:12,917 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:08:12,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:08:12,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:08:12,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:08:12,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:08:12,918 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:08:12,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:08:12,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:08:12,946 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:08:12,946 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 19, 14, 8, 12, 945790))
2025-04-19 15:08:12,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:08:27,920 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:08:27,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:08:27,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:08:27,921 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:08:27,921 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:08:27,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:08:42,919 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:08:42,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:08:42,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:08:42,921 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:08:42,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:08:42,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:09:12,956 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:09:12,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:09:12,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:09:12,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:09:12,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:09:12,957 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:09:12,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:09:12,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:09:12,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:09:12,958 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:09:12,958 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:09:12,958 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 14, 9, 12, 956698))
2025-04-19 15:09:12,958 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:09:12,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:09:12,959 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:09:12,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:09:12,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:09:12,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:09:12,960 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:09:12,960 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:09:12,966 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:09:12,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:09:27,974 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:09:27,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:09:27,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:09:27,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:09:27,975 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:09:27,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:09:42,970 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:09:42,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:09:42,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:09:42,971 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:09:42,971 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:09:42,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:10:12,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:10:12,986 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:10:12,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:10:12,988 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:10:12,988 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:10:12,988 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:10:12,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:10:12,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:10:12,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:10:12,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:10:12,990 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:10:12,990 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 10, 12, 986374))
2025-04-19 15:10:12,991 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:10:12,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:10:12,992 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:10:12,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:10:12,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:10:12,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:10:12,992 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:10:12,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:10:12,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:10:12,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:10:28,002 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:10:28,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:10:28,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:10:28,003 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:10:28,004 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:10:28,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:10:43,003 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:10:43,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:10:43,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:10:43,004 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:10:43,004 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:10:43,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:11:04,008 - root - INFO - 应用程序关闭中...
2025-04-19 15:11:04,008 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:11:04,008 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:11:04,008 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:11:04,008 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:11:04,009 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:11:04,009 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:11:04,009 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:11:04,010 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:11:04,010 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:11:04,010 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:11:04,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:11:04,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:11:04,010 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:11:04,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:11:04,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:11:04,011 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 3
2025-04-19 15:11:04,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:11:04,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:11:04,011 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 2
2025-04-19 15:11:04,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:11:04,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:11:04,012 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 1
2025-04-19 15:11:04,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:11:04,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:11:04,012 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 0
2025-04-19 15:11:04,013 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:11:04,013 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:11:04,013 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:11:04,013 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:11:04,013 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:11:04,014 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:11:04,014 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:11:05,304 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:11:05,305 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:11:05,366 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:11:05,424 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:11:05,457 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:11:05,459 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:11:05,459 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,461 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:11:05,461 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,461 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:11:05,462 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,462 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:05,462 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:11:05,462 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,464 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:11:05,464 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,466 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:11:05,466 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,468 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:11:05,468 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,469 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:11:05,469 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,470 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:11:05,470 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,471 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:11:05,473 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:11:05,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,476 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:11:05,476 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,477 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:11:05,479 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,480 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:11:05,480 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:11:05,481 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:05,482 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:11:05,886 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:11:05,887 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:11:05,887 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:11:05,887 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:11:05,887 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:11:05,887 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:11:05,887 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:11:05,887 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:11:05,887 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:11:05,888 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:11:05,888 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:11:05,888 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:11:05,888 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:11:05,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:11:05,890 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:11:05,890 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:11:05,890 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:11:05,890 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:11:05,890 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:11:05,890 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:11:05,893 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:11:05,894 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:11:05,894 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:11:05,894 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:11:05,895 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:11:05,895 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:11:05,895 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:11:05,895 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:05,904 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:11:05,904 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (1, 1)
2025-04-19 15:11:05,906 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:11:05,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:05,906 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:11:05,907 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:11:05,907 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:11:05,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:05,908 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:11:05,909 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (1000, 2000, 2001)
2025-04-19 15:11:05,910 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:05,910 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:11:05,910 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:11:05,910 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:11:05,911 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:11:05,911 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:11:05,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:05,911 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:11:05,912 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] (1001, datetime.datetime(2025, 4, 19, 14, 11, 5, 907451))
2025-04-19 15:11:05,913 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:11,951 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:11:11,957 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:11,958 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:11:11,958 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:11:11,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:11,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:11,961 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:11:11,962 - sqlalchemy.engine.Engine - INFO - [cached since 0.003794s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:11:11,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:11,964 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:11:11,965 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:11:11,965 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:11,965 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:11:11,965 - sqlalchemy.engine.Engine - INFO - [cached since 0.007215s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:11:11,967 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:11:11,967 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1, datetime.datetime(2025, 4, 19, 15, 11, 11, 967114), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:11:11,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:11,977 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:11,978 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:11:11,978 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (1, datetime.datetime(2025, 4, 19, 15, 11, 11, 978033), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:11:11,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:11,985 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:11:11,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:11,986 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:11:11,986 - sqlalchemy.engine.Engine - INFO - [cached since 0.02868s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:11:11,990 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:11:11,991 - sqlalchemy.engine.Engine - INFO - [generated in 0.00093s] ('d9134c52-b6ae-4166-b08d-bed94e9e35b1', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 11, 11, 987602), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 11, 11, 990523), datetime.datetime(2025, 4, 19, 15, 11, 11, 990523), 0)
2025-04-19 15:11:11,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:11,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,000 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:12,002 - sqlalchemy.engine.Engine - INFO - [generated in 0.00133s] ('d9134c52-b6ae-4166-b08d-bed94e9e35b1',)
2025-04-19 15:11:12,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,003 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 d9134c52-b6ae-4166-b08d-bed94e9e35b1 (优先级 1) 添加到队列 0
2025-04-19 15:11:12,004 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0533秒
2025-04-19 15:11:12,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: d9134c52-b6ae-4166-b08d-bed94e9e35b1, 优先级: 1
2025-04-19 15:11:12,114 - services.execution.task_executor - DEBUG - 任务 d9134c52-b6ae-4166-b08d-bed94e9e35b1 设置超时时间: 3600秒
2025-04-19 15:11:12,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,115 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:12,116 - sqlalchemy.engine.Engine - INFO - [cached since 0.1154s ago] ('d9134c52-b6ae-4166-b08d-bed94e9e35b1',)
2025-04-19 15:11:12,119 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:11:12,119 - sqlalchemy.engine.Engine - INFO - [cached since 0.162s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:11:12,124 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:12,125 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (datetime.datetime(2025, 4, 19, 15, 11, 12, 120661), datetime.datetime(2025, 4, 19, 15, 11, 12, 123661), 'd9134c52-b6ae-4166-b08d-bed94e9e35b1')
2025-04-19 15:11:12,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,134 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:12,134 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 11, 12, 134257), 'd9134c52-b6ae-4166-b08d-bed94e9e35b1')
2025-04-19 15:11:12,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,142 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:11:12,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,144 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:11:12,144 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('1e1ddd06-dcc6-4a4a-8fab-2afeaceacd07', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd9134c52-b6ae-4166-b08d-bed94e9e35b1', datetime.datetime(2025, 4, 19, 15, 11, 12, 142265), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 11, 12, 144257), datetime.datetime(2025, 4, 19, 15, 11, 12, 144257), 0)
2025-04-19 15:11:12,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,155 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:11:12,156 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('1e1ddd06-dcc6-4a4a-8fab-2afeaceacd07',)
2025-04-19 15:11:12,156 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:11:12,157 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:11:12,157 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:11:12,157 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 11, 12, 157350), '1e1ddd06-dcc6-4a4a-8fab-2afeaceacd07')
2025-04-19 15:11:12,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,162 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:11:12,163 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:11:12,163 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:11:12,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,164 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:11:12,164 - sqlalchemy.engine.Engine - INFO - [cached since 0.02023s ago] ('348be340-e2b9-4c87-8317-3534a79c4afc', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd9134c52-b6ae-4166-b08d-bed94e9e35b1', datetime.datetime(2025, 4, 19, 15, 11, 12, 163272), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 11, 12, 164267), datetime.datetime(2025, 4, 19, 15, 11, 12, 164267), 0)
2025-04-19 15:11:12,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,170 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 348be340-e2b9-4c87-8317-3534a79c4afc
2025-04-19 15:11:12,171 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,171 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:11:12,171 - sqlalchemy.engine.Engine - INFO - [cached since 0.01584s ago] ('348be340-e2b9-4c87-8317-3534a79c4afc',)
2025-04-19 15:11:12,171 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:11:12,172 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:11:12,172 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:11:12,172 - sqlalchemy.engine.Engine - INFO - [cached since 0.01498s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 11, 12, 172467), '348be340-e2b9-4c87-8317-3534a79c4afc')
2025-04-19 15:11:12,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,180 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:11:12,180 - sqlalchemy.engine.Engine - INFO - [generated in 0.00018s] ('d9134c52-b6ae-4166-b08d-bed94e9e35b1',)
2025-04-19 15:11:12,180 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: d9134c52-b6ae-4166-b08d-bed94e9e35b1
2025-04-19 15:11:12,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,181 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:11:12,181 - services.execution.handlers.foundation - INFO - 任务 d9134c52-b6ae-4166-b08d-bed94e9e35b1 打印: ['d9134c52-b6ae-4166-b08d-bed94e9e35b1']
2025-04-19 15:11:12,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,182 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:11:12,182 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('57e3a142-f0d5-44ca-b365-570dd2755ef5', 1, '{"success": true, "message": "打印成功", "output": {"message": ["d9134c52-b6ae-4166-b08d-bed94e9e35b1"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd9134c52-b6ae-4166-b08d-bed94e9e35b1', datetime.datetime(2025, 4, 19, 15, 11, 12, 182451), datetime.datetime(2025, 4, 19, 15, 11, 12, 182451), 0)
2025-04-19 15:11:12,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,189 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,190 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:11:12,191 - sqlalchemy.engine.Engine - INFO - [cached since 0.03573s ago] ('348be340-e2b9-4c87-8317-3534a79c4afc',)
2025-04-19 15:11:12,191 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:11:12,191 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:11:12,192 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:11:12,192 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] (datetime.datetime(2025, 4, 19, 15, 11, 12, 191623), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 11, 12, 192619), '348be340-e2b9-4c87-8317-3534a79c4afc')
2025-04-19 15:11:12,192 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,200 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,200 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:11:12,201 - sqlalchemy.engine.Engine - INFO - [cached since 0.01909s ago] ('4cc09b6f-feec-473b-93cd-eae172255199', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["d9134c52-b6ae-4166-b08d-bed94e9e35b1"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd9134c52-b6ae-4166-b08d-bed94e9e35b1', datetime.datetime(2025, 4, 19, 15, 11, 12, 200622), datetime.datetime(2025, 4, 19, 15, 11, 12, 200622), 0)
2025-04-19 15:11:12,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,208 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,208 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:11:12,209 - sqlalchemy.engine.Engine - INFO - [cached since 0.05317s ago] ('1e1ddd06-dcc6-4a4a-8fab-2afeaceacd07',)
2025-04-19 15:11:12,209 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:11:12,209 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:11:12,210 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:11:12,210 - sqlalchemy.engine.Engine - INFO - [cached since 0.01756s ago] (datetime.datetime(2025, 4, 19, 15, 11, 12, 210106), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 11, 12, 210106), '1e1ddd06-dcc6-4a4a-8fab-2afeaceacd07')
2025-04-19 15:11:12,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:12,217 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:12,218 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 19, 15, 11, 12, 217922), '任务执行成功', 1000, 85, datetime.datetime(2025, 4, 19, 15, 11, 12, 217922), 'd9134c52-b6ae-4166-b08d-bed94e9e35b1')
2025-04-19 15:11:12,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:12,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: d9134c52-b6ae-4166-b08d-bed94e9e35b1, 结果: True
2025-04-19 15:11:15,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:15,928 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:11:15,930 - sqlalchemy.engine.Engine - INFO - [cached since 3.972s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:11:15,932 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:11:15,933 - sqlalchemy.engine.Engine - INFO - [cached since 3.942s ago] ('4c30ba42-da70-4d06-8838-8a37486ef3ae', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 11, 15, 932429), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 11, 15, 932429), datetime.datetime(2025, 4, 19, 15, 11, 15, 932429), 0)
2025-04-19 15:11:15,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:15,947 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:15,947 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:15,947 - sqlalchemy.engine.Engine - INFO - [cached since 3.947s ago] ('4c30ba42-da70-4d06-8838-8a37486ef3ae',)
2025-04-19 15:11:15,948 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:15,949 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 4c30ba42-da70-4d06-8838-8a37486ef3ae (优先级 1) 添加到队列 0
2025-04-19 15:11:15,949 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:11:16,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 4c30ba42-da70-4d06-8838-8a37486ef3ae, 优先级: 1
2025-04-19 15:11:16,034 - services.execution.task_executor - DEBUG - 任务 4c30ba42-da70-4d06-8838-8a37486ef3ae 设置超时时间: 3600秒
2025-04-19 15:11:16,035 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,036 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:16,037 - sqlalchemy.engine.Engine - INFO - [cached since 4.036s ago] ('4c30ba42-da70-4d06-8838-8a37486ef3ae',)
2025-04-19 15:11:16,038 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:11:16,039 - sqlalchemy.engine.Engine - INFO - [cached since 4.081s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:11:16,039 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:16,040 - sqlalchemy.engine.Engine - INFO - [cached since 3.916s ago] (datetime.datetime(2025, 4, 19, 15, 11, 16, 39216), datetime.datetime(2025, 4, 19, 15, 11, 16, 39216), '4c30ba42-da70-4d06-8838-8a37486ef3ae')
2025-04-19 15:11:16,040 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,047 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:16,048 - sqlalchemy.engine.Engine - INFO - [cached since 3.914s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 11, 16, 47217), '4c30ba42-da70-4d06-8838-8a37486ef3ae')
2025-04-19 15:11:16,048 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,057 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:11:16,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,057 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:11:16,057 - sqlalchemy.engine.Engine - INFO - [cached since 3.914s ago] ('68c5c022-71aa-49c2-99ee-24d29b528a30', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4c30ba42-da70-4d06-8838-8a37486ef3ae', datetime.datetime(2025, 4, 19, 15, 11, 16, 57301), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 11, 16, 57301), datetime.datetime(2025, 4, 19, 15, 11, 16, 57301), 0)
2025-04-19 15:11:16,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,070 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:11:16,070 - sqlalchemy.engine.Engine - INFO - [cached since 3.915s ago] ('68c5c022-71aa-49c2-99ee-24d29b528a30',)
2025-04-19 15:11:16,071 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:11:16,071 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:11:16,071 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:11:16,071 - sqlalchemy.engine.Engine - INFO - [cached since 3.914s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 11, 16, 71797), '68c5c022-71aa-49c2-99ee-24d29b528a30')
2025-04-19 15:11:16,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,080 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:11:16,080 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:11:16,080 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:11:16,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,081 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:11:16,081 - sqlalchemy.engine.Engine - INFO - [cached since 3.938s ago] ('ad20db39-6378-4a8d-82a8-6f5497d39962', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4c30ba42-da70-4d06-8838-8a37486ef3ae', datetime.datetime(2025, 4, 19, 15, 11, 16, 81443), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 11, 16, 81443), datetime.datetime(2025, 4, 19, 15, 11, 16, 81443), 0)
2025-04-19 15:11:16,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,087 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: ad20db39-6378-4a8d-82a8-6f5497d39962
2025-04-19 15:11:16,087 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,088 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:11:16,090 - sqlalchemy.engine.Engine - INFO - [cached since 3.935s ago] ('ad20db39-6378-4a8d-82a8-6f5497d39962',)
2025-04-19 15:11:16,091 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:11:16,091 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:11:16,092 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:11:16,092 - sqlalchemy.engine.Engine - INFO - [cached since 3.935s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 11, 16, 92830), 'ad20db39-6378-4a8d-82a8-6f5497d39962')
2025-04-19 15:11:16,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,101 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:11:16,102 - sqlalchemy.engine.Engine - INFO - [cached since 3.922s ago] ('4c30ba42-da70-4d06-8838-8a37486ef3ae',)
2025-04-19 15:11:16,102 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 4c30ba42-da70-4d06-8838-8a37486ef3ae
2025-04-19 15:11:16,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,103 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:11:16,103 - services.execution.handlers.foundation - INFO - 任务 4c30ba42-da70-4d06-8838-8a37486ef3ae 打印: ['4c30ba42-da70-4d06-8838-8a37486ef3ae']
2025-04-19 15:11:16,103 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,104 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:11:16,104 - sqlalchemy.engine.Engine - INFO - [cached since 3.922s ago] ('5e9e1805-61bb-4467-aef4-b8f12853b836', 1, '{"success": true, "message": "打印成功", "output": {"message": ["4c30ba42-da70-4d06-8838-8a37486ef3ae"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4c30ba42-da70-4d06-8838-8a37486ef3ae', datetime.datetime(2025, 4, 19, 15, 11, 16, 104830), datetime.datetime(2025, 4, 19, 15, 11, 16, 104830), 0)
2025-04-19 15:11:16,104 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,112 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,112 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:11:16,113 - sqlalchemy.engine.Engine - INFO - [cached since 3.958s ago] ('ad20db39-6378-4a8d-82a8-6f5497d39962',)
2025-04-19 15:11:16,113 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:11:16,113 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:11:16,114 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:11:16,114 - sqlalchemy.engine.Engine - INFO - [cached since 3.922s ago] (datetime.datetime(2025, 4, 19, 15, 11, 16, 114833), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 11, 16, 114833), 'ad20db39-6378-4a8d-82a8-6f5497d39962')
2025-04-19 15:11:16,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,125 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:11:16,125 - sqlalchemy.engine.Engine - INFO - [cached since 3.944s ago] ('85d349a9-a07f-4022-844d-1ae16dcb2941', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["4c30ba42-da70-4d06-8838-8a37486ef3ae"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '4c30ba42-da70-4d06-8838-8a37486ef3ae', datetime.datetime(2025, 4, 19, 15, 11, 16, 125832), datetime.datetime(2025, 4, 19, 15, 11, 16, 125832), 0)
2025-04-19 15:11:16,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,134 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:11:16,134 - sqlalchemy.engine.Engine - INFO - [cached since 3.98s ago] ('68c5c022-71aa-49c2-99ee-24d29b528a30',)
2025-04-19 15:11:16,136 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:11:16,136 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:11:16,136 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:11:16,137 - sqlalchemy.engine.Engine - INFO - [cached since 3.945s ago] (datetime.datetime(2025, 4, 19, 15, 11, 16, 136830), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 11, 16, 136830), '68c5c022-71aa-49c2-99ee-24d29b528a30')
2025-04-19 15:11:16,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,144 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:16,145 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:11:16,145 - sqlalchemy.engine.Engine - INFO - [cached since 3.928s ago] (datetime.datetime(2025, 4, 19, 15, 11, 16, 144886), '任务执行成功', 1000, 97, datetime.datetime(2025, 4, 19, 15, 11, 16, 145831), '4c30ba42-da70-4d06-8838-8a37486ef3ae')
2025-04-19 15:11:16,146 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:16,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 4c30ba42-da70-4d06-8838-8a37486ef3ae, 结果: True
2025-04-19 15:11:19,037 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:11:19,038 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:19,039 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:11:19,039 - sqlalchemy.engine.Engine - INFO - [cached since 7.081s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:11:19,042 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:11:19,042 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (1, datetime.datetime(2025, 4, 19, 15, 11, 19, 42216), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:11:19,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:19,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:11:19,062 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:11:19,062 - sqlalchemy.engine.Engine - INFO - [cached since 7.105s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:11:19,063 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:11:19,064 - sqlalchemy.engine.Engine - INFO - [cached since 7.098s ago] (0, datetime.datetime(2025, 4, 19, 15, 11, 19, 63915), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:11:19,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:11:19,076 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0392秒
2025-04-19 15:12:05,924 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:12:05,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:12:05,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:12:05,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:12:05,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:12:05,925 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:12:05,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:12:05,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:12:05,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:12:05,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:05,926 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:12:05,926 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 14, 12, 5, 924106))
2025-04-19 15:12:05,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:12:05,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:12:05,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:12:05,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:12:05,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:12:05,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:12:05,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:12:05,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:12:05,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:12:05,932 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:16,467 - root - INFO - 应用程序关闭中...
2025-04-19 15:12:16,467 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:12:16,468 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:12:16,468 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:12:16,468 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:12:16,468 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:12:16,469 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:12:16,469 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:12:16,470 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:12:16,472 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:12:16,472 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:12:16,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:12:16,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:12:16,472 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:12:16,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:12:16,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:12:16,473 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-19 15:12:16,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:12:16,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:12:16,474 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 2
2025-04-19 15:12:16,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:12:16,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:12:16,475 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:12:16,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:12:16,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:12:16,476 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:12:16,476 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:12:16,476 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:12:16,476 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:12:16,476 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:12:16,477 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:12:16,477 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:12:16,477 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:12:17,718 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:12:17,719 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:12:17,781 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:12:17,833 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:12:17,862 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:12:17,878 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:12:17,879 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,879 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:12:17,879 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,880 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:12:17,880 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,880 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:17,881 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:12:17,881 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,882 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:12:17,882 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,885 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:12:17,885 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,889 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:12:17,889 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,890 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:12:17,891 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,891 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:12:17,892 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,892 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:12:17,893 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,896 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:12:17,896 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,902 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:12:17,902 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,903 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:12:17,904 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,905 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:12:17,905 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:12:17,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:17,909 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:12:18,276 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:12:18,277 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:12:18,277 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:12:18,277 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:12:18,277 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:12:18,277 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:12:18,277 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:12:18,277 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:12:18,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:12:18,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:12:18,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:12:18,278 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:12:18,278 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:12:18,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:12:18,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:12:18,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:12:18,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:12:18,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:12:18,280 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:12:18,280 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:12:18,282 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:12:18,283 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:12:18,283 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:12:18,284 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:12:18,284 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:12:18,284 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:12:18,284 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:12:18,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:18,293 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:12:18,293 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1, 1)
2025-04-19 15:12:18,294 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:12:18,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:18,295 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:12:18,296 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:12:18,296 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:12:18,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:18,298 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:12:18,298 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1000, 2000, 2001)
2025-04-19 15:12:18,300 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:18,300 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:12:18,301 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:12:18,301 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:12:18,301 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:12:18,301 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:12:18,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:18,302 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:12:18,303 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1001, datetime.datetime(2025, 4, 19, 14, 12, 18, 296160))
2025-04-19 15:12:18,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,821 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:12:22,823 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,824 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:12:22,824 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:12:22,825 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,826 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,827 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:12:22,827 - sqlalchemy.engine.Engine - INFO - [cached since 0.003055s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:12:22,828 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,828 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:12:22,828 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:12:22,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,829 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:12:22,829 - sqlalchemy.engine.Engine - INFO - [cached since 0.005052s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:12:22,831 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:12:22,831 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1, datetime.datetime(2025, 4, 19, 15, 12, 22, 831788), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:12:22,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,847 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,848 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:12:22,848 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (1, datetime.datetime(2025, 4, 19, 15, 12, 22, 848393), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:12:22,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,849 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:12:22,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,850 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:12:22,850 - sqlalchemy.engine.Engine - INFO - [cached since 0.02581s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:12:22,852 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:12:22,852 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('2f1d1c38-44ae-465e-85db-8f78431320a6', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 12, 22, 851392), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 12, 22, 852394), datetime.datetime(2025, 4, 19, 15, 12, 22, 852394), 0)
2025-04-19 15:12:22,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,863 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:22,863 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('2f1d1c38-44ae-465e-85db-8f78431320a6',)
2025-04-19 15:12:22,864 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,864 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2f1d1c38-44ae-465e-85db-8f78431320a6 (优先级 1) 添加到队列 0
2025-04-19 15:12:22,865 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0435秒
2025-04-19 15:12:22,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2f1d1c38-44ae-465e-85db-8f78431320a6, 优先级: 1
2025-04-19 15:12:22,893 - services.execution.task_executor - DEBUG - 任务 2f1d1c38-44ae-465e-85db-8f78431320a6 设置超时时间: 3600秒
2025-04-19 15:12:22,894 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,894 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:22,895 - sqlalchemy.engine.Engine - INFO - [cached since 0.03188s ago] ('2f1d1c38-44ae-465e-85db-8f78431320a6',)
2025-04-19 15:12:22,895 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:12:22,895 - sqlalchemy.engine.Engine - INFO - [cached since 0.07149s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:12:22,898 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:22,898 - sqlalchemy.engine.Engine - INFO - [generated in 0.00105s] (datetime.datetime(2025, 4, 19, 15, 12, 22, 896819), datetime.datetime(2025, 4, 19, 15, 12, 22, 898838), '2f1d1c38-44ae-465e-85db-8f78431320a6')
2025-04-19 15:12:22,899 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,908 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:22,908 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 12, 22, 908939), '2f1d1c38-44ae-465e-85db-8f78431320a6')
2025-04-19 15:12:22,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,919 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:12:22,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,921 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:12:22,922 - sqlalchemy.engine.Engine - INFO - [generated in 0.00081s] ('637d0ae9-aa4e-44a4-a149-5914f3b48ae2', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2f1d1c38-44ae-465e-85db-8f78431320a6', datetime.datetime(2025, 4, 19, 15, 12, 22, 919092), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 12, 22, 921091), datetime.datetime(2025, 4, 19, 15, 12, 22, 921091), 0)
2025-04-19 15:12:22,922 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,930 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:12:22,930 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('637d0ae9-aa4e-44a4-a149-5914f3b48ae2',)
2025-04-19 15:12:22,931 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:12:22,932 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:12:22,933 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:12:22,933 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 12, 22, 933115), '637d0ae9-aa4e-44a4-a149-5914f3b48ae2')
2025-04-19 15:12:22,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,939 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:12:22,939 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:12:22,940 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:12:22,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,941 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:12:22,941 - sqlalchemy.engine.Engine - INFO - [cached since 0.02049s ago] ('2fd6b9ea-7e61-4064-be1f-47ef81da685c', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2f1d1c38-44ae-465e-85db-8f78431320a6', datetime.datetime(2025, 4, 19, 15, 12, 22, 940522), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 12, 22, 941187), datetime.datetime(2025, 4, 19, 15, 12, 22, 941187), 0)
2025-04-19 15:12:22,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,950 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2fd6b9ea-7e61-4064-be1f-47ef81da685c
2025-04-19 15:12:22,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,951 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:12:22,951 - sqlalchemy.engine.Engine - INFO - [cached since 0.02164s ago] ('2fd6b9ea-7e61-4064-be1f-47ef81da685c',)
2025-04-19 15:12:22,952 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:12:22,952 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:12:22,953 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:12:22,953 - sqlalchemy.engine.Engine - INFO - [cached since 0.02068s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 12, 22, 953646), '2fd6b9ea-7e61-4064-be1f-47ef81da685c')
2025-04-19 15:12:22,953 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,961 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:12:22,961 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] ('2f1d1c38-44ae-465e-85db-8f78431320a6',)
2025-04-19 15:12:22,961 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 2f1d1c38-44ae-465e-85db-8f78431320a6
2025-04-19 15:12:22,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,962 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:12:22,962 - services.execution.handlers.foundation - INFO - 任务 2f1d1c38-44ae-465e-85db-8f78431320a6 打印: ['2f1d1c38-44ae-465e-85db-8f78431320a6']
2025-04-19 15:12:22,963 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,966 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:12:22,966 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('46343ca6-a4e3-4ef3-9501-42c28062f3cc', 1, '{"success": true, "message": "打印成功", "output": {"message": ["2f1d1c38-44ae-465e-85db-8f78431320a6"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2f1d1c38-44ae-465e-85db-8f78431320a6', datetime.datetime(2025, 4, 19, 15, 12, 22, 966834), datetime.datetime(2025, 4, 19, 15, 12, 22, 966834), 0)
2025-04-19 15:12:22,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,976 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,977 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:12:22,978 - sqlalchemy.engine.Engine - INFO - [cached since 0.04852s ago] ('2fd6b9ea-7e61-4064-be1f-47ef81da685c',)
2025-04-19 15:12:22,979 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:12:22,979 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:12:22,980 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:12:22,980 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (datetime.datetime(2025, 4, 19, 15, 12, 22, 979827), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 12, 22, 980827), '2fd6b9ea-7e61-4064-be1f-47ef81da685c')
2025-04-19 15:12:22,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:22,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:22,991 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:12:22,992 - sqlalchemy.engine.Engine - INFO - [cached since 0.02564s ago] ('4bb27832-3eaa-4053-8622-ba7030cdedb2', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["2f1d1c38-44ae-465e-85db-8f78431320a6"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '2f1d1c38-44ae-465e-85db-8f78431320a6', datetime.datetime(2025, 4, 19, 15, 12, 22, 991924), datetime.datetime(2025, 4, 19, 15, 12, 22, 991924), 0)
2025-04-19 15:12:22,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:23,000 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:23,000 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:12:23,001 - sqlalchemy.engine.Engine - INFO - [cached since 0.07181s ago] ('637d0ae9-aa4e-44a4-a149-5914f3b48ae2',)
2025-04-19 15:12:23,002 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:12:23,002 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:12:23,002 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:12:23,003 - sqlalchemy.engine.Engine - INFO - [cached since 0.02288s ago] (datetime.datetime(2025, 4, 19, 15, 12, 23, 2885), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 12, 23, 2885), '637d0ae9-aa4e-44a4-a149-5914f3b48ae2')
2025-04-19 15:12:23,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:23,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:23,017 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:23,017 - sqlalchemy.engine.Engine - INFO - [generated in 0.00132s] (datetime.datetime(2025, 4, 19, 15, 12, 23, 13827), '任务执行成功', 1000, 107, datetime.datetime(2025, 4, 19, 15, 12, 23, 17827), '2f1d1c38-44ae-465e-85db-8f78431320a6')
2025-04-19 15:12:23,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:23,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 2f1d1c38-44ae-465e-85db-8f78431320a6, 结果: True
2025-04-19 15:12:28,309 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,310 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:12:28,311 - sqlalchemy.engine.Engine - INFO - [cached since 5.487s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:12:28,312 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:12:28,313 - sqlalchemy.engine.Engine - INFO - [cached since 5.461s ago] ('a75cddfe-1098-4c6c-a37e-1d3df90c33ad', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 12, 28, 312620), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 12, 28, 312620), datetime.datetime(2025, 4, 19, 15, 12, 28, 312620), 0)
2025-04-19 15:12:28,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,329 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:28,329 - sqlalchemy.engine.Engine - INFO - [cached since 5.466s ago] ('a75cddfe-1098-4c6c-a37e-1d3df90c33ad',)
2025-04-19 15:12:28,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,332 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 a75cddfe-1098-4c6c-a37e-1d3df90c33ad (优先级 1) 添加到队列 0
2025-04-19 15:12:28,332 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:12:28,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: a75cddfe-1098-4c6c-a37e-1d3df90c33ad, 优先级: 1
2025-04-19 15:12:28,388 - services.execution.task_executor - DEBUG - 任务 a75cddfe-1098-4c6c-a37e-1d3df90c33ad 设置超时时间: 3600秒
2025-04-19 15:12:28,391 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,391 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:28,391 - sqlalchemy.engine.Engine - INFO - [cached since 5.529s ago] ('a75cddfe-1098-4c6c-a37e-1d3df90c33ad',)
2025-04-19 15:12:28,393 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:12:28,394 - sqlalchemy.engine.Engine - INFO - [cached since 5.57s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:12:28,395 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:28,396 - sqlalchemy.engine.Engine - INFO - [cached since 5.498s ago] (datetime.datetime(2025, 4, 19, 15, 12, 28, 395101), datetime.datetime(2025, 4, 19, 15, 12, 28, 395101), 'a75cddfe-1098-4c6c-a37e-1d3df90c33ad')
2025-04-19 15:12:28,396 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,405 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,406 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:28,406 - sqlalchemy.engine.Engine - INFO - [cached since 5.498s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 12, 28, 406111), 'a75cddfe-1098-4c6c-a37e-1d3df90c33ad')
2025-04-19 15:12:28,407 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,415 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:12:28,416 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,417 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:12:28,417 - sqlalchemy.engine.Engine - INFO - [cached since 5.496s ago] ('e8af27de-c728-48dd-83ca-11ef99db2bc8', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a75cddfe-1098-4c6c-a37e-1d3df90c33ad', datetime.datetime(2025, 4, 19, 15, 12, 28, 415109), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 12, 28, 416116), datetime.datetime(2025, 4, 19, 15, 12, 28, 416116), 0)
2025-04-19 15:12:28,418 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,426 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,426 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:12:28,426 - sqlalchemy.engine.Engine - INFO - [cached since 5.497s ago] ('e8af27de-c728-48dd-83ca-11ef99db2bc8',)
2025-04-19 15:12:28,427 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:12:28,427 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:12:28,427 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:12:28,427 - sqlalchemy.engine.Engine - INFO - [cached since 5.495s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 12, 28, 427179), 'e8af27de-c728-48dd-83ca-11ef99db2bc8')
2025-04-19 15:12:28,428 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,436 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:12:28,436 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:12:28,437 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:12:28,438 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,438 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:12:28,438 - sqlalchemy.engine.Engine - INFO - [cached since 5.517s ago] ('814c6f1e-daa7-4057-8d36-8b68c889719f', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a75cddfe-1098-4c6c-a37e-1d3df90c33ad', datetime.datetime(2025, 4, 19, 15, 12, 28, 437185), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 12, 28, 438201), datetime.datetime(2025, 4, 19, 15, 12, 28, 438201), 0)
2025-04-19 15:12:28,439 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,447 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 814c6f1e-daa7-4057-8d36-8b68c889719f
2025-04-19 15:12:28,447 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,447 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:12:28,447 - sqlalchemy.engine.Engine - INFO - [cached since 5.518s ago] ('814c6f1e-daa7-4057-8d36-8b68c889719f',)
2025-04-19 15:12:28,448 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:12:28,449 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:12:28,449 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:12:28,449 - sqlalchemy.engine.Engine - INFO - [cached since 5.517s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 12, 28, 449354), '814c6f1e-daa7-4057-8d36-8b68c889719f')
2025-04-19 15:12:28,450 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,457 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:12:28,457 - sqlalchemy.engine.Engine - INFO - [cached since 5.496s ago] ('a75cddfe-1098-4c6c-a37e-1d3df90c33ad',)
2025-04-19 15:12:28,458 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: a75cddfe-1098-4c6c-a37e-1d3df90c33ad
2025-04-19 15:12:28,458 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,459 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:12:28,459 - services.execution.handlers.foundation - INFO - 任务 a75cddfe-1098-4c6c-a37e-1d3df90c33ad 打印: ['a75cddfe-1098-4c6c-a37e-1d3df90c33ad']
2025-04-19 15:12:28,460 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,461 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:12:28,461 - sqlalchemy.engine.Engine - INFO - [cached since 5.495s ago] ('130b56e2-8feb-443b-8634-6150f8031c47', 1, '{"success": true, "message": "打印成功", "output": {"message": ["a75cddfe-1098-4c6c-a37e-1d3df90c33ad"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a75cddfe-1098-4c6c-a37e-1d3df90c33ad', datetime.datetime(2025, 4, 19, 15, 12, 28, 461849), datetime.datetime(2025, 4, 19, 15, 12, 28, 461849), 0)
2025-04-19 15:12:28,461 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,467 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,467 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:12:28,467 - sqlalchemy.engine.Engine - INFO - [cached since 5.539s ago] ('814c6f1e-daa7-4057-8d36-8b68c889719f',)
2025-04-19 15:12:28,468 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:12:28,469 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:12:28,469 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:12:28,469 - sqlalchemy.engine.Engine - INFO - [cached since 5.489s ago] (datetime.datetime(2025, 4, 19, 15, 12, 28, 469758), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 12, 28, 469758), '814c6f1e-daa7-4057-8d36-8b68c889719f')
2025-04-19 15:12:28,470 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,484 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,485 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:12:28,486 - sqlalchemy.engine.Engine - INFO - [cached since 5.52s ago] ('a855a959-5ac8-4202-8833-9a30b6c571d8', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["a75cddfe-1098-4c6c-a37e-1d3df90c33ad"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'a75cddfe-1098-4c6c-a37e-1d3df90c33ad', datetime.datetime(2025, 4, 19, 15, 12, 28, 485834), datetime.datetime(2025, 4, 19, 15, 12, 28, 485834), 0)
2025-04-19 15:12:28,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,497 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,498 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:12:28,498 - sqlalchemy.engine.Engine - INFO - [cached since 5.569s ago] ('e8af27de-c728-48dd-83ca-11ef99db2bc8',)
2025-04-19 15:12:28,499 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:12:28,499 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:12:28,499 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:12:28,499 - sqlalchemy.engine.Engine - INFO - [cached since 5.519s ago] (datetime.datetime(2025, 4, 19, 15, 12, 28, 499782), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 12, 28, 499782), 'e8af27de-c728-48dd-83ca-11ef99db2bc8')
2025-04-19 15:12:28,500 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,509 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,510 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:12:28,510 - sqlalchemy.engine.Engine - INFO - [cached since 5.494s ago] (datetime.datetime(2025, 4, 19, 15, 12, 28, 508782), '任务执行成功', 1000, 103, datetime.datetime(2025, 4, 19, 15, 12, 28, 509781), 'a75cddfe-1098-4c6c-a37e-1d3df90c33ad')
2025-04-19 15:12:28,511 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:28,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: a75cddfe-1098-4c6c-a37e-1d3df90c33ad, 结果: True
2025-04-19 15:12:28,997 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:12:28,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:28,999 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:12:29,000 - sqlalchemy.engine.Engine - INFO - [cached since 6.176s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:12:29,001 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:12:29,002 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] (1, datetime.datetime(2025, 4, 19, 15, 12, 29, 1859), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:12:29,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:29,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:12:29,021 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:12:29,021 - sqlalchemy.engine.Engine - INFO - [cached since 6.197s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:12:29,022 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:12:29,023 - sqlalchemy.engine.Engine - INFO - [cached since 6.192s ago] (0, datetime.datetime(2025, 4, 19, 15, 12, 29, 22414), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:12:29,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:12:29,030 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0330秒
2025-04-19 15:13:18,306 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:13:18,307 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:13:18,307 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 14, 13, 18, 306586))
2025-04-19 15:13:18,308 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:13:18,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:13:18,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:13:18,309 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:13:18,309 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:13:18,309 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:13:18,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:13:18,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:13:18,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:13:18,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:13:18,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:13:18,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:13:18,310 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:13:18,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:13:18,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:13:18,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:13:18,311 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:13:18,311 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:13:18,311 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:13:18,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:13:18,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:13:18,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:13:18,312 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:13:18,312 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:13:18,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:13:33,330 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:13:33,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:13:33,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:13:33,331 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:13:33,331 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:13:33,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:13:33,487 - root - INFO - 应用程序关闭中...
2025-04-19 15:13:33,487 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:13:33,488 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:13:33,488 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:13:33,488 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:13:33,488 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:13:33,488 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:13:33,488 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:13:33,489 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:13:33,489 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:13:33,489 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:13:33,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:13:33,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:13:33,491 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:13:33,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:13:33,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:13:33,491 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-19 15:13:33,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:13:33,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:13:33,491 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-19 15:13:33,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:13:33,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:13:33,491 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-19 15:13:33,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:13:33,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:13:33,492 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-19 15:13:33,492 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:13:33,493 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:13:33,493 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:13:33,493 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:13:33,493 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:13:33,493 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:13:33,494 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:13:34,749 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:13:34,750 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:13:34,810 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:13:34,861 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:13:34,901 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:13:34,919 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:13:34,920 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,920 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:13:34,921 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,921 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:13:34,921 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,922 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:13:34,922 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:13:34,922 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,923 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:13:34,923 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,924 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:13:34,925 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,927 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:13:34,927 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,928 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:13:34,929 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,931 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:13:34,931 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,932 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:13:34,932 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,936 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:13:34,937 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,940 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:13:34,940 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,942 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:13:34,942 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,943 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:13:34,943 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:34,944 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:13:34,944 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:13:35,307 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:13:35,307 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:13:35,308 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:13:35,308 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:13:35,308 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:13:35,308 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:13:35,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:13:35,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:13:35,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:13:35,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:13:35,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:13:35,308 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:13:35,308 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:13:35,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:13:35,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:13:35,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:13:35,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:13:35,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:13:35,310 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:13:35,310 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:13:35,328 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:13:35,329 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:13:35,330 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:13:35,330 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:13:35,330 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:13:35,331 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:13:35,331 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:13:35,332 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:13:35,346 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:13:35,346 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (1, 1)
2025-04-19 15:13:35,348 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:13:35,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:13:35,349 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:13:35,350 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:13:35,350 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:13:35,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:13:35,352 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:13:35,353 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (1000, 2000, 2001)
2025-04-19 15:13:35,354 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:13:35,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:13:35,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:13:35,356 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:13:35,356 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1001, datetime.datetime(2025, 4, 19, 14, 13, 35, 350171))
2025-04-19 15:13:35,357 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:13:35,358 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:13:35,358 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:13:35,358 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:13:35,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:13:54,496 - root - INFO - 应用程序关闭中...
2025-04-19 15:13:54,496 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:13:54,496 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:13:54,497 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:13:54,497 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:13:54,497 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:13:54,497 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:13:54,497 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:13:54,498 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:13:54,498 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:13:54,498 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:13:54,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:13:54,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:13:54,498 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:13:54,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:13:54,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:13:54,498 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:13:54,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:13:54,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:13:54,499 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:13:54,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:13:54,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:13:54,499 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:13:54,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:13:54,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:13:54,499 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:13:54,499 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:13:54,499 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:13:54,499 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:13:54,499 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:13:54,500 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:13:54,500 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:13:54,500 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:13:55,630 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:13:55,630 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:13:55,692 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:13:55,742 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:13:55,777 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:13:55,780 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:13:55,780 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,781 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:13:55,781 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,781 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:13:55,781 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,782 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:13:55,782 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:13:55,782 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,783 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:13:55,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,786 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:13:55,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,786 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:13:55,787 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,787 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:13:55,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,788 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:13:55,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,789 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:13:55,790 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,791 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:13:55,791 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,792 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:13:55,792 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,793 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:13:55,793 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,794 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:13:55,794 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:13:55,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:13:55,796 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:13:56,159 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:13:56,159 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:13:56,159 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:13:56,160 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:13:56,160 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:13:56,160 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:13:56,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:13:56,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:13:56,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:13:56,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:13:56,161 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:13:56,161 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:13:56,161 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:13:56,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:13:56,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:13:56,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:13:56,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:13:56,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:13:56,163 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:13:56,163 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:13:56,166 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:13:56,166 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:13:56,167 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:13:56,167 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:13:56,167 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:13:56,168 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:13:56,168 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:13:56,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:13:56,178 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:13:56,178 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (1, 1)
2025-04-19 15:13:56,179 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:13:56,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:13:56,180 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:13:56,181 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:13:56,181 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:13:56,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:13:56,183 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:13:56,183 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (1000, 2000, 2001)
2025-04-19 15:13:56,203 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:13:56,203 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:13:56,203 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:13:56,203 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:13:56,204 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:13:56,204 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:13:56,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:13:56,205 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:13:56,205 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (1001, datetime.datetime(2025, 4, 19, 14, 13, 56, 181028))
2025-04-19 15:13:56,206 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,542 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:14:01,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,545 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:01,545 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:01,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,547 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:01,547 - sqlalchemy.engine.Engine - INFO - [cached since 0.002196s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:01,548 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,548 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:14:01,548 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:14:01,549 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,549 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:01,549 - sqlalchemy.engine.Engine - INFO - [cached since 0.004154s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:01,551 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:14:01,551 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1, datetime.datetime(2025, 4, 19, 15, 14, 1, 551386), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:14:01,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,569 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:14:01,569 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1, datetime.datetime(2025, 4, 19, 15, 14, 1, 569592), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:14:01,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,570 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:14:01,570 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,571 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:01,571 - sqlalchemy.engine.Engine - INFO - [cached since 0.0262s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:01,573 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:14:01,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('96b5d223-fe93-4e41-8bd4-6cf0be2280c1', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 14, 1, 572592), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 14, 1, 573593), datetime.datetime(2025, 4, 19, 15, 14, 1, 573593), 0)
2025-04-19 15:14:01,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,583 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,583 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:01,584 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] ('96b5d223-fe93-4e41-8bd4-6cf0be2280c1',)
2025-04-19 15:14:01,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,585 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 96b5d223-fe93-4e41-8bd4-6cf0be2280c1 (优先级 1) 添加到队列 0
2025-04-19 15:14:01,585 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0432秒
2025-04-19 15:14:01,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 96b5d223-fe93-4e41-8bd4-6cf0be2280c1, 优先级: 1
2025-04-19 15:14:01,628 - services.execution.task_executor - DEBUG - 任务 96b5d223-fe93-4e41-8bd4-6cf0be2280c1 设置超时时间: 3600秒
2025-04-19 15:14:01,629 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,629 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:01,630 - sqlalchemy.engine.Engine - INFO - [cached since 0.04641s ago] ('96b5d223-fe93-4e41-8bd4-6cf0be2280c1',)
2025-04-19 15:14:01,631 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:01,631 - sqlalchemy.engine.Engine - INFO - [cached since 0.08638s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:01,632 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:01,632 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (datetime.datetime(2025, 4, 19, 15, 14, 1, 632699), datetime.datetime(2025, 4, 19, 15, 14, 1, 632699), '96b5d223-fe93-4e41-8bd4-6cf0be2280c1')
2025-04-19 15:14:01,633 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,641 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,642 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:01,642 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 14, 1, 642701), '96b5d223-fe93-4e41-8bd4-6cf0be2280c1')
2025-04-19 15:14:01,643 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,650 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:14:01,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,652 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:14:01,652 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('f9a6267c-3368-445f-a768-3ec62b2c2c46', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '96b5d223-fe93-4e41-8bd4-6cf0be2280c1', datetime.datetime(2025, 4, 19, 15, 14, 1, 650699), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 14, 1, 652700), datetime.datetime(2025, 4, 19, 15, 14, 1, 652700), 0)
2025-04-19 15:14:01,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,661 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:01,661 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('f9a6267c-3368-445f-a768-3ec62b2c2c46',)
2025-04-19 15:14:01,662 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:14:01,662 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:14:01,663 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:01,663 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 14, 1, 662701), 'f9a6267c-3368-445f-a768-3ec62b2c2c46')
2025-04-19 15:14:01,663 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,669 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:14:01,669 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:14:01,669 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:14:01,670 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,670 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:14:01,671 - sqlalchemy.engine.Engine - INFO - [cached since 0.01885s ago] ('0066de53-4242-4f98-9dd7-0443bd83a57e', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '96b5d223-fe93-4e41-8bd4-6cf0be2280c1', datetime.datetime(2025, 4, 19, 15, 14, 1, 670700), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 14, 1, 670700), datetime.datetime(2025, 4, 19, 15, 14, 1, 670700), 0)
2025-04-19 15:14:01,671 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,678 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 0066de53-4242-4f98-9dd7-0443bd83a57e
2025-04-19 15:14:01,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,679 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:01,679 - sqlalchemy.engine.Engine - INFO - [cached since 0.01871s ago] ('0066de53-4242-4f98-9dd7-0443bd83a57e',)
2025-04-19 15:14:01,680 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:14:01,680 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:14:01,680 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:01,681 - sqlalchemy.engine.Engine - INFO - [cached since 0.01806s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 14, 1, 680700), '0066de53-4242-4f98-9dd7-0443bd83a57e')
2025-04-19 15:14:01,681 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,691 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:14:01,692 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] ('96b5d223-fe93-4e41-8bd4-6cf0be2280c1',)
2025-04-19 15:14:01,692 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 96b5d223-fe93-4e41-8bd4-6cf0be2280c1
2025-04-19 15:14:01,692 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,693 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:14:01,693 - services.execution.handlers.foundation - INFO - 任务 96b5d223-fe93-4e41-8bd4-6cf0be2280c1 打印: ['96b5d223-fe93-4e41-8bd4-6cf0be2280c1']
2025-04-19 15:14:01,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,694 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:14:01,694 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('34a3331c-8e82-49d7-a606-f0ca6ffebac5', 1, '{"success": true, "message": "打印成功", "output": {"message": ["96b5d223-fe93-4e41-8bd4-6cf0be2280c1"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '96b5d223-fe93-4e41-8bd4-6cf0be2280c1', datetime.datetime(2025, 4, 19, 15, 14, 1, 694700), datetime.datetime(2025, 4, 19, 15, 14, 1, 694700), 0)
2025-04-19 15:14:01,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,703 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:01,703 - sqlalchemy.engine.Engine - INFO - [cached since 0.04217s ago] ('0066de53-4242-4f98-9dd7-0443bd83a57e',)
2025-04-19 15:14:01,704 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:14:01,704 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:14:01,705 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:01,705 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (datetime.datetime(2025, 4, 19, 15, 14, 1, 704700), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 14, 1, 704700), '0066de53-4242-4f98-9dd7-0443bd83a57e')
2025-04-19 15:14:01,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,716 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,716 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:14:01,716 - sqlalchemy.engine.Engine - INFO - [cached since 0.02214s ago] ('a525d4df-08d5-46fc-b83d-cbec08c4c4dc', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["96b5d223-fe93-4e41-8bd4-6cf0be2280c1"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '96b5d223-fe93-4e41-8bd4-6cf0be2280c1', datetime.datetime(2025, 4, 19, 15, 14, 1, 716934), datetime.datetime(2025, 4, 19, 15, 14, 1, 716934), 0)
2025-04-19 15:14:01,717 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,725 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:01,725 - sqlalchemy.engine.Engine - INFO - [cached since 0.06431s ago] ('f9a6267c-3368-445f-a768-3ec62b2c2c46',)
2025-04-19 15:14:01,725 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:14:01,726 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:14:01,726 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:01,726 - sqlalchemy.engine.Engine - INFO - [cached since 0.0218s ago] (datetime.datetime(2025, 4, 19, 15, 14, 1, 726938), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 14, 1, 726938), 'f9a6267c-3368-445f-a768-3ec62b2c2c46')
2025-04-19 15:14:01,727 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:01,736 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:01,736 - sqlalchemy.engine.Engine - INFO - [generated in 0.00110s] (datetime.datetime(2025, 4, 19, 15, 14, 1, 732949), '任务执行成功', 1000, 92, datetime.datetime(2025, 4, 19, 15, 14, 1, 736945), '96b5d223-fe93-4e41-8bd4-6cf0be2280c1')
2025-04-19 15:14:01,738 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:01,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 96b5d223-fe93-4e41-8bd4-6cf0be2280c1, 结果: True
2025-04-19 15:14:06,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,213 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:06,213 - sqlalchemy.engine.Engine - INFO - [cached since 4.668s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:06,214 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:14:06,214 - sqlalchemy.engine.Engine - INFO - [cached since 4.641s ago] ('94157bd4-d136-4e70-ab2c-42dfe872092c', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 14, 6, 214053), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 14, 6, 214053), datetime.datetime(2025, 4, 19, 15, 14, 6, 214053), 0)
2025-04-19 15:14:06,215 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,229 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:06,231 - sqlalchemy.engine.Engine - INFO - [cached since 4.647s ago] ('94157bd4-d136-4e70-ab2c-42dfe872092c',)
2025-04-19 15:14:06,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,232 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 94157bd4-d136-4e70-ab2c-42dfe872092c (优先级 1) 添加到队列 0
2025-04-19 15:14:06,232 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:14:06,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 94157bd4-d136-4e70-ab2c-42dfe872092c, 优先级: 1
2025-04-19 15:14:06,304 - services.execution.task_executor - DEBUG - 任务 94157bd4-d136-4e70-ab2c-42dfe872092c 设置超时时间: 3600秒
2025-04-19 15:14:06,305 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,306 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:06,306 - sqlalchemy.engine.Engine - INFO - [cached since 4.722s ago] ('94157bd4-d136-4e70-ab2c-42dfe872092c',)
2025-04-19 15:14:06,307 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:06,308 - sqlalchemy.engine.Engine - INFO - [cached since 4.763s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:06,309 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:06,309 - sqlalchemy.engine.Engine - INFO - [cached since 4.677s ago] (datetime.datetime(2025, 4, 19, 15, 14, 6, 308546), datetime.datetime(2025, 4, 19, 15, 14, 6, 309475), '94157bd4-d136-4e70-ab2c-42dfe872092c')
2025-04-19 15:14:06,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,319 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:06,319 - sqlalchemy.engine.Engine - INFO - [cached since 4.677s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 14, 6, 319770), '94157bd4-d136-4e70-ab2c-42dfe872092c')
2025-04-19 15:14:06,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,333 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:14:06,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,335 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:14:06,335 - sqlalchemy.engine.Engine - INFO - [cached since 4.683s ago] ('345e1e06-a293-42db-ad1b-86ab7acef9a9', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '94157bd4-d136-4e70-ab2c-42dfe872092c', datetime.datetime(2025, 4, 19, 15, 14, 6, 334176), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 14, 6, 335388), datetime.datetime(2025, 4, 19, 15, 14, 6, 335388), 0)
2025-04-19 15:14:06,336 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,347 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,347 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:06,348 - sqlalchemy.engine.Engine - INFO - [cached since 4.687s ago] ('345e1e06-a293-42db-ad1b-86ab7acef9a9',)
2025-04-19 15:14:06,349 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:14:06,349 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:14:06,349 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:06,350 - sqlalchemy.engine.Engine - INFO - [cached since 4.687s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 14, 6, 349264), '345e1e06-a293-42db-ad1b-86ab7acef9a9')
2025-04-19 15:14:06,350 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,358 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:14:06,358 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:14:06,358 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:14:06,359 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,359 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:14:06,359 - sqlalchemy.engine.Engine - INFO - [cached since 4.707s ago] ('a2f0d1e3-ef79-461f-aff7-d0856df479fc', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '94157bd4-d136-4e70-ab2c-42dfe872092c', datetime.datetime(2025, 4, 19, 15, 14, 6, 358171), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 14, 6, 359170), datetime.datetime(2025, 4, 19, 15, 14, 6, 359170), 0)
2025-04-19 15:14:06,360 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,367 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a2f0d1e3-ef79-461f-aff7-d0856df479fc
2025-04-19 15:14:06,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,367 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:06,367 - sqlalchemy.engine.Engine - INFO - [cached since 4.706s ago] ('a2f0d1e3-ef79-461f-aff7-d0856df479fc',)
2025-04-19 15:14:06,369 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:14:06,369 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:14:06,369 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:06,369 - sqlalchemy.engine.Engine - INFO - [cached since 4.706s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 14, 6, 369171), 'a2f0d1e3-ef79-461f-aff7-d0856df479fc')
2025-04-19 15:14:06,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,376 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:14:06,376 - sqlalchemy.engine.Engine - INFO - [cached since 4.684s ago] ('94157bd4-d136-4e70-ab2c-42dfe872092c',)
2025-04-19 15:14:06,377 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 94157bd4-d136-4e70-ab2c-42dfe872092c
2025-04-19 15:14:06,377 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,377 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:14:06,377 - services.execution.handlers.foundation - INFO - 任务 94157bd4-d136-4e70-ab2c-42dfe872092c 打印: ['94157bd4-d136-4e70-ab2c-42dfe872092c']
2025-04-19 15:14:06,378 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,378 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:14:06,378 - sqlalchemy.engine.Engine - INFO - [cached since 4.683s ago] ('c942ab09-6446-437d-a92d-1fb09fc302aa', 1, '{"success": true, "message": "打印成功", "output": {"message": ["94157bd4-d136-4e70-ab2c-42dfe872092c"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '94157bd4-d136-4e70-ab2c-42dfe872092c', datetime.datetime(2025, 4, 19, 15, 14, 6, 378170), datetime.datetime(2025, 4, 19, 15, 14, 6, 378170), 0)
2025-04-19 15:14:06,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,384 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,384 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:06,384 - sqlalchemy.engine.Engine - INFO - [cached since 4.723s ago] ('a2f0d1e3-ef79-461f-aff7-d0856df479fc',)
2025-04-19 15:14:06,385 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:14:06,385 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:14:06,386 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:06,386 - sqlalchemy.engine.Engine - INFO - [cached since 4.681s ago] (datetime.datetime(2025, 4, 19, 15, 14, 6, 386170), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 14, 6, 386170), 'a2f0d1e3-ef79-461f-aff7-d0856df479fc')
2025-04-19 15:14:06,386 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,393 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,394 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:14:06,394 - sqlalchemy.engine.Engine - INFO - [cached since 4.699s ago] ('68ccd2b6-0119-416f-a949-da2b52c9a3f0', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["94157bd4-d136-4e70-ab2c-42dfe872092c"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '94157bd4-d136-4e70-ab2c-42dfe872092c', datetime.datetime(2025, 4, 19, 15, 14, 6, 394185), datetime.datetime(2025, 4, 19, 15, 14, 6, 394185), 0)
2025-04-19 15:14:06,394 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,403 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,403 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:06,403 - sqlalchemy.engine.Engine - INFO - [cached since 4.742s ago] ('345e1e06-a293-42db-ad1b-86ab7acef9a9',)
2025-04-19 15:14:06,404 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:14:06,404 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:14:06,405 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:06,405 - sqlalchemy.engine.Engine - INFO - [cached since 4.7s ago] (datetime.datetime(2025, 4, 19, 15, 14, 6, 405195), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 14, 6, 405195), '345e1e06-a293-42db-ad1b-86ab7acef9a9')
2025-04-19 15:14:06,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,413 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:06,413 - sqlalchemy.engine.Engine - INFO - [cached since 4.677s ago] (datetime.datetime(2025, 4, 19, 15, 14, 6, 412178), '任务执行成功', 1000, 95, datetime.datetime(2025, 4, 19, 15, 14, 6, 413223), '94157bd4-d136-4e70-ab2c-42dfe872092c')
2025-04-19 15:14:06,413 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 94157bd4-d136-4e70-ab2c-42dfe872092c, 结果: True
2025-04-19 15:14:06,967 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:14:06,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,970 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:06,971 - sqlalchemy.engine.Engine - INFO - [cached since 5.425s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:06,972 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:14:06,972 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1, datetime.datetime(2025, 4, 19, 15, 14, 6, 972057), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:14:06,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:06,982 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:06,983 - sqlalchemy.engine.Engine - INFO - [cached since 5.437s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:06,984 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:14:06,984 - sqlalchemy.engine.Engine - INFO - [cached since 5.433s ago] (0, datetime.datetime(2025, 4, 19, 15, 14, 6, 984144), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:14:06,985 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:06,992 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0250秒
2025-04-19 15:14:47,876 - root - INFO - 应用程序关闭中...
2025-04-19 15:14:47,877 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:14:47,877 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:14:47,877 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:14:47,877 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:14:47,878 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:14:47,878 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:14:47,878 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:14:47,878 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:14:47,879 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:14:47,879 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:14:47,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:14:47,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:14:47,879 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:14:47,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:14:47,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:14:47,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:14:47,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:14:47,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:14:47,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:14:47,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:14:47,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:14:47,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:14:47,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:14:47,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:14:47,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:14:47,881 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:14:47,881 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:14:47,881 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:14:47,881 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:14:47,881 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:14:47,882 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:14:47,882 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:14:50,011 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:14:50,011 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:14:50,777 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:14:50,777 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:14:50,839 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:14:50,893 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:14:50,920 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:14:50,921 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:14:50,922 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,922 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:14:50,922 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,923 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:14:50,923 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,923 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:50,923 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:14:50,924 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,925 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:14:50,925 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,926 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:14:50,926 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,930 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:14:50,930 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,931 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:14:50,931 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,932 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:14:50,933 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,933 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:14:50,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,934 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:14:50,935 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,935 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:14:50,936 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,937 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:14:50,937 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:14:50,939 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:14:50,940 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:50,940 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:14:51,317 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:14:51,317 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:14:51,318 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:14:51,318 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:14:51,318 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:14:51,318 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:14:51,318 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:14:51,318 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:14:51,318 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:14:51,318 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:14:51,318 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:14:51,318 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:14:51,319 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:14:51,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:14:51,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:14:51,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:14:51,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:14:51,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:14:51,320 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:14:51,320 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:14:51,337 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:14:51,338 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:14:51,339 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:14:51,340 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:14:51,340 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:14:51,340 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:14:51,340 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:14:51,341 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:51,350 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:14:51,351 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1, 1)
2025-04-19 15:14:51,351 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:14:51,352 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:51,352 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:14:51,353 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:14:51,353 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:14:51,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:51,355 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:14:51,355 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1000, 2000, 2001)
2025-04-19 15:14:51,356 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:14:51,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:51,358 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:14:51,358 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:14:51,358 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:14:51,358 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:14:51,358 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:51,359 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:14:51,359 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1001, datetime.datetime(2025, 4, 19, 14, 14, 51, 353759))
2025-04-19 15:14:51,360 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,746 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:14:55,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,749 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:55,750 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:55,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,754 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:55,754 - sqlalchemy.engine.Engine - INFO - [cached since 0.004662s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:55,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,755 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:14:55,755 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:14:55,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,756 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:55,756 - sqlalchemy.engine.Engine - INFO - [cached since 0.006602s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:55,758 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:14:55,758 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1, datetime.datetime(2025, 4, 19, 15, 14, 55, 758308), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:14:55,758 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,775 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:14:55,775 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1, datetime.datetime(2025, 4, 19, 15, 14, 55, 775728), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:14:55,776 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,777 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:14:55,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,778 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:55,778 - sqlalchemy.engine.Engine - INFO - [cached since 0.02894s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:55,780 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:14:55,780 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('716b9b58-7531-47c1-9978-b2c7e2e23556', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 14, 55, 779696), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 14, 55, 780703), datetime.datetime(2025, 4, 19, 15, 14, 55, 780703), 0)
2025-04-19 15:14:55,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,788 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,789 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:55,789 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('716b9b58-7531-47c1-9978-b2c7e2e23556',)
2025-04-19 15:14:55,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,791 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 716b9b58-7531-47c1-9978-b2c7e2e23556 (优先级 1) 添加到队列 0
2025-04-19 15:14:55,791 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0447秒
2025-04-19 15:14:55,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 716b9b58-7531-47c1-9978-b2c7e2e23556, 优先级: 1
2025-04-19 15:14:55,870 - services.execution.task_executor - DEBUG - 任务 716b9b58-7531-47c1-9978-b2c7e2e23556 设置超时时间: 3600秒
2025-04-19 15:14:55,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,871 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:55,871 - sqlalchemy.engine.Engine - INFO - [cached since 0.08227s ago] ('716b9b58-7531-47c1-9978-b2c7e2e23556',)
2025-04-19 15:14:55,872 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:55,873 - sqlalchemy.engine.Engine - INFO - [cached since 0.1238s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:55,874 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:55,874 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (datetime.datetime(2025, 4, 19, 15, 14, 55, 874673), datetime.datetime(2025, 4, 19, 15, 14, 55, 874673), '716b9b58-7531-47c1-9978-b2c7e2e23556')
2025-04-19 15:14:55,875 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,885 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:55,886 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 14, 55, 885764), '716b9b58-7531-47c1-9978-b2c7e2e23556')
2025-04-19 15:14:55,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,895 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:14:55,896 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,898 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:14:55,898 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] ('c6d61721-986d-4917-a6d9-8575685d4e2b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '716b9b58-7531-47c1-9978-b2c7e2e23556', datetime.datetime(2025, 4, 19, 15, 14, 55, 895673), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 14, 55, 897660), datetime.datetime(2025, 4, 19, 15, 14, 55, 897660), 0)
2025-04-19 15:14:55,899 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,906 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:55,907 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] ('c6d61721-986d-4917-a6d9-8575685d4e2b',)
2025-04-19 15:14:55,908 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:14:55,908 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:14:55,908 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:55,909 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 14, 55, 908670), 'c6d61721-986d-4917-a6d9-8575685d4e2b')
2025-04-19 15:14:55,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,917 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:14:55,917 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:14:55,917 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:14:55,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,919 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:14:55,919 - sqlalchemy.engine.Engine - INFO - [cached since 0.02168s ago] ('b2a8babe-a6a8-45fa-a5da-a1ab2bb18b70', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '716b9b58-7531-47c1-9978-b2c7e2e23556', datetime.datetime(2025, 4, 19, 15, 14, 55, 918659), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 14, 55, 919660), datetime.datetime(2025, 4, 19, 15, 14, 55, 919660), 0)
2025-04-19 15:14:55,920 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,932 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b2a8babe-a6a8-45fa-a5da-a1ab2bb18b70
2025-04-19 15:14:55,933 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,933 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:55,934 - sqlalchemy.engine.Engine - INFO - [cached since 0.02764s ago] ('b2a8babe-a6a8-45fa-a5da-a1ab2bb18b70',)
2025-04-19 15:14:55,935 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:14:55,935 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:14:55,935 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:55,936 - sqlalchemy.engine.Engine - INFO - [cached since 0.02729s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 14, 55, 935668), 'b2a8babe-a6a8-45fa-a5da-a1ab2bb18b70')
2025-04-19 15:14:55,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,945 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:14:55,946 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('716b9b58-7531-47c1-9978-b2c7e2e23556',)
2025-04-19 15:14:55,946 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 716b9b58-7531-47c1-9978-b2c7e2e23556
2025-04-19 15:14:55,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,948 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:14:55,948 - services.execution.handlers.foundation - INFO - 任务 716b9b58-7531-47c1-9978-b2c7e2e23556 打印: ['716b9b58-7531-47c1-9978-b2c7e2e23556']
2025-04-19 15:14:55,949 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,950 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:14:55,951 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('57849a1e-8585-4220-8bea-a15c61d22f8f', 1, '{"success": true, "message": "打印成功", "output": {"message": ["716b9b58-7531-47c1-9978-b2c7e2e23556"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '716b9b58-7531-47c1-9978-b2c7e2e23556', datetime.datetime(2025, 4, 19, 15, 14, 55, 950659), datetime.datetime(2025, 4, 19, 15, 14, 55, 950659), 0)
2025-04-19 15:14:55,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,960 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:55,961 - sqlalchemy.engine.Engine - INFO - [cached since 0.05466s ago] ('b2a8babe-a6a8-45fa-a5da-a1ab2bb18b70',)
2025-04-19 15:14:55,962 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:14:55,962 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:14:55,962 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:55,962 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 19, 15, 14, 55, 962660), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 14, 55, 962660), 'b2a8babe-a6a8-45fa-a5da-a1ab2bb18b70')
2025-04-19 15:14:55,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,972 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,973 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:14:55,973 - sqlalchemy.engine.Engine - INFO - [cached since 0.02318s ago] ('2800b2b0-9a51-45b6-ad9c-a56337a90f7a', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["716b9b58-7531-47c1-9978-b2c7e2e23556"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '716b9b58-7531-47c1-9978-b2c7e2e23556', datetime.datetime(2025, 4, 19, 15, 14, 55, 973667), datetime.datetime(2025, 4, 19, 15, 14, 55, 973667), 0)
2025-04-19 15:14:55,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:55,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:55,985 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:14:55,986 - sqlalchemy.engine.Engine - INFO - [cached since 0.07968s ago] ('c6d61721-986d-4917-a6d9-8575685d4e2b',)
2025-04-19 15:14:55,987 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:14:55,987 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:14:55,988 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:14:55,989 - sqlalchemy.engine.Engine - INFO - [cached since 0.02628s ago] (datetime.datetime(2025, 4, 19, 15, 14, 55, 987668), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 14, 55, 988669), 'c6d61721-986d-4917-a6d9-8575685d4e2b')
2025-04-19 15:14:55,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:56,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:56,002 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:14:56,002 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (datetime.datetime(2025, 4, 19, 15, 14, 56, 754), '任务执行成功', 1000, 114, datetime.datetime(2025, 4, 19, 15, 14, 56, 2794), '716b9b58-7531-47c1-9978-b2c7e2e23556')
2025-04-19 15:14:56,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:56,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 716b9b58-7531-47c1-9978-b2c7e2e23556, 结果: True
2025-04-19 15:14:58,392 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:14:58,393 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:58,394 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:58,394 - sqlalchemy.engine.Engine - INFO - [cached since 2.645s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:58,397 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:14:58,397 - sqlalchemy.engine.Engine - INFO - [generated in 0.00087s] (1, datetime.datetime(2025, 4, 19, 15, 14, 58, 397113), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:14:58,399 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:58,406 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:14:58,408 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:14:58,408 - sqlalchemy.engine.Engine - INFO - [cached since 2.658s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:14:58,409 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:14:58,409 - sqlalchemy.engine.Engine - INFO - [cached since 2.652s ago] (0, datetime.datetime(2025, 4, 19, 15, 14, 58, 409120), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:14:58,410 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:14:58,417 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0250秒
2025-04-19 15:15:51,353 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:15:51,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:15:51,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:15:51,353 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:15:51,353 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:15:51,354 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:15:51,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:15:51,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:15:51,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:15:51,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:15:51,354 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:15:51,354 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:15:51,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:15:51,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:15:51,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:15:51,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:15:51,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:15:51,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:15:51,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:15:51,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:15:51,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:15:51,356 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:15:51,356 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:15:51,357 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 14, 15, 51, 354824))
2025-04-19 15:15:51,357 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:15:51,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:15:51,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:15:51,362 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:16:06,383 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:16:06,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:16:06,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:16:06,384 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:16:06,384 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:16:06,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:16:51,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:16:51,372 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:16:51,372 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 14, 16, 51, 371096))
2025-04-19 15:16:51,374 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:16:51,402 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:16:51,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:16:51,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:16:51,403 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:16:51,403 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:16:51,403 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:16:51,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:16:51,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:16:51,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:16:51,403 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:16:51,403 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:16:51,404 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:16:51,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:16:51,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:16:51,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:16:51,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:16:51,404 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:16:51,404 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:16:51,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:16:51,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:16:51,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:16:51,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:16:51,404 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:16:51,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:17:05,706 - root - INFO - 应用程序关闭中...
2025-04-19 15:17:05,706 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:17:05,706 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:17:05,707 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:17:05,707 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:17:05,707 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:17:05,707 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:17:05,708 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:17:05,708 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:17:05,708 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:17:05,708 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:17:05,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:17:05,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:17:05,709 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:17:05,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:17:05,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:17:05,709 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:17:05,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:17:05,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:17:05,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:17:05,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:17:05,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:17:05,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:17:05,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:17:05,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:17:05,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:17:05,710 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:17:05,710 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:17:05,710 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:17:05,711 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:17:05,711 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:17:05,711 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:17:05,711 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:17:08,449 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:17:08,449 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:17:09,229 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:17:09,229 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:17:09,291 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:17:09,345 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:17:09,364 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:17:09,383 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:17:09,384 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,384 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:17:09,384 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,385 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:17:09,385 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,386 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:09,386 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:17:09,386 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,388 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:17:09,388 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,389 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:17:09,390 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,391 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:17:09,391 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,392 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:17:09,392 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,393 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:17:09,393 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,395 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:17:09,395 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,396 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:17:09,396 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,397 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:17:09,398 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,399 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:17:09,399 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,400 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:17:09,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:17:09,402 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:09,402 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:17:09,788 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:17:09,788 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:17:09,788 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:17:09,789 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:17:09,789 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:17:09,789 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:17:09,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:17:09,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:17:09,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:17:09,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:17:09,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:17:09,789 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:17:09,789 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:17:09,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:17:09,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:17:09,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:17:09,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:17:09,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:17:09,793 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:17:09,793 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:17:09,794 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:17:09,794 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:17:09,795 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:17:09,795 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:17:09,796 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:17:09,796 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:17:09,797 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:17:09,797 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:09,806 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:17:09,806 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1, 1)
2025-04-19 15:17:09,807 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:17:09,807 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:09,809 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:17:09,809 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:17:09,809 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:17:09,810 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:09,811 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:17:09,811 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1000, 2000, 2001)
2025-04-19 15:17:09,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:09,813 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:17:09,814 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:17:09,814 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:17:09,814 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:17:09,814 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:17:09,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:09,815 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:17:09,816 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] (1001, datetime.datetime(2025, 4, 19, 14, 17, 9, 810421))
2025-04-19 15:17:09,817 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:13,995 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:17:13,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:13,998 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:17:13,999 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:17:14,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,001 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:17:14,002 - sqlalchemy.engine.Engine - INFO - [cached since 0.003385s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:17:14,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,003 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:17:14,003 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:17:14,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,004 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:17:14,004 - sqlalchemy.engine.Engine - INFO - [cached since 0.005876s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:17:14,006 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:17:14,006 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, datetime.datetime(2025, 4, 19, 15, 17, 14, 6921), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:17:14,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,018 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,018 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:17:14,019 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1, datetime.datetime(2025, 4, 19, 15, 17, 14, 18903), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:17:14,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,019 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:17:14,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,020 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:17:14,020 - sqlalchemy.engine.Engine - INFO - [cached since 0.02195s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:17:14,022 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:17:14,022 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] ('37479aa8-520d-446e-b964-acc2ce873856', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 17, 14, 21950), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 17, 14, 22903), datetime.datetime(2025, 4, 19, 15, 17, 14, 22903), 0)
2025-04-19 15:17:14,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,034 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,035 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:14,036 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('37479aa8-520d-446e-b964-acc2ce873856',)
2025-04-19 15:17:14,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,038 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 37479aa8-520d-446e-b964-acc2ce873856 (优先级 1) 添加到队列 0
2025-04-19 15:17:14,039 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0425秒
2025-04-19 15:17:14,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 37479aa8-520d-446e-b964-acc2ce873856, 优先级: 1
2025-04-19 15:17:14,139 - services.execution.task_executor - DEBUG - 任务 37479aa8-520d-446e-b964-acc2ce873856 设置超时时间: 3600秒
2025-04-19 15:17:14,140 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,140 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:14,141 - sqlalchemy.engine.Engine - INFO - [cached since 0.1061s ago] ('37479aa8-520d-446e-b964-acc2ce873856',)
2025-04-19 15:17:14,142 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:17:14,142 - sqlalchemy.engine.Engine - INFO - [cached since 0.1438s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:17:14,143 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:14,144 - sqlalchemy.engine.Engine - INFO - [generated in 0.00074s] (datetime.datetime(2025, 4, 19, 15, 17, 14, 143809), datetime.datetime(2025, 4, 19, 15, 17, 14, 143809), '37479aa8-520d-446e-b964-acc2ce873856')
2025-04-19 15:17:14,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,153 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,153 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:14,153 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 17, 14, 153816), '37479aa8-520d-446e-b964-acc2ce873856')
2025-04-19 15:17:14,154 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,163 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:17:14,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,166 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:17:14,167 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('a73b12d1-18ce-4d9a-aad4-74a4686f82c5', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '37479aa8-520d-446e-b964-acc2ce873856', datetime.datetime(2025, 4, 19, 15, 17, 14, 163807), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 17, 14, 166874), datetime.datetime(2025, 4, 19, 15, 17, 14, 166874), 0)
2025-04-19 15:17:14,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,175 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:17:14,175 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('a73b12d1-18ce-4d9a-aad4-74a4686f82c5',)
2025-04-19 15:17:14,176 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:17:14,176 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:17:14,178 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:17:14,179 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 17, 14, 178808), 'a73b12d1-18ce-4d9a-aad4-74a4686f82c5')
2025-04-19 15:17:14,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,185 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:17:14,185 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:17:14,186 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:17:14,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,187 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:17:14,187 - sqlalchemy.engine.Engine - INFO - [cached since 0.02052s ago] ('535bffbd-d8a1-499e-bb30-94029e9cbdc5', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '37479aa8-520d-446e-b964-acc2ce873856', datetime.datetime(2025, 4, 19, 15, 17, 14, 186849), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 17, 14, 187807), datetime.datetime(2025, 4, 19, 15, 17, 14, 187807), 0)
2025-04-19 15:17:14,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,196 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 535bffbd-d8a1-499e-bb30-94029e9cbdc5
2025-04-19 15:17:14,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,197 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:17:14,198 - sqlalchemy.engine.Engine - INFO - [cached since 0.02315s ago] ('535bffbd-d8a1-499e-bb30-94029e9cbdc5',)
2025-04-19 15:17:14,199 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:17:14,199 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:17:14,199 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:17:14,199 - sqlalchemy.engine.Engine - INFO - [cached since 0.02137s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 17, 14, 199808), '535bffbd-d8a1-499e-bb30-94029e9cbdc5')
2025-04-19 15:17:14,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,210 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,210 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:17:14,210 - sqlalchemy.engine.Engine - INFO - [generated in 0.00017s] ('37479aa8-520d-446e-b964-acc2ce873856',)
2025-04-19 15:17:14,211 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 37479aa8-520d-446e-b964-acc2ce873856
2025-04-19 15:17:14,211 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,212 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:17:14,212 - services.execution.handlers.foundation - INFO - 任务 37479aa8-520d-446e-b964-acc2ce873856 打印: ['37479aa8-520d-446e-b964-acc2ce873856']
2025-04-19 15:17:14,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,214 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:17:14,214 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('90f402b2-8c76-4527-ba73-8a76c370b5c2', 1, '{"success": true, "message": "打印成功", "output": {"message": ["37479aa8-520d-446e-b964-acc2ce873856"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '37479aa8-520d-446e-b964-acc2ce873856', datetime.datetime(2025, 4, 19, 15, 17, 14, 214609), datetime.datetime(2025, 4, 19, 15, 17, 14, 214609), 0)
2025-04-19 15:17:14,215 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,221 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:17:14,222 - sqlalchemy.engine.Engine - INFO - [cached since 0.04656s ago] ('535bffbd-d8a1-499e-bb30-94029e9cbdc5',)
2025-04-19 15:17:14,222 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:17:14,223 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:17:14,223 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:17:14,223 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (datetime.datetime(2025, 4, 19, 15, 17, 14, 223615), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 17, 14, 223615), '535bffbd-d8a1-499e-bb30-94029e9cbdc5')
2025-04-19 15:17:14,224 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,231 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,231 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:17:14,232 - sqlalchemy.engine.Engine - INFO - [cached since 0.01793s ago] ('7098c72f-002c-4b6a-a43e-14fc9a730252', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["37479aa8-520d-446e-b964-acc2ce873856"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '37479aa8-520d-446e-b964-acc2ce873856', datetime.datetime(2025, 4, 19, 15, 17, 14, 231674), datetime.datetime(2025, 4, 19, 15, 17, 14, 231674), 0)
2025-04-19 15:17:14,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,240 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:17:14,240 - sqlalchemy.engine.Engine - INFO - [cached since 0.06472s ago] ('a73b12d1-18ce-4d9a-aad4-74a4686f82c5',)
2025-04-19 15:17:14,242 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:17:14,242 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:17:14,242 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:17:14,242 - sqlalchemy.engine.Engine - INFO - [cached since 0.01918s ago] (datetime.datetime(2025, 4, 19, 15, 17, 14, 242607), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 17, 14, 242607), 'a73b12d1-18ce-4d9a-aad4-74a4686f82c5')
2025-04-19 15:17:14,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,256 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:14,265 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:14,267 - sqlalchemy.engine.Engine - INFO - [generated in 0.00502s] (datetime.datetime(2025, 4, 19, 15, 17, 14, 252608), '任务执行成功', 1000, 99, datetime.datetime(2025, 4, 19, 15, 17, 14, 263606), '37479aa8-520d-446e-b964-acc2ce873856')
2025-04-19 15:17:14,270 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:14,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 37479aa8-520d-446e-b964-acc2ce873856, 结果: True
2025-04-19 15:17:19,826 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,827 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:17:19,827 - sqlalchemy.engine.Engine - INFO - [cached since 5.829s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:17:19,829 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:17:19,829 - sqlalchemy.engine.Engine - INFO - [cached since 5.807s ago] ('19c850a8-7658-40b1-91e0-65e0369651c5', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 17, 19, 828717), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 17, 19, 828717), datetime.datetime(2025, 4, 19, 15, 17, 19, 828717), 0)
2025-04-19 15:17:19,830 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,847 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,847 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:19,847 - sqlalchemy.engine.Engine - INFO - [cached since 5.812s ago] ('19c850a8-7658-40b1-91e0-65e0369651c5',)
2025-04-19 15:17:19,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,850 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 19c850a8-7658-40b1-91e0-65e0369651c5 (优先级 1) 添加到队列 0
2025-04-19 15:17:19,850 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:17:19,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 19c850a8-7658-40b1-91e0-65e0369651c5, 优先级: 1
2025-04-19 15:17:19,905 - services.execution.task_executor - DEBUG - 任务 19c850a8-7658-40b1-91e0-65e0369651c5 设置超时时间: 3600秒
2025-04-19 15:17:19,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,906 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:19,907 - sqlalchemy.engine.Engine - INFO - [cached since 5.871s ago] ('19c850a8-7658-40b1-91e0-65e0369651c5',)
2025-04-19 15:17:19,910 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:17:19,910 - sqlalchemy.engine.Engine - INFO - [cached since 5.911s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:17:19,911 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:19,911 - sqlalchemy.engine.Engine - INFO - [cached since 5.767s ago] (datetime.datetime(2025, 4, 19, 15, 17, 19, 910084), datetime.datetime(2025, 4, 19, 15, 17, 19, 911424), '19c850a8-7658-40b1-91e0-65e0369651c5')
2025-04-19 15:17:19,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,918 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:19,918 - sqlalchemy.engine.Engine - INFO - [cached since 5.765s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 17, 19, 918427), '19c850a8-7658-40b1-91e0-65e0369651c5')
2025-04-19 15:17:19,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,926 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:17:19,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,928 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:17:19,928 - sqlalchemy.engine.Engine - INFO - [cached since 5.761s ago] ('85f9bf89-52e6-4885-8505-dd00959b82d3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '19c850a8-7658-40b1-91e0-65e0369651c5', datetime.datetime(2025, 4, 19, 15, 17, 19, 927429), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 17, 19, 928485), datetime.datetime(2025, 4, 19, 15, 17, 19, 928485), 0)
2025-04-19 15:17:19,929 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,936 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,936 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:17:19,936 - sqlalchemy.engine.Engine - INFO - [cached since 5.761s ago] ('85f9bf89-52e6-4885-8505-dd00959b82d3',)
2025-04-19 15:17:19,937 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:17:19,937 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:17:19,938 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:17:19,938 - sqlalchemy.engine.Engine - INFO - [cached since 5.759s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 17, 19, 938489), '85f9bf89-52e6-4885-8505-dd00959b82d3')
2025-04-19 15:17:19,938 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,946 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:17:19,946 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:17:19,946 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:17:19,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,947 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:17:19,947 - sqlalchemy.engine.Engine - INFO - [cached since 5.78s ago] ('a9c7fa5d-9fd9-463c-a0d7-670ccb0ffb1b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '19c850a8-7658-40b1-91e0-65e0369651c5', datetime.datetime(2025, 4, 19, 15, 17, 19, 946485), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 17, 19, 947485), datetime.datetime(2025, 4, 19, 15, 17, 19, 947485), 0)
2025-04-19 15:17:19,948 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,955 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a9c7fa5d-9fd9-463c-a0d7-670ccb0ffb1b
2025-04-19 15:17:19,955 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,955 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:17:19,957 - sqlalchemy.engine.Engine - INFO - [cached since 5.781s ago] ('a9c7fa5d-9fd9-463c-a0d7-670ccb0ffb1b',)
2025-04-19 15:17:19,957 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:17:19,958 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:17:19,958 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:17:19,959 - sqlalchemy.engine.Engine - INFO - [cached since 5.78s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 17, 19, 958470), 'a9c7fa5d-9fd9-463c-a0d7-670ccb0ffb1b')
2025-04-19 15:17:19,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,967 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,967 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:17:19,967 - sqlalchemy.engine.Engine - INFO - [cached since 5.757s ago] ('19c850a8-7658-40b1-91e0-65e0369651c5',)
2025-04-19 15:17:19,968 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 19c850a8-7658-40b1-91e0-65e0369651c5
2025-04-19 15:17:19,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,968 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:17:19,969 - services.execution.handlers.foundation - INFO - 任务 19c850a8-7658-40b1-91e0-65e0369651c5 打印: ['19c850a8-7658-40b1-91e0-65e0369651c5']
2025-04-19 15:17:19,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,969 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:17:19,971 - sqlalchemy.engine.Engine - INFO - [cached since 5.756s ago] ('b78a117b-b2e4-4907-9c87-58db5fa35141', 1, '{"success": true, "message": "打印成功", "output": {"message": ["19c850a8-7658-40b1-91e0-65e0369651c5"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '19c850a8-7658-40b1-91e0-65e0369651c5', datetime.datetime(2025, 4, 19, 15, 17, 19, 969620), datetime.datetime(2025, 4, 19, 15, 17, 19, 969620), 0)
2025-04-19 15:17:19,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,981 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:17:19,981 - sqlalchemy.engine.Engine - INFO - [cached since 5.805s ago] ('a9c7fa5d-9fd9-463c-a0d7-670ccb0ffb1b',)
2025-04-19 15:17:19,982 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:17:19,982 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:17:19,982 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:17:19,982 - sqlalchemy.engine.Engine - INFO - [cached since 5.759s ago] (datetime.datetime(2025, 4, 19, 15, 17, 19, 982131), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 17, 19, 982131), 'a9c7fa5d-9fd9-463c-a0d7-670ccb0ffb1b')
2025-04-19 15:17:19,983 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:19,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:19,993 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:17:19,994 - sqlalchemy.engine.Engine - INFO - [cached since 5.779s ago] ('3cc829e5-ffe0-4bfa-a658-82b5b49ff8cc', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["19c850a8-7658-40b1-91e0-65e0369651c5"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '19c850a8-7658-40b1-91e0-65e0369651c5', datetime.datetime(2025, 4, 19, 15, 17, 19, 993141), datetime.datetime(2025, 4, 19, 15, 17, 19, 993141), 0)
2025-04-19 15:17:19,994 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:20,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:20,002 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:17:20,002 - sqlalchemy.engine.Engine - INFO - [cached since 5.826s ago] ('85f9bf89-52e6-4885-8505-dd00959b82d3',)
2025-04-19 15:17:20,003 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:17:20,003 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:17:20,003 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:17:20,003 - sqlalchemy.engine.Engine - INFO - [cached since 5.78s ago] (datetime.datetime(2025, 4, 19, 15, 17, 20, 3130), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 17, 20, 3130), '85f9bf89-52e6-4885-8505-dd00959b82d3')
2025-04-19 15:17:20,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:20,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:20,012 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:17:20,013 - sqlalchemy.engine.Engine - INFO - [cached since 5.75s ago] (datetime.datetime(2025, 4, 19, 15, 17, 20, 11131), '任务执行成功', 1000, 93, datetime.datetime(2025, 4, 19, 15, 17, 20, 12131), '19c850a8-7658-40b1-91e0-65e0369651c5')
2025-04-19 15:17:20,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:20,020 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 19c850a8-7658-40b1-91e0-65e0369651c5, 结果: True
2025-04-19 15:17:22,173 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:17:22,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:22,175 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:17:22,175 - sqlalchemy.engine.Engine - INFO - [cached since 8.176s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:17:22,176 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:17:22,177 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1, datetime.datetime(2025, 4, 19, 15, 17, 22, 176540), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:17:22,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:22,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:17:22,193 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:17:22,194 - sqlalchemy.engine.Engine - INFO - [cached since 8.195s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:17:22,195 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:17:22,195 - sqlalchemy.engine.Engine - INFO - [cached since 8.189s ago] (0, datetime.datetime(2025, 4, 19, 15, 17, 22, 195433), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:17:22,196 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:17:22,204 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0309秒
2025-04-19 15:18:09,820 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:18:09,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:18:09,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:18:09,821 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:18:09,821 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:18:09,821 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:18:09,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:18:09,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:18:09,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:18:09,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:18:09,821 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:18:09,822 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 14, 18, 9, 820915))
2025-04-19 15:18:09,822 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:18:09,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:18:09,822 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:18:09,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:18:09,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:18:09,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:18:09,823 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:18:09,823 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:18:09,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:18:09,828 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:18:24,824 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:18:24,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:18:24,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:18:24,826 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:18:24,826 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:18:24,826 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:18:24,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:18:24,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:18:24,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:18:24,827 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:18:24,828 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:18:24,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:18:24,981 - root - INFO - 应用程序关闭中...
2025-04-19 15:18:24,981 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:18:24,981 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:18:24,981 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:18:24,981 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:18:24,982 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:18:24,982 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:18:24,982 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:18:24,982 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:18:24,982 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:18:24,982 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:18:24,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:18:24,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:18:24,982 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:18:24,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:18:24,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:18:24,983 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 3
2025-04-19 15:18:24,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:18:24,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:18:24,983 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 2
2025-04-19 15:18:24,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:18:24,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:18:24,983 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 1
2025-04-19 15:18:24,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:18:24,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:18:24,984 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 0
2025-04-19 15:18:24,984 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:18:24,984 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:18:24,984 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:18:24,984 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:18:24,984 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:18:24,984 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:18:24,985 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:18:26,178 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:18:26,178 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:18:26,244 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:18:26,295 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:18:26,327 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:18:26,352 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:18:26,352 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,352 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:18:26,353 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,353 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:18:26,353 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:18:26,354 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:18:26,354 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,355 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:18:26,355 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,356 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:18:26,356 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,358 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:18:26,358 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,359 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:18:26,359 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,359 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:18:26,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,361 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:18:26,361 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,361 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:18:26,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,362 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:18:26,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,363 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:18:26,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:18:26,365 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:18:26,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:18:26,366 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:18:26,730 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:18:26,730 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:18:26,730 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:18:26,731 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:18:26,731 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:18:26,731 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:18:26,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:18:26,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:18:26,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:18:26,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:18:26,732 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:18:26,732 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:18:26,732 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:18:26,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:18:26,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:18:26,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:18:26,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:18:26,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:18:26,735 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:18:26,735 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:18:26,736 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:18:26,737 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:18:26,737 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:18:26,738 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:18:26,738 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:18:26,738 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:18:26,739 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:18:26,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:18:26,750 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:18:26,751 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (1, 1)
2025-04-19 15:18:26,752 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:18:26,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:18:26,753 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:18:26,753 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:18:26,753 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:18:26,754 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:18:26,755 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:18:26,756 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1000, 2000, 2001)
2025-04-19 15:18:26,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:18:26,775 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:18:26,775 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:18:26,776 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:18:26,776 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:18:26,777 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:18:26,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:18:26,779 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:18:26,779 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] (1001, datetime.datetime(2025, 4, 19, 14, 18, 26, 754745))
2025-04-19 15:18:26,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:19:26,750 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:19:26,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:19:26,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:19:26,752 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:19:26,753 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:19:26,753 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:19:26,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:19:26,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:19:26,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:19:26,753 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:19:26,753 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:19:26,753 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:19:26,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:19:26,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:19:26,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:19:26,754 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:19:26,754 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:19:26,754 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:19:26,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:19:26,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:19:26,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:19:26,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:19:26,755 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:19:26,755 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:19:26,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:19:26,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:19:26,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:19:26,756 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:19:26,756 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:19:26,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:19:26,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:19:26,762 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:19:26,762 - sqlalchemy.engine.Engine - INFO - [cached since 59.98s ago] (1001, datetime.datetime(2025, 4, 19, 14, 19, 26, 761386))
2025-04-19 15:19:26,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:19:26,965 - root - INFO - 应用程序关闭中...
2025-04-19 15:19:26,965 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:19:26,965 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:19:26,965 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:19:26,965 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:19:26,966 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:19:26,966 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:19:26,966 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:19:26,966 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:19:26,966 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:19:26,966 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:19:26,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:19:26,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:19:26,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:19:26,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:19:26,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:19:26,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:19:26,969 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:19:26,969 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:19:26,969 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:19:26,969 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:19:26,969 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:19:26,969 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:19:26,969 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:19:28,143 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:19:28,144 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:19:28,202 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:19:28,253 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:19:28,276 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:19:28,277 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:19:28,278 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,278 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:19:28,278 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,279 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:19:28,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:19:28,279 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:19:28,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,281 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:19:28,281 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,282 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:19:28,282 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:19:28,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,288 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:19:28,289 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,294 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:19:28,294 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,295 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:19:28,295 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,296 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:19:28,296 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,297 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:19:28,297 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,298 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:19:28,298 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,299 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:19:28,300 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:19:28,302 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:19:28,302 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:19:28,692 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:19:28,692 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:19:28,692 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:19:28,693 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:19:28,693 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:19:28,693 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:19:28,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:19:28,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:19:28,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:19:28,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:19:28,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:19:28,694 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:19:28,694 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:19:28,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:19:28,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:19:28,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:19:28,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:19:28,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:19:28,696 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:19:28,696 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:19:28,697 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:19:28,698 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:19:28,698 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:19:28,699 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:19:28,699 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:19:28,699 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:19:28,699 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:19:28,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:19:28,709 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:19:28,709 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (1, 1)
2025-04-19 15:19:28,710 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:19:28,711 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:19:28,711 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:19:28,712 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:19:28,712 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:19:28,712 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:19:28,715 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:19:28,715 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1000, 2000, 2001)
2025-04-19 15:19:28,716 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:19:28,717 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:19:28,718 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:19:28,718 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:19:28,718 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:19:28,719 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:19:28,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:19:28,720 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:19:28,720 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1001, datetime.datetime(2025, 4, 19, 14, 19, 28, 712237))
2025-04-19 15:19:28,721 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:20:28,700 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:20:28,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:20:28,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:20:28,701 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:20:28,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:20:28,702 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:20:28,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:20:28,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:20:28,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:20:28,703 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:20:28,703 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:20:28,703 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:20:28,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:20:28,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:20:28,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:20:28,703 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:20:28,703 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:20:28,704 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:20:28,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:20:28,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:20:28,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:20:28,704 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:20:28,704 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:20:28,704 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:20:28,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:20:28,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:20:28,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:20:28,705 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:20:28,705 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:20:28,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:20:28,732 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:20:28,733 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:20:28,733 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 14, 20, 28, 732571))
2025-04-19 15:20:28,735 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:21:28,705 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:21:28,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:21:28,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:21:28,706 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:21:28,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:21:28,706 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:21:28,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:21:28,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:21:28,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:21:28,708 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:21:28,708 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:21:28,708 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:21:28,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:21:28,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:21:28,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:21:28,709 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:21:28,709 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:21:28,709 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:21:28,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:21:28,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:21:28,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:21:28,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:21:28,710 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:21:28,710 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:21:28,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:21:28,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:21:28,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:21:28,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:21:28,710 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:21:28,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:21:28,736 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:21:28,737 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:21:28,738 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 14, 21, 28, 736503))
2025-04-19 15:21:28,739 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:07,974 - root - INFO - 应用程序关闭中...
2025-04-19 15:22:07,974 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:22:07,974 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:22:07,975 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:22:07,975 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:22:07,975 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:22:07,975 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:22:07,975 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:22:07,975 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:22:07,975 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:22:07,976 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:22:07,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:22:07,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:22:07,976 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:22:07,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:22:07,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:22:07,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:22:07,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:22:07,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:22:07,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:22:07,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:22:07,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:22:07,978 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:22:07,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:22:07,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:22:07,978 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:22:07,978 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:22:07,978 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:22:07,979 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:22:07,979 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:22:07,979 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:22:07,979 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:22:07,979 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:22:10,600 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:22:10,601 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:22:11,354 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:22:11,355 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:22:11,414 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:22:11,467 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:22:11,490 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:22:11,491 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:22:11,492 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,492 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:22:11,492 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,493 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:22:11,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,493 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:11,494 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:22:11,494 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,495 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:22:11,495 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,496 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:22:11,497 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,497 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:22:11,498 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,499 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:22:11,499 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,501 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:22:11,501 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,502 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:22:11,502 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,504 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:22:11,504 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,505 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:22:11,505 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,506 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:22:11,506 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,507 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:22:11,507 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:22:11,508 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:11,508 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:22:11,882 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:22:11,882 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:22:11,882 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:22:11,882 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:22:11,882 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:22:11,882 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:22:11,883 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:22:11,883 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:22:11,883 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:22:11,883 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:22:11,883 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:22:11,883 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:22:11,883 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:22:11,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:22:11,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:22:11,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:22:11,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:22:11,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:22:11,885 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:22:11,885 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:22:11,886 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:22:11,886 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:22:11,887 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:22:11,887 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:22:11,887 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:22:11,888 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:22:11,888 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:22:11,888 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:11,898 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:22:11,898 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1, 1)
2025-04-19 15:22:11,899 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:22:11,899 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:11,900 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:22:11,900 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:22:11,900 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:22:11,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:11,902 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:22:11,903 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (1000, 2000, 2001)
2025-04-19 15:22:11,904 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:11,904 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:22:11,905 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:22:11,905 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:22:11,905 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:22:11,905 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:22:11,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:11,907 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:22:11,907 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1001, datetime.datetime(2025, 4, 19, 14, 22, 11, 900839))
2025-04-19 15:22:11,908 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,170 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:22:15,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,173 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:22:15,174 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:22:15,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,176 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:22:15,176 - sqlalchemy.engine.Engine - INFO - [cached since 0.002428s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:22:15,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,177 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:22:15,177 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:22:15,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,178 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:22:15,179 - sqlalchemy.engine.Engine - INFO - [cached since 0.005827s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:22:15,181 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:22:15,181 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1, datetime.datetime(2025, 4, 19, 15, 22, 15, 181679), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:22:15,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,193 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:22:15,193 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1, datetime.datetime(2025, 4, 19, 15, 22, 15, 193899), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:22:15,194 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,194 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:22:15,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,195 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:22:15,195 - sqlalchemy.engine.Engine - INFO - [cached since 0.02266s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:22:15,197 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:22:15,197 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('d38909a5-ff10-43b7-94f1-40abecafdd40', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 22, 15, 196903), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 22, 15, 197903), datetime.datetime(2025, 4, 19, 15, 22, 15, 197903), 0)
2025-04-19 15:22:15,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,207 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:15,207 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('d38909a5-ff10-43b7-94f1-40abecafdd40',)
2025-04-19 15:22:15,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,209 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 d38909a5-ff10-43b7-94f1-40abecafdd40 (优先级 1) 添加到队列 0
2025-04-19 15:22:15,209 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0393秒
2025-04-19 15:22:15,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: d38909a5-ff10-43b7-94f1-40abecafdd40, 优先级: 1
2025-04-19 15:22:15,269 - services.execution.task_executor - DEBUG - 任务 d38909a5-ff10-43b7-94f1-40abecafdd40 设置超时时间: 3600秒
2025-04-19 15:22:15,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,270 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:15,270 - sqlalchemy.engine.Engine - INFO - [cached since 0.06312s ago] ('d38909a5-ff10-43b7-94f1-40abecafdd40',)
2025-04-19 15:22:15,271 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:22:15,271 - sqlalchemy.engine.Engine - INFO - [cached since 0.09831s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:22:15,273 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:15,273 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (datetime.datetime(2025, 4, 19, 15, 22, 15, 272352), datetime.datetime(2025, 4, 19, 15, 22, 15, 272352), 'd38909a5-ff10-43b7-94f1-40abecafdd40')
2025-04-19 15:22:15,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,281 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:15,282 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 22, 15, 281360), 'd38909a5-ff10-43b7-94f1-40abecafdd40')
2025-04-19 15:22:15,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,290 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:22:15,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,292 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:22:15,292 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('fd416aaa-437f-4ffa-abde-4e70299b3b6b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd38909a5-ff10-43b7-94f1-40abecafdd40', datetime.datetime(2025, 4, 19, 15, 22, 15, 290352), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 22, 15, 292360), datetime.datetime(2025, 4, 19, 15, 22, 15, 292360), 0)
2025-04-19 15:22:15,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,303 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:22:15,303 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('fd416aaa-437f-4ffa-abde-4e70299b3b6b',)
2025-04-19 15:22:15,304 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:22:15,304 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:22:15,305 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:22:15,305 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 22, 15, 305352), 'fd416aaa-437f-4ffa-abde-4e70299b3b6b')
2025-04-19 15:22:15,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,314 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:22:15,314 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:22:15,314 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:22:15,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,316 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:22:15,316 - sqlalchemy.engine.Engine - INFO - [cached since 0.02405s ago] ('1474fc72-2bfd-438b-9af9-dea1f393351d', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd38909a5-ff10-43b7-94f1-40abecafdd40', datetime.datetime(2025, 4, 19, 15, 22, 15, 314352), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 22, 15, 316360), datetime.datetime(2025, 4, 19, 15, 22, 15, 316360), 0)
2025-04-19 15:22:15,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,325 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1474fc72-2bfd-438b-9af9-dea1f393351d
2025-04-19 15:22:15,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,327 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:22:15,327 - sqlalchemy.engine.Engine - INFO - [cached since 0.02371s ago] ('1474fc72-2bfd-438b-9af9-dea1f393351d',)
2025-04-19 15:22:15,327 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:22:15,328 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:22:15,328 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:22:15,328 - sqlalchemy.engine.Engine - INFO - [cached since 0.02301s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 22, 15, 328449), '1474fc72-2bfd-438b-9af9-dea1f393351d')
2025-04-19 15:22:15,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,337 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:22:15,337 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] ('d38909a5-ff10-43b7-94f1-40abecafdd40',)
2025-04-19 15:22:15,338 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: d38909a5-ff10-43b7-94f1-40abecafdd40
2025-04-19 15:22:15,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,339 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:22:15,339 - services.execution.handlers.foundation - INFO - 任务 d38909a5-ff10-43b7-94f1-40abecafdd40 打印: ['d38909a5-ff10-43b7-94f1-40abecafdd40']
2025-04-19 15:22:15,339 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,340 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:22:15,340 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('e8d3dae4-ea04-4831-888d-0b87bdea7a24', 1, '{"success": true, "message": "打印成功", "output": {"message": ["d38909a5-ff10-43b7-94f1-40abecafdd40"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd38909a5-ff10-43b7-94f1-40abecafdd40', datetime.datetime(2025, 4, 19, 15, 22, 15, 340366), datetime.datetime(2025, 4, 19, 15, 22, 15, 340366), 0)
2025-04-19 15:22:15,341 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,348 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,349 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:22:15,349 - sqlalchemy.engine.Engine - INFO - [cached since 0.04587s ago] ('1474fc72-2bfd-438b-9af9-dea1f393351d',)
2025-04-19 15:22:15,350 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:22:15,350 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:22:15,350 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:22:15,350 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 19, 15, 22, 15, 350363), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 22, 15, 350363), '1474fc72-2bfd-438b-9af9-dea1f393351d')
2025-04-19 15:22:15,351 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,357 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,357 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:22:15,358 - sqlalchemy.engine.Engine - INFO - [cached since 0.01773s ago] ('f0ae79e5-ec19-4b29-a87e-21112d861f40', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["d38909a5-ff10-43b7-94f1-40abecafdd40"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'd38909a5-ff10-43b7-94f1-40abecafdd40', datetime.datetime(2025, 4, 19, 15, 22, 15, 357360), datetime.datetime(2025, 4, 19, 15, 22, 15, 357360), 0)
2025-04-19 15:22:15,358 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,365 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:22:15,365 - sqlalchemy.engine.Engine - INFO - [cached since 0.0621s ago] ('fd416aaa-437f-4ffa-abde-4e70299b3b6b',)
2025-04-19 15:22:15,366 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:22:15,366 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:22:15,366 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:22:15,366 - sqlalchemy.engine.Engine - INFO - [cached since 0.01611s ago] (datetime.datetime(2025, 4, 19, 15, 22, 15, 366352), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 22, 15, 366352), 'fd416aaa-437f-4ffa-abde-4e70299b3b6b')
2025-04-19 15:22:15,367 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,377 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:15,380 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:15,380 - sqlalchemy.engine.Engine - INFO - [generated in 0.00091s] (datetime.datetime(2025, 4, 19, 15, 22, 15, 376352), '任务执行成功', 1000, 95, datetime.datetime(2025, 4, 19, 15, 22, 15, 380360), 'd38909a5-ff10-43b7-94f1-40abecafdd40')
2025-04-19 15:22:15,382 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:15,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: d38909a5-ff10-43b7-94f1-40abecafdd40, 结果: True
2025-04-19 15:22:21,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:21,908 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:22:21,908 - sqlalchemy.engine.Engine - INFO - [cached since 6.735s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:22:21,910 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:22:21,910 - sqlalchemy.engine.Engine - INFO - [cached since 6.713s ago] ('272e96f5-5f78-4284-a1c1-0df702904ec9', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 22, 21, 909244), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 22, 21, 910249), datetime.datetime(2025, 4, 19, 15, 22, 21, 910249), 0)
2025-04-19 15:22:21,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:21,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:21,927 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:21,927 - sqlalchemy.engine.Engine - INFO - [cached since 6.72s ago] ('272e96f5-5f78-4284-a1c1-0df702904ec9',)
2025-04-19 15:22:21,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:21,929 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 272e96f5-5f78-4284-a1c1-0df702904ec9 (优先级 1) 添加到队列 0
2025-04-19 15:22:21,930 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:22:21,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 272e96f5-5f78-4284-a1c1-0df702904ec9, 优先级: 1
2025-04-19 15:22:21,955 - services.execution.task_executor - DEBUG - 任务 272e96f5-5f78-4284-a1c1-0df702904ec9 设置超时时间: 3600秒
2025-04-19 15:22:21,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:21,957 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:21,957 - sqlalchemy.engine.Engine - INFO - [cached since 6.75s ago] ('272e96f5-5f78-4284-a1c1-0df702904ec9',)
2025-04-19 15:22:21,958 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:22:21,959 - sqlalchemy.engine.Engine - INFO - [cached since 6.786s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:22:21,960 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:21,960 - sqlalchemy.engine.Engine - INFO - [cached since 6.687s ago] (datetime.datetime(2025, 4, 19, 15, 22, 21, 959158), datetime.datetime(2025, 4, 19, 15, 22, 21, 960200), '272e96f5-5f78-4284-a1c1-0df702904ec9')
2025-04-19 15:22:21,961 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:21,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:21,969 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:21,969 - sqlalchemy.engine.Engine - INFO - [cached since 6.688s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 22, 21, 969163), '272e96f5-5f78-4284-a1c1-0df702904ec9')
2025-04-19 15:22:21,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:21,978 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:22:21,978 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:21,979 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:22:21,979 - sqlalchemy.engine.Engine - INFO - [cached since 6.687s ago] ('5489e2d4-7fef-471f-841e-06cf77055337', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '272e96f5-5f78-4284-a1c1-0df702904ec9', datetime.datetime(2025, 4, 19, 15, 22, 21, 978137), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 22, 21, 978137), datetime.datetime(2025, 4, 19, 15, 22, 21, 978137), 0)
2025-04-19 15:22:21,979 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:21,985 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:21,985 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:22:21,986 - sqlalchemy.engine.Engine - INFO - [cached since 6.682s ago] ('5489e2d4-7fef-471f-841e-06cf77055337',)
2025-04-19 15:22:21,986 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:22:21,986 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:22:21,987 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:22:21,987 - sqlalchemy.engine.Engine - INFO - [cached since 6.682s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 22, 21, 987138), '5489e2d4-7fef-471f-841e-06cf77055337')
2025-04-19 15:22:21,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:21,995 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:22:21,996 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:22:21,996 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:22:21,997 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:21,998 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:22:21,998 - sqlalchemy.engine.Engine - INFO - [cached since 6.706s ago] ('a6541174-929e-48ca-b732-ba0715709bf9', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '272e96f5-5f78-4284-a1c1-0df702904ec9', datetime.datetime(2025, 4, 19, 15, 22, 21, 996136), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 22, 21, 998137), datetime.datetime(2025, 4, 19, 15, 22, 21, 998137), 0)
2025-04-19 15:22:21,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,006 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a6541174-929e-48ca-b732-ba0715709bf9
2025-04-19 15:22:22,006 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:22,007 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:22:22,007 - sqlalchemy.engine.Engine - INFO - [cached since 6.704s ago] ('a6541174-929e-48ca-b732-ba0715709bf9',)
2025-04-19 15:22:22,008 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:22:22,008 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:22:22,009 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:22:22,009 - sqlalchemy.engine.Engine - INFO - [cached since 6.704s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 22, 22, 8137), 'a6541174-929e-48ca-b732-ba0715709bf9')
2025-04-19 15:22:22,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,017 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:22,017 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:22:22,017 - sqlalchemy.engine.Engine - INFO - [cached since 6.68s ago] ('272e96f5-5f78-4284-a1c1-0df702904ec9',)
2025-04-19 15:22:22,018 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 272e96f5-5f78-4284-a1c1-0df702904ec9
2025-04-19 15:22:22,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,019 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:22:22,020 - services.execution.handlers.foundation - INFO - 任务 272e96f5-5f78-4284-a1c1-0df702904ec9 打印: ['272e96f5-5f78-4284-a1c1-0df702904ec9']
2025-04-19 15:22:22,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:22,020 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:22:22,021 - sqlalchemy.engine.Engine - INFO - [cached since 6.68s ago] ('c6253106-2d6e-4a16-9f2e-6952b67a4cda', 1, '{"success": true, "message": "打印成功", "output": {"message": ["272e96f5-5f78-4284-a1c1-0df702904ec9"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '272e96f5-5f78-4284-a1c1-0df702904ec9', datetime.datetime(2025, 4, 19, 15, 22, 22, 20137), datetime.datetime(2025, 4, 19, 15, 22, 22, 20137), 0)
2025-04-19 15:22:22,021 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:22,027 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:22:22,027 - sqlalchemy.engine.Engine - INFO - [cached since 6.724s ago] ('a6541174-929e-48ca-b732-ba0715709bf9',)
2025-04-19 15:22:22,028 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:22:22,028 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:22:22,028 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:22:22,028 - sqlalchemy.engine.Engine - INFO - [cached since 6.678s ago] (datetime.datetime(2025, 4, 19, 15, 22, 22, 28145), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 22, 22, 28145), 'a6541174-929e-48ca-b732-ba0715709bf9')
2025-04-19 15:22:22,029 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:22,037 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:22:22,038 - sqlalchemy.engine.Engine - INFO - [cached since 6.698s ago] ('f80f59fc-4089-4c96-a20f-c97f601fa8c4', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["272e96f5-5f78-4284-a1c1-0df702904ec9"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '272e96f5-5f78-4284-a1c1-0df702904ec9', datetime.datetime(2025, 4, 19, 15, 22, 22, 37136), datetime.datetime(2025, 4, 19, 15, 22, 22, 37136), 0)
2025-04-19 15:22:22,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,046 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:22,047 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:22:22,047 - sqlalchemy.engine.Engine - INFO - [cached since 6.744s ago] ('5489e2d4-7fef-471f-841e-06cf77055337',)
2025-04-19 15:22:22,048 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:22:22,048 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:22:22,049 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:22:22,049 - sqlalchemy.engine.Engine - INFO - [cached since 6.699s ago] (datetime.datetime(2025, 4, 19, 15, 22, 22, 48137), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 22, 22, 49145), '5489e2d4-7fef-471f-841e-06cf77055337')
2025-04-19 15:22:22,050 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:22,058 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:22:22,058 - sqlalchemy.engine.Engine - INFO - [cached since 6.679s ago] (datetime.datetime(2025, 4, 19, 15, 22, 22, 57144), '任务执行成功', 1000, 87, datetime.datetime(2025, 4, 19, 15, 22, 22, 58262), '272e96f5-5f78-4284-a1c1-0df702904ec9')
2025-04-19 15:22:22,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 272e96f5-5f78-4284-a1c1-0df702904ec9, 结果: True
2025-04-19 15:22:22,785 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:22:22,786 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:22,786 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:22:22,786 - sqlalchemy.engine.Engine - INFO - [cached since 7.614s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:22:22,788 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:22:22,789 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (1, datetime.datetime(2025, 4, 19, 15, 22, 22, 788176), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:22:22,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,797 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:22:22,797 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:22:22,798 - sqlalchemy.engine.Engine - INFO - [cached since 7.625s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:22:22,799 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:22:22,800 - sqlalchemy.engine.Engine - INFO - [cached since 7.618s ago] (0, datetime.datetime(2025, 4, 19, 15, 22, 22, 799180), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:22:22,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:22:22,807 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 400 耗时: 0.0219秒
2025-04-19 15:23:11,890 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:23:11,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:23:11,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:23:11,891 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:23:11,891 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:23:11,891 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:23:11,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:23:11,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:23:11,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:23:11,892 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:23:11,892 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:23:11,892 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (1001, datetime.datetime(2025, 4, 19, 14, 23, 11, 890198))
2025-04-19 15:23:11,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:23:11,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:23:11,893 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:23:11,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:23:11,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:23:11,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:23:11,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:23:11,894 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:23:11,894 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:23:11,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:23:11,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:23:11,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:23:11,895 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:23:11,895 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:23:11,895 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:23:11,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:23:26,896 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:23:26,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:23:26,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:23:26,896 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:23:26,896 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:23:26,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:24:11,888 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:24:11,889 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:24:11,889 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 14, 24, 11, 888270))
2025-04-19 15:24:11,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:24:26,905 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:24:26,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:24:26,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:24:26,905 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:24:26,907 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:24:26,907 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:24:26,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:24:26,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:24:26,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:24:26,907 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:24:26,908 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:24:26,908 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:24:26,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:24:26,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:24:26,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:24:26,908 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:24:26,908 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:24:26,908 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:24:26,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:24:26,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:24:26,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:24:26,909 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:24:26,909 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:24:26,909 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:24:26,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:24:26,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:24:26,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:24:26,909 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:24:26,909 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:24:26,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:25:11,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:25:11,912 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:25:11,912 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 14, 25, 11, 911518))
2025-04-19 15:25:11,914 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:25:12,051 - root - INFO - 应用程序关闭中...
2025-04-19 15:25:12,051 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:25:12,051 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:25:12,051 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:25:12,052 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:25:12,052 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:25:12,052 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:25:12,052 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:25:12,052 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:25:12,053 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:25:12,053 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:25:12,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:25:12,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:25:12,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:25:12,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:25:12,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:25:12,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-19 15:25:12,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:25:12,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:25:12,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-19 15:25:12,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:25:12,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:25:12,054 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-19 15:25:12,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:25:12,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:25:12,054 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-19 15:25:12,054 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:25:12,055 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:25:12,055 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:25:12,055 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:25:12,055 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:25:12,055 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:25:12,056 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:25:13,504 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:25:14,313 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:25:14,314 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:25:14,373 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:25:14,424 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:25:14,449 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:25:14,451 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:25:14,451 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,452 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:25:14,452 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,453 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:25:14,454 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:25:14,455 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:25:14,455 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,456 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:25:14,456 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,457 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:25:14,457 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,459 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:25:14,459 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,460 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:25:14,460 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,462 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:25:14,462 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,463 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:25:14,463 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,465 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:25:14,465 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,466 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:25:14,466 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,468 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:25:14,468 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,469 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:25:14,469 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:25:14,471 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:25:14,472 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:25:14,835 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:25:14,835 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:25:14,836 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:25:14,836 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:25:14,836 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:25:14,837 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:25:14,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:25:14,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:25:14,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:25:14,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:25:14,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:25:14,839 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:25:14,839 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:25:14,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:25:14,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:25:14,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:25:14,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:25:14,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:25:14,840 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:25:14,840 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:25:14,842 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:25:14,842 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:25:14,842 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:25:14,844 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:25:14,844 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:25:14,844 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:25:14,844 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:25:14,845 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:25:14,854 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:25:14,854 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (1, 1)
2025-04-19 15:25:14,855 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:25:14,855 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:25:14,856 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:25:14,856 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:25:14,856 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:25:14,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:25:14,858 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:25:14,858 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1000, 2000, 2001)
2025-04-19 15:25:14,859 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:25:14,860 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:25:14,860 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:25:14,861 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:25:14,861 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1001, datetime.datetime(2025, 4, 19, 14, 25, 14, 856340))
2025-04-19 15:25:14,861 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:25:14,861 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:25:14,861 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:25:14,861 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:25:14,862 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:26:14,877 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:26:14,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:26:14,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:26:14,878 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:26:14,878 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:26:14,878 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:26:14,879 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:26:14,879 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:26:14,879 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 19, 14, 26, 14, 877163))
2025-04-19 15:26:14,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:26:14,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:26:14,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:26:14,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:26:14,880 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:26:14,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:26:14,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:26:14,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:26:14,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:26:14,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:26:14,880 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:26:14,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:26:14,880 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:26:14,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:26:14,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:26:14,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:26:14,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:26:14,881 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:26:14,881 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:26:14,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:26:14,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:26:14,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:26:14,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:26:14,881 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:26:14,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:26:14,985 - root - INFO - 应用程序关闭中...
2025-04-19 15:26:14,985 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:26:14,985 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:26:14,985 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:26:14,985 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:26:14,986 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:26:14,986 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:26:14,986 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:26:14,986 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:26:14,986 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:26:14,986 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:26:14,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:26:14,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:26:14,987 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:26:14,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:26:14,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:26:14,987 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:26:14,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:26:14,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:26:14,988 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:26:14,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:26:14,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:26:14,988 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:26:14,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:26:14,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:26:14,988 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:26:14,988 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:26:14,988 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:26:14,990 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:26:14,990 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:26:14,990 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:26:14,990 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:26:14,990 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:26:16,251 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:26:17,059 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:26:17,059 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:26:17,122 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:26:17,174 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:26:17,197 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:26:17,224 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:26:17,224 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,224 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:26:17,224 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,225 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:26:17,225 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,226 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:26:17,226 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:26:17,226 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,227 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:26:17,227 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,228 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:26:17,228 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,229 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:26:17,230 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,231 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:26:17,231 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,232 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:26:17,232 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,233 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:26:17,233 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,233 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:26:17,234 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,235 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:26:17,235 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,237 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:26:17,237 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,238 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:26:17,239 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:26:17,240 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:26:17,241 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:26:17,600 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:26:17,600 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:26:17,600 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:26:17,600 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:26:17,600 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:26:17,600 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:26:17,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:26:17,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:26:17,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:26:17,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:26:17,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:26:17,601 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:26:17,601 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:26:17,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:26:17,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:26:17,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:26:17,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:26:17,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:26:17,604 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:26:17,604 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:26:17,630 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:26:17,631 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:26:17,631 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:26:17,632 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:26:17,632 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:26:17,633 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:26:17,633 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:26:17,634 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:26:17,643 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:26:17,643 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (1, 1)
2025-04-19 15:26:17,644 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:26:17,644 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:26:17,646 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:26:17,646 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:26:17,646 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:26:17,647 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:26:17,648 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:26:17,648 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1000, 2000, 2001)
2025-04-19 15:26:17,650 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:26:17,651 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:26:17,652 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:26:17,652 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:26:17,653 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:26:17,653 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:26:17,653 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:26:17,654 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:26:17,654 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1001, datetime.datetime(2025, 4, 19, 14, 26, 17, 646500))
2025-04-19 15:26:17,655 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:27:17,621 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:27:17,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:27:17,622 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:27:17,622 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:27:17,622 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:27:17,623 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:27:17,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:27:17,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:27:17,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:27:17,623 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:27:17,624 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:27:17,624 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:27:17,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:27:17,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:27:17,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:27:17,624 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:27:17,624 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:27:17,625 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:27:17,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:27:17,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:27:17,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:27:17,625 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:27:17,625 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:27:17,625 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:27:17,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:27:17,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:27:17,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:27:17,625 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:27:17,625 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:27:17,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:27:17,667 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:27:17,668 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:27:17,668 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 14, 27, 17, 667842))
2025-04-19 15:27:17,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:28:17,660 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:28:17,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:28:17,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:28:17,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:28:17,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:28:17,662 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:28:17,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:28:17,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:28:17,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:28:17,662 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:28:17,663 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:28:17,663 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:28:17,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:28:17,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:28:17,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:28:17,663 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:28:17,663 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:28:17,663 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:28:17,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:28:17,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:28:17,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:28:17,664 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:28:17,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:28:17,665 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:28:17,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:28:17,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:28:17,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:28:17,665 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:28:17,665 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:28:17,673 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:28:17,674 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:28:17,674 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:28:17,675 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 14, 28, 17, 673696))
2025-04-19 15:28:17,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:29:17,687 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:29:17,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:29:17,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:29:17,688 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:29:17,688 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:29:17,689 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:29:17,689 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:29:17,689 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:29:17,689 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 14, 29, 17, 687302))
2025-04-19 15:29:17,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:29:17,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:29:17,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:29:17,690 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:29:17,690 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:29:17,690 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:29:17,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:29:17,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:29:17,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:29:17,691 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:29:17,691 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:29:17,691 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:29:17,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:29:17,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:29:17,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:29:17,691 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:29:17,692 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:29:17,692 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:29:17,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:29:17,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:29:17,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:29:17,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:29:17,692 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:29:17,692 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:29:17,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:30:17,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:17,688 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:30:17,688 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (1001, datetime.datetime(2025, 4, 19, 14, 30, 17, 686848))
2025-04-19 15:30:17,691 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:17,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:30:17,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:30:17,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:30:17,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:30:17,736 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:30:17,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:30:17,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:30:17,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:30:17,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:30:17,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:30:17,738 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:30:17,738 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:30:17,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:30:17,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:30:17,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:30:17,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:30:17,739 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:30:17,739 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:30:17,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:30:17,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:30:17,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:30:17,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:30:17,740 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:30:17,740 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:30:17,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:30:17,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:30:17,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:30:17,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:30:17,742 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:30:17,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:30:17,843 - root - INFO - 应用程序关闭中...
2025-04-19 15:30:17,844 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:30:17,844 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:30:17,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:30:17,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:30:17,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:30:17,844 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:30:17,844 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:30:17,844 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:30:17,845 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:30:17,845 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:30:17,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:30:17,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:30:17,846 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:30:17,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:30:17,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:30:17,847 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:30:17,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:30:17,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:30:17,847 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:30:17,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:30:17,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:30:17,848 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:30:17,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:30:17,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:30:17,848 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:30:17,848 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:30:17,848 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:30:17,849 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:30:17,849 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:30:17,849 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:30:17,849 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:30:17,849 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:30:19,141 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:30:19,141 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:30:19,201 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:30:19,261 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:30:19,305 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:30:19,319 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:30:19,321 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,322 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:30:19,322 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,323 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:30:19,323 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,324 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:19,324 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:30:19,324 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,325 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:30:19,325 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,327 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:30:19,328 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,330 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:30:19,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,331 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:30:19,331 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,334 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:30:19,335 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,336 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:30:19,336 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,337 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:30:19,337 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,338 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:30:19,338 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,339 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:30:19,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,341 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:30:19,341 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:19,341 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:19,342 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:30:19,746 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:30:19,747 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:30:19,747 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:30:19,747 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:30:19,747 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:30:19,747 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:30:19,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:30:19,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:30:19,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:30:19,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:30:19,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:30:19,747 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:30:19,748 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:30:19,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:30:19,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:30:19,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:30:19,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:30:19,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:30:19,751 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:30:19,751 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:30:19,774 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:30:19,775 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:30:19,776 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:30:19,777 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:30:19,777 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:30:19,777 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:30:19,778 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:30:19,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:19,789 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:30:19,789 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, 1)
2025-04-19 15:30:19,790 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:30:19,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:19,791 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:30:19,791 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:30:19,791 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:30:19,792 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:19,793 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:30:19,793 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (1000, 2000, 2001)
2025-04-19 15:30:19,794 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:30:19,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:19,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:19,796 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:30:19,797 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (1001, datetime.datetime(2025, 4, 19, 14, 30, 19, 791800))
2025-04-19 15:30:19,798 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:30:19,799 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:30:19,799 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:30:19,799 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:30:19,801 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:19,801 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:30:19,801 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:30:19,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:30:19,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:30:19,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:30:19,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:30:19,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:30:19,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:30:19,804 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:30:19,805 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:30:19,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:30:19,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:30:19,805 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:30:19,805 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:30:19,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:30:19,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:30:19,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:30:19,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:30:20,671 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:30:20,671 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:30:20,743 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:30:20,789 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:30:20,826 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:30:20,850 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:30:20,851 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,851 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:30:20,852 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,852 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:30:20,853 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,853 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:20,853 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:30:20,854 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,855 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:30:20,855 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,859 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:30:20,859 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,860 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:30:20,860 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,864 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:30:20,864 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,866 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:30:20,867 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,867 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:30:20,868 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,869 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:30:20,869 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,872 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:30:20,872 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,875 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:30:20,875 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,876 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:30:20,876 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:20,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:20,877 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:30:21,230 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:30:21,230 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:30:21,231 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:30:21,231 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:30:21,231 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:30:21,232 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:30:21,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:30:21,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:30:21,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:30:21,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:30:21,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:30:21,232 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:30:21,232 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:30:21,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:30:21,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:30:21,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:30:21,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:30:21,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:30:21,235 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:30:21,235 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:30:21,236 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:30:21,237 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:30:21,237 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:30:21,238 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:30:21,238 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:30:21,238 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:30:21,239 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:30:21,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:21,247 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:30:21,248 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (1, 1)
2025-04-19 15:30:21,249 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:30:21,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:21,251 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:30:21,251 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:30:21,251 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:30:21,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:21,253 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:30:21,254 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (1000, 2000, 2001)
2025-04-19 15:30:21,276 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:21,276 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:30:21,277 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:30:21,277 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:30:21,277 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:30:21,277 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:30:21,278 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:21,279 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:30:21,279 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1001, datetime.datetime(2025, 4, 19, 14, 30, 21, 251553))
2025-04-19 15:30:21,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:47,330 - root - INFO - 应用程序关闭中...
2025-04-19 15:30:47,331 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:30:47,331 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:30:47,331 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:30:47,331 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:30:47,331 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:30:47,331 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:30:47,331 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:30:47,331 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:30:47,332 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:30:47,332 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:30:47,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:30:47,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:30:47,332 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:30:47,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:30:47,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:30:47,332 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:30:47,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:30:47,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:30:47,332 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:30:47,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:30:47,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:30:47,333 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:30:47,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:30:47,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:30:47,335 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:30:47,335 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:30:47,335 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:30:47,335 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:30:47,335 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:30:47,335 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:30:47,335 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:30:47,335 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:30:48,460 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:30:48,461 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:30:48,525 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:30:48,590 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:30:48,623 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:30:48,644 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:30:48,646 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,648 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:30:48,648 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,649 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:30:48,650 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:48,650 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:30:48,651 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,651 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:30:48,654 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,668 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:30:48,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:30:48,674 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,675 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:30:48,675 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,676 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:30:48,677 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,677 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:30:48,677 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,679 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:30:48,679 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,680 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:30:48,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,683 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:30:48,684 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,685 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:30:48,685 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:30:48,688 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:48,689 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:30:49,021 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:30:49,021 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:30:49,021 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:30:49,022 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:30:49,022 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:30:49,022 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:30:49,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:30:49,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:30:49,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:30:49,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:30:49,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:30:49,023 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:30:49,023 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:30:49,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:30:49,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:30:49,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:30:49,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:30:49,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:30:49,025 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:30:49,025 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:30:49,026 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:30:49,027 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:30:49,027 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:30:49,028 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:30:49,028 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:30:49,028 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:30:49,028 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:30:49,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:49,036 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:30:49,036 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (1, 1)
2025-04-19 15:30:49,038 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:30:49,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:49,038 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:30:49,038 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:30:49,038 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:30:49,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:49,041 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:30:49,041 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1000, 2000, 2001)
2025-04-19 15:30:49,042 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:30:49,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:49,043 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:30:49,043 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:30:49,043 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:30:49,044 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:30:49,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:49,044 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:30:49,044 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] (1001, datetime.datetime(2025, 4, 19, 14, 30, 49, 38933))
2025-04-19 15:30:49,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,095 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:30:54,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,097 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:30:54,098 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:30:54,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,100 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:30:54,101 - sqlalchemy.engine.Engine - INFO - [cached since 0.003438s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:30:54,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,102 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:30:54,102 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:30:54,103 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,103 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:30:54,103 - sqlalchemy.engine.Engine - INFO - [cached since 0.005984s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:30:54,105 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:30:54,105 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, datetime.datetime(2025, 4, 19, 15, 30, 54, 105637), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:30:54,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,115 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:30:54,116 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1, datetime.datetime(2025, 4, 19, 15, 30, 54, 115641), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:30:54,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,117 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:30:54,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,118 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:30:54,118 - sqlalchemy.engine.Engine - INFO - [cached since 0.02069s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:30:54,119 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:30:54,120 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('532fb668-febd-4a11-bf36-0c3fb4d7de77', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 30, 54, 118629), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 30, 54, 119637), datetime.datetime(2025, 4, 19, 15, 30, 54, 119637), 0)
2025-04-19 15:30:54,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,127 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,128 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:54,128 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('532fb668-febd-4a11-bf36-0c3fb4d7de77',)
2025-04-19 15:30:54,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,130 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 532fb668-febd-4a11-bf36-0c3fb4d7de77 (优先级 1) 添加到队列 0
2025-04-19 15:30:54,130 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0351秒
2025-04-19 15:30:54,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 532fb668-febd-4a11-bf36-0c3fb4d7de77, 优先级: 1
2025-04-19 15:30:54,239 - services.execution.task_executor - DEBUG - 任务 532fb668-febd-4a11-bf36-0c3fb4d7de77 设置超时时间: 3600秒
2025-04-19 15:30:54,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,240 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:54,240 - sqlalchemy.engine.Engine - INFO - [cached since 0.1118s ago] ('532fb668-febd-4a11-bf36-0c3fb4d7de77',)
2025-04-19 15:30:54,241 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:30:54,241 - sqlalchemy.engine.Engine - INFO - [cached since 0.1438s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:30:54,243 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:54,243 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 19, 15, 30, 54, 242117), datetime.datetime(2025, 4, 19, 15, 30, 54, 243102), '532fb668-febd-4a11-bf36-0c3fb4d7de77')
2025-04-19 15:30:54,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,252 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:54,252 - sqlalchemy.engine.Engine - INFO - [generated in 0.00018s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 30, 54, 252102), '532fb668-febd-4a11-bf36-0c3fb4d7de77')
2025-04-19 15:30:54,253 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,259 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:30:54,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,261 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:30:54,261 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('8a1c6a05-f99c-41de-a016-653a2058e147', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '532fb668-febd-4a11-bf36-0c3fb4d7de77', datetime.datetime(2025, 4, 19, 15, 30, 54, 259115), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 30, 54, 261181), datetime.datetime(2025, 4, 19, 15, 30, 54, 261181), 0)
2025-04-19 15:30:54,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,268 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,269 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:30:54,269 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('8a1c6a05-f99c-41de-a016-653a2058e147',)
2025-04-19 15:30:54,270 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:30:54,270 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:30:54,270 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:30:54,271 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 30, 54, 270187), '8a1c6a05-f99c-41de-a016-653a2058e147')
2025-04-19 15:30:54,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,279 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:30:54,280 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:30:54,280 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:30:54,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,281 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:30:54,281 - sqlalchemy.engine.Engine - INFO - [cached since 0.02076s ago] ('b6f49399-fb48-41d7-978d-c733c48d5da6', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '532fb668-febd-4a11-bf36-0c3fb4d7de77', datetime.datetime(2025, 4, 19, 15, 30, 54, 281103), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 30, 54, 281103), datetime.datetime(2025, 4, 19, 15, 30, 54, 281103), 0)
2025-04-19 15:30:54,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,289 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b6f49399-fb48-41d7-978d-c733c48d5da6
2025-04-19 15:30:54,289 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,289 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:30:54,289 - sqlalchemy.engine.Engine - INFO - [cached since 0.0206s ago] ('b6f49399-fb48-41d7-978d-c733c48d5da6',)
2025-04-19 15:30:54,290 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:30:54,290 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:30:54,291 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:30:54,291 - sqlalchemy.engine.Engine - INFO - [cached since 0.02031s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 30, 54, 291102), 'b6f49399-fb48-41d7-978d-c733c48d5da6')
2025-04-19 15:30:54,291 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,298 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,298 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:30:54,298 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] ('532fb668-febd-4a11-bf36-0c3fb4d7de77',)
2025-04-19 15:30:54,299 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 532fb668-febd-4a11-bf36-0c3fb4d7de77
2025-04-19 15:30:54,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,300 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:30:54,301 - services.execution.handlers.foundation - INFO - 任务 532fb668-febd-4a11-bf36-0c3fb4d7de77 打印: ['532fb668-febd-4a11-bf36-0c3fb4d7de77']
2025-04-19 15:30:54,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,302 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:30:54,302 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('3c28138a-471e-4f31-bfcb-02fdd2fda8cc', 1, '{"success": true, "message": "打印成功", "output": {"message": ["532fb668-febd-4a11-bf36-0c3fb4d7de77"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '532fb668-febd-4a11-bf36-0c3fb4d7de77', datetime.datetime(2025, 4, 19, 15, 30, 54, 302224), datetime.datetime(2025, 4, 19, 15, 30, 54, 302224), 0)
2025-04-19 15:30:54,303 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,310 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,310 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:30:54,311 - sqlalchemy.engine.Engine - INFO - [cached since 0.04199s ago] ('b6f49399-fb48-41d7-978d-c733c48d5da6',)
2025-04-19 15:30:54,311 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:30:54,312 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:30:54,312 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:30:54,313 - sqlalchemy.engine.Engine - INFO - [generated in 0.00149s] (datetime.datetime(2025, 4, 19, 15, 30, 54, 312201), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 30, 54, 312201), 'b6f49399-fb48-41d7-978d-c733c48d5da6')
2025-04-19 15:30:54,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,322 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:30:54,322 - sqlalchemy.engine.Engine - INFO - [cached since 0.02005s ago] ('91498e23-3be4-4b19-8b4c-5352a44ceaab', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["532fb668-febd-4a11-bf36-0c3fb4d7de77"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '532fb668-febd-4a11-bf36-0c3fb4d7de77', datetime.datetime(2025, 4, 19, 15, 30, 54, 322200), datetime.datetime(2025, 4, 19, 15, 30, 54, 322200), 0)
2025-04-19 15:30:54,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,329 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,329 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:30:54,329 - sqlalchemy.engine.Engine - INFO - [cached since 0.06081s ago] ('8a1c6a05-f99c-41de-a016-653a2058e147',)
2025-04-19 15:30:54,330 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:30:54,330 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:30:54,331 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:30:54,331 - sqlalchemy.engine.Engine - INFO - [cached since 0.01921s ago] (datetime.datetime(2025, 4, 19, 15, 30, 54, 331179), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 30, 54, 331179), '8a1c6a05-f99c-41de-a016-653a2058e147')
2025-04-19 15:30:54,332 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:54,341 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:54,341 - sqlalchemy.engine.Engine - INFO - [generated in 0.00018s] (datetime.datetime(2025, 4, 19, 15, 30, 54, 340193), '任务执行成功', 1000, 89, datetime.datetime(2025, 4, 19, 15, 30, 54, 341198), '532fb668-febd-4a11-bf36-0c3fb4d7de77')
2025-04-19 15:30:54,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:54,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 532fb668-febd-4a11-bf36-0c3fb4d7de77, 结果: True
2025-04-19 15:30:59,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,034 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:30:59,034 - sqlalchemy.engine.Engine - INFO - [cached since 4.937s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:30:59,038 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:30:59,038 - sqlalchemy.engine.Engine - INFO - [cached since 4.918s ago] ('e99499db-fe87-4996-a179-3e265b1ea781', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 30, 59, 37006), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 30, 59, 38023), datetime.datetime(2025, 4, 19, 15, 30, 59, 38023), 0)
2025-04-19 15:30:59,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,056 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:59,056 - sqlalchemy.engine.Engine - INFO - [cached since 4.929s ago] ('e99499db-fe87-4996-a179-3e265b1ea781',)
2025-04-19 15:30:59,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,060 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 e99499db-fe87-4996-a179-3e265b1ea781 (优先级 1) 添加到队列 0
2025-04-19 15:30:59,060 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:30:59,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: e99499db-fe87-4996-a179-3e265b1ea781, 优先级: 1
2025-04-19 15:30:59,140 - services.execution.task_executor - DEBUG - 任务 e99499db-fe87-4996-a179-3e265b1ea781 设置超时时间: 3600秒
2025-04-19 15:30:59,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,141 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:59,142 - sqlalchemy.engine.Engine - INFO - [cached since 5.014s ago] ('e99499db-fe87-4996-a179-3e265b1ea781',)
2025-04-19 15:30:59,142 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:30:59,143 - sqlalchemy.engine.Engine - INFO - [cached since 5.046s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:30:59,143 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:59,143 - sqlalchemy.engine.Engine - INFO - [cached since 4.902s ago] (datetime.datetime(2025, 4, 19, 15, 30, 59, 143985), datetime.datetime(2025, 4, 19, 15, 30, 59, 143985), 'e99499db-fe87-4996-a179-3e265b1ea781')
2025-04-19 15:30:59,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,153 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,153 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:59,153 - sqlalchemy.engine.Engine - INFO - [cached since 4.902s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 30, 59, 153453), 'e99499db-fe87-4996-a179-3e265b1ea781')
2025-04-19 15:30:59,154 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,162 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:30:59,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,163 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:30:59,163 - sqlalchemy.engine.Engine - INFO - [cached since 4.903s ago] ('923ee585-f4eb-4be5-90db-892a65287668', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e99499db-fe87-4996-a179-3e265b1ea781', datetime.datetime(2025, 4, 19, 15, 30, 59, 162275), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 30, 59, 163384), datetime.datetime(2025, 4, 19, 15, 30, 59, 163384), 0)
2025-04-19 15:30:59,164 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,172 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:30:59,173 - sqlalchemy.engine.Engine - INFO - [cached since 4.904s ago] ('923ee585-f4eb-4be5-90db-892a65287668',)
2025-04-19 15:30:59,173 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:30:59,173 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:30:59,173 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:30:59,174 - sqlalchemy.engine.Engine - INFO - [cached since 4.903s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 30, 59, 173265), '923ee585-f4eb-4be5-90db-892a65287668')
2025-04-19 15:30:59,174 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,183 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:30:59,183 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:30:59,183 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:30:59,183 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,184 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:30:59,185 - sqlalchemy.engine.Engine - INFO - [cached since 4.925s ago] ('bd8c6670-bec6-406d-a6a7-dced6de85bc8', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e99499db-fe87-4996-a179-3e265b1ea781', datetime.datetime(2025, 4, 19, 15, 30, 59, 183354), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 30, 59, 184259), datetime.datetime(2025, 4, 19, 15, 30, 59, 184259), 0)
2025-04-19 15:30:59,186 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,198 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: bd8c6670-bec6-406d-a6a7-dced6de85bc8
2025-04-19 15:30:59,199 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,199 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:30:59,200 - sqlalchemy.engine.Engine - INFO - [cached since 4.931s ago] ('bd8c6670-bec6-406d-a6a7-dced6de85bc8',)
2025-04-19 15:30:59,202 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:30:59,204 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:30:59,204 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:30:59,205 - sqlalchemy.engine.Engine - INFO - [cached since 4.935s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 30, 59, 204264), 'bd8c6670-bec6-406d-a6a7-dced6de85bc8')
2025-04-19 15:30:59,206 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,214 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:30:59,215 - sqlalchemy.engine.Engine - INFO - [cached since 4.917s ago] ('e99499db-fe87-4996-a179-3e265b1ea781',)
2025-04-19 15:30:59,215 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: e99499db-fe87-4996-a179-3e265b1ea781
2025-04-19 15:30:59,215 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,218 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:30:59,218 - services.execution.handlers.foundation - INFO - 任务 e99499db-fe87-4996-a179-3e265b1ea781 打印: ['e99499db-fe87-4996-a179-3e265b1ea781']
2025-04-19 15:30:59,218 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,219 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:30:59,219 - sqlalchemy.engine.Engine - INFO - [cached since 4.917s ago] ('22b52ee5-d14f-4222-8625-039e318e807c', 1, '{"success": true, "message": "打印成功", "output": {"message": ["e99499db-fe87-4996-a179-3e265b1ea781"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e99499db-fe87-4996-a179-3e265b1ea781', datetime.datetime(2025, 4, 19, 15, 30, 59, 219287), datetime.datetime(2025, 4, 19, 15, 30, 59, 219287), 0)
2025-04-19 15:30:59,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,227 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:30:59,228 - sqlalchemy.engine.Engine - INFO - [cached since 4.959s ago] ('bd8c6670-bec6-406d-a6a7-dced6de85bc8',)
2025-04-19 15:30:59,228 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:30:59,229 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:30:59,230 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:30:59,231 - sqlalchemy.engine.Engine - INFO - [cached since 4.919s ago] (datetime.datetime(2025, 4, 19, 15, 30, 59, 230414), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 30, 59, 230414), 'bd8c6670-bec6-406d-a6a7-dced6de85bc8')
2025-04-19 15:30:59,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,239 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:30:59,239 - sqlalchemy.engine.Engine - INFO - [cached since 4.937s ago] ('0e3c8f49-0f85-4b97-ba2d-d2a16be19772', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["e99499db-fe87-4996-a179-3e265b1ea781"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'e99499db-fe87-4996-a179-3e265b1ea781', datetime.datetime(2025, 4, 19, 15, 30, 59, 239258), datetime.datetime(2025, 4, 19, 15, 30, 59, 239258), 0)
2025-04-19 15:30:59,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,246 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:30:59,247 - sqlalchemy.engine.Engine - INFO - [cached since 4.978s ago] ('923ee585-f4eb-4be5-90db-892a65287668',)
2025-04-19 15:30:59,248 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:30:59,248 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:30:59,248 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:30:59,248 - sqlalchemy.engine.Engine - INFO - [cached since 4.937s ago] (datetime.datetime(2025, 4, 19, 15, 30, 59, 248258), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 30, 59, 248258), '923ee585-f4eb-4be5-90db-892a65287668')
2025-04-19 15:30:59,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,257 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:30:59,257 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:30:59,258 - sqlalchemy.engine.Engine - INFO - [cached since 4.917s ago] (datetime.datetime(2025, 4, 19, 15, 30, 59, 257257), '任务执行成功', 1000, 103, datetime.datetime(2025, 4, 19, 15, 30, 59, 257257), 'e99499db-fe87-4996-a179-3e265b1ea781')
2025-04-19 15:30:59,258 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:30:59,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: e99499db-fe87-4996-a179-3e265b1ea781, 结果: True
2025-04-19 15:31:09,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,060 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:31:09,060 - sqlalchemy.engine.Engine - INFO - [cached since 14.96s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:31:09,062 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:31:09,062 - sqlalchemy.engine.Engine - INFO - [cached since 14.94s ago] ('07e787b4-c7f3-4da8-afd8-c25f1d1d2f51', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 31, 9, 62476), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 31, 9, 62476), datetime.datetime(2025, 4, 19, 15, 31, 9, 62476), 0)
2025-04-19 15:31:09,063 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,080 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,081 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:09,081 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] ('07e787b4-c7f3-4da8-afd8-c25f1d1d2f51',)
2025-04-19 15:31:09,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,083 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 07e787b4-c7f3-4da8-afd8-c25f1d1d2f51 (优先级 1) 添加到队列 0
2025-04-19 15:31:09,083 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:31:09,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 07e787b4-c7f3-4da8-afd8-c25f1d1d2f51, 优先级: 1
2025-04-19 15:31:09,183 - services.execution.task_executor - DEBUG - 任务 07e787b4-c7f3-4da8-afd8-c25f1d1d2f51 设置超时时间: 3600秒
2025-04-19 15:31:09,184 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,185 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:09,186 - sqlalchemy.engine.Engine - INFO - [cached since 15.06s ago] ('07e787b4-c7f3-4da8-afd8-c25f1d1d2f51',)
2025-04-19 15:31:09,187 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:31:09,187 - sqlalchemy.engine.Engine - INFO - [cached since 15.09s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:31:09,188 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:09,188 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] (datetime.datetime(2025, 4, 19, 15, 31, 9, 188983), datetime.datetime(2025, 4, 19, 15, 31, 9, 188983), '07e787b4-c7f3-4da8-afd8-c25f1d1d2f51')
2025-04-19 15:31:09,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,196 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:09,197 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 31, 9, 196690), '07e787b4-c7f3-4da8-afd8-c25f1d1d2f51')
2025-04-19 15:31:09,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,204 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:31:09,205 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,205 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:31:09,205 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] ('d131b155-a634-4459-82f7-5d1e24b4c4cc', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '07e787b4-c7f3-4da8-afd8-c25f1d1d2f51', datetime.datetime(2025, 4, 19, 15, 31, 9, 204699), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 31, 9, 205690), datetime.datetime(2025, 4, 19, 15, 31, 9, 205690), 0)
2025-04-19 15:31:09,206 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,214 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:31:09,214 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] ('d131b155-a634-4459-82f7-5d1e24b4c4cc',)
2025-04-19 15:31:09,215 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:31:09,215 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:31:09,215 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:31:09,215 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 31, 9, 215892), 'd131b155-a634-4459-82f7-5d1e24b4c4cc')
2025-04-19 15:31:09,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,224 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:31:09,224 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:31:09,225 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:31:09,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,228 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:31:09,228 - sqlalchemy.engine.Engine - INFO - [cached since 14.97s ago] ('637de398-dd08-4049-b8c8-90896202b81b', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '07e787b4-c7f3-4da8-afd8-c25f1d1d2f51', datetime.datetime(2025, 4, 19, 15, 31, 9, 225171), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 31, 9, 228140), datetime.datetime(2025, 4, 19, 15, 31, 9, 228140), 0)
2025-04-19 15:31:09,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,235 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 637de398-dd08-4049-b8c8-90896202b81b
2025-04-19 15:31:09,236 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,236 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:31:09,237 - sqlalchemy.engine.Engine - INFO - [cached since 14.97s ago] ('637de398-dd08-4049-b8c8-90896202b81b',)
2025-04-19 15:31:09,237 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:31:09,238 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:31:09,238 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:31:09,238 - sqlalchemy.engine.Engine - INFO - [cached since 14.97s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 31, 9, 238031), '637de398-dd08-4049-b8c8-90896202b81b')
2025-04-19 15:31:09,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,250 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,250 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:31:09,250 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] ('07e787b4-c7f3-4da8-afd8-c25f1d1d2f51',)
2025-04-19 15:31:09,250 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 07e787b4-c7f3-4da8-afd8-c25f1d1d2f51
2025-04-19 15:31:09,251 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,251 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:31:09,251 - services.execution.handlers.foundation - INFO - 任务 07e787b4-c7f3-4da8-afd8-c25f1d1d2f51 打印: ['07e787b4-c7f3-4da8-afd8-c25f1d1d2f51']
2025-04-19 15:31:09,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,252 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:31:09,252 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] ('2748612d-603e-4bfd-9b8b-a15825c23002', 1, '{"success": true, "message": "打印成功", "output": {"message": ["07e787b4-c7f3-4da8-afd8-c25f1d1d2f51"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '07e787b4-c7f3-4da8-afd8-c25f1d1d2f51', datetime.datetime(2025, 4, 19, 15, 31, 9, 252885), datetime.datetime(2025, 4, 19, 15, 31, 9, 252885), 0)
2025-04-19 15:31:09,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,259 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:31:09,259 - sqlalchemy.engine.Engine - INFO - [cached since 14.99s ago] ('637de398-dd08-4049-b8c8-90896202b81b',)
2025-04-19 15:31:09,260 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:31:09,260 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:31:09,260 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:31:09,261 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] (datetime.datetime(2025, 4, 19, 15, 31, 9, 260946), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 31, 9, 260946), '637de398-dd08-4049-b8c8-90896202b81b')
2025-04-19 15:31:09,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,268 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,269 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:31:09,269 - sqlalchemy.engine.Engine - INFO - [cached since 14.97s ago] ('f4473950-416c-4fe4-91f4-0559243ceb68', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["07e787b4-c7f3-4da8-afd8-c25f1d1d2f51"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '07e787b4-c7f3-4da8-afd8-c25f1d1d2f51', datetime.datetime(2025, 4, 19, 15, 31, 9, 269958), datetime.datetime(2025, 4, 19, 15, 31, 9, 269958), 0)
2025-04-19 15:31:09,269 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,277 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,279 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:31:09,279 - sqlalchemy.engine.Engine - INFO - [cached since 15.01s ago] ('d131b155-a634-4459-82f7-5d1e24b4c4cc',)
2025-04-19 15:31:09,279 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:31:09,279 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:31:09,279 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:31:09,279 - sqlalchemy.engine.Engine - INFO - [cached since 14.97s ago] (datetime.datetime(2025, 4, 19, 15, 31, 9, 279975), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 31, 9, 279975), 'd131b155-a634-4459-82f7-5d1e24b4c4cc')
2025-04-19 15:31:09,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,288 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:09,289 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:09,289 - sqlalchemy.engine.Engine - INFO - [cached since 14.95s ago] (datetime.datetime(2025, 4, 19, 15, 31, 9, 288169), '任务执行成功', 1000, 91, datetime.datetime(2025, 4, 19, 15, 31, 9, 289154), '07e787b4-c7f3-4da8-afd8-c25f1d1d2f51')
2025-04-19 15:31:09,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:09,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 07e787b4-c7f3-4da8-afd8-c25f1d1d2f51, 结果: True
2025-04-19 15:31:19,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,097 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:31:19,097 - sqlalchemy.engine.Engine - INFO - [cached since 25s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:31:19,098 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:31:19,098 - sqlalchemy.engine.Engine - INFO - [cached since 24.98s ago] ('edbb8233-3305-4f87-a986-a10654295170', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 31, 19, 98722), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 31, 19, 98722), datetime.datetime(2025, 4, 19, 15, 31, 19, 98722), 0)
2025-04-19 15:31:19,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,114 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:19,114 - sqlalchemy.engine.Engine - INFO - [cached since 24.99s ago] ('edbb8233-3305-4f87-a986-a10654295170',)
2025-04-19 15:31:19,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,115 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 edbb8233-3305-4f87-a986-a10654295170 (优先级 1) 添加到队列 0
2025-04-19 15:31:19,115 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:31:19,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: edbb8233-3305-4f87-a986-a10654295170, 优先级: 1
2025-04-19 15:31:19,208 - services.execution.task_executor - DEBUG - 任务 edbb8233-3305-4f87-a986-a10654295170 设置超时时间: 3600秒
2025-04-19 15:31:19,208 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,209 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:19,209 - sqlalchemy.engine.Engine - INFO - [cached since 25.08s ago] ('edbb8233-3305-4f87-a986-a10654295170',)
2025-04-19 15:31:19,210 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:31:19,211 - sqlalchemy.engine.Engine - INFO - [cached since 25.11s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:31:19,212 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:19,212 - sqlalchemy.engine.Engine - INFO - [cached since 24.97s ago] (datetime.datetime(2025, 4, 19, 15, 31, 19, 211573), datetime.datetime(2025, 4, 19, 15, 31, 19, 212575), 'edbb8233-3305-4f87-a986-a10654295170')
2025-04-19 15:31:19,212 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,222 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:19,223 - sqlalchemy.engine.Engine - INFO - [cached since 24.97s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 31, 19, 222594), 'edbb8233-3305-4f87-a986-a10654295170')
2025-04-19 15:31:19,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,230 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:31:19,231 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,231 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:31:19,231 - sqlalchemy.engine.Engine - INFO - [cached since 24.97s ago] ('72ed9aa5-ad08-4324-ae84-99bb24a722fd', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'edbb8233-3305-4f87-a986-a10654295170', datetime.datetime(2025, 4, 19, 15, 31, 19, 230583), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 31, 19, 231572), datetime.datetime(2025, 4, 19, 15, 31, 19, 231572), 0)
2025-04-19 15:31:19,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,248 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,248 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:31:19,250 - sqlalchemy.engine.Engine - INFO - [cached since 24.98s ago] ('72ed9aa5-ad08-4324-ae84-99bb24a722fd',)
2025-04-19 15:31:19,251 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:31:19,251 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:31:19,251 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:31:19,252 - sqlalchemy.engine.Engine - INFO - [cached since 24.98s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 31, 19, 251597), '72ed9aa5-ad08-4324-ae84-99bb24a722fd')
2025-04-19 15:31:19,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,262 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:31:19,262 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:31:19,263 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:31:19,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,264 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:31:19,264 - sqlalchemy.engine.Engine - INFO - [cached since 25s ago] ('c7f1790f-4935-4ba7-95d5-c2c8b5e5cc93', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'edbb8233-3305-4f87-a986-a10654295170', datetime.datetime(2025, 4, 19, 15, 31, 19, 263957), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 31, 19, 264928), datetime.datetime(2025, 4, 19, 15, 31, 19, 264928), 0)
2025-04-19 15:31:19,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,272 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c7f1790f-4935-4ba7-95d5-c2c8b5e5cc93
2025-04-19 15:31:19,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,275 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:31:19,275 - sqlalchemy.engine.Engine - INFO - [cached since 25.01s ago] ('c7f1790f-4935-4ba7-95d5-c2c8b5e5cc93',)
2025-04-19 15:31:19,275 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:31:19,275 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:31:19,276 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:31:19,276 - sqlalchemy.engine.Engine - INFO - [cached since 25.01s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 31, 19, 276956), 'c7f1790f-4935-4ba7-95d5-c2c8b5e5cc93')
2025-04-19 15:31:19,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,284 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:31:19,286 - sqlalchemy.engine.Engine - INFO - [cached since 24.99s ago] ('edbb8233-3305-4f87-a986-a10654295170',)
2025-04-19 15:31:19,286 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: edbb8233-3305-4f87-a986-a10654295170
2025-04-19 15:31:19,286 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,286 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:31:19,286 - services.execution.handlers.foundation - INFO - 任务 edbb8233-3305-4f87-a986-a10654295170 打印: ['edbb8233-3305-4f87-a986-a10654295170']
2025-04-19 15:31:19,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,286 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:31:19,286 - sqlalchemy.engine.Engine - INFO - [cached since 24.99s ago] ('7dcaa8e8-a5d2-4aec-abb0-4c2bc33a7f86', 1, '{"success": true, "message": "打印成功", "output": {"message": ["edbb8233-3305-4f87-a986-a10654295170"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'edbb8233-3305-4f87-a986-a10654295170', datetime.datetime(2025, 4, 19, 15, 31, 19, 286966), datetime.datetime(2025, 4, 19, 15, 31, 19, 286966), 0)
2025-04-19 15:31:19,288 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,294 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:31:19,294 - sqlalchemy.engine.Engine - INFO - [cached since 25.03s ago] ('c7f1790f-4935-4ba7-95d5-c2c8b5e5cc93',)
2025-04-19 15:31:19,294 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:31:19,296 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:31:19,296 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:31:19,296 - sqlalchemy.engine.Engine - INFO - [cached since 24.98s ago] (datetime.datetime(2025, 4, 19, 15, 31, 19, 296007), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 31, 19, 296007), 'c7f1790f-4935-4ba7-95d5-c2c8b5e5cc93')
2025-04-19 15:31:19,296 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,303 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:31:19,303 - sqlalchemy.engine.Engine - INFO - [cached since 25s ago] ('d72e23bd-49d3-459b-8ae2-bc04414ba5ae', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["edbb8233-3305-4f87-a986-a10654295170"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'edbb8233-3305-4f87-a986-a10654295170', datetime.datetime(2025, 4, 19, 15, 31, 19, 303121), datetime.datetime(2025, 4, 19, 15, 31, 19, 303121), 0)
2025-04-19 15:31:19,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,310 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,310 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:31:19,311 - sqlalchemy.engine.Engine - INFO - [cached since 25.04s ago] ('72ed9aa5-ad08-4324-ae84-99bb24a722fd',)
2025-04-19 15:31:19,311 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:31:19,311 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:31:19,312 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:31:19,312 - sqlalchemy.engine.Engine - INFO - [cached since 25s ago] (datetime.datetime(2025, 4, 19, 15, 31, 19, 311136), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 31, 19, 312136), '72ed9aa5-ad08-4324-ae84-99bb24a722fd')
2025-04-19 15:31:19,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,320 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:19,321 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:31:19,321 - sqlalchemy.engine.Engine - INFO - [cached since 24.98s ago] (datetime.datetime(2025, 4, 19, 15, 31, 19, 320141), '任务执行成功', 1000, 97, datetime.datetime(2025, 4, 19, 15, 31, 19, 321134), 'edbb8233-3305-4f87-a986-a10654295170')
2025-04-19 15:31:19,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:19,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: edbb8233-3305-4f87-a986-a10654295170, 结果: True
2025-04-19 15:31:20,558 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:31:20,559 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:20,560 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:31:20,560 - sqlalchemy.engine.Engine - INFO - [cached since 26.46s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:31:20,562 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:31:20,562 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1, datetime.datetime(2025, 4, 19, 15, 31, 20, 562425), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:31:20,563 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:20,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:20,572 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:31:20,573 - sqlalchemy.engine.Engine - INFO - [cached since 26.48s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:31:20,574 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:31:20,574 - sqlalchemy.engine.Engine - INFO - [cached since 26.47s ago] (0, datetime.datetime(2025, 4, 19, 15, 31, 20, 574426), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:31:20,575 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:20,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:20,582 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:31:20,582 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:31:20,583 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:31:20,584 - sqlalchemy.engine.Engine - INFO - [cached since 26.47s ago] (0, datetime.datetime(2025, 4, 19, 15, 31, 20, 583426), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:31:20,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:31:20,592 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0340秒
2025-04-19 15:31:49,038 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:31:49,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:31:49,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:31:49,038 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:31:49,038 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:31:49,038 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:31:49,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:31:49,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:31:49,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:31:49,039 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:31:49,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:31:49,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:31:49,046 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:31:49,046 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:31:49,047 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 14, 31, 49, 45329))
2025-04-19 15:31:49,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:32:04,053 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:32:04,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:32:04,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:32:04,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:32:04,054 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:32:04,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:32:19,072 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:32:19,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:32:19,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:32:19,073 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:32:19,073 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:32:19,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:32:34,060 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:32:34,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:32:34,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:32:34,060 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:32:34,060 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:32:34,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:32:49,073 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:32:49,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:32:49,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:32:49,075 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:32:49,075 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:32:49,076 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:32:49,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:32:49,077 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:32:49,078 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 14, 32, 49, 72344))
2025-04-19 15:32:49,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:32:49,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:32:49,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:32:49,079 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:32:49,079 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:32:49,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:32:49,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:33:04,064 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:33:04,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:33:04,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:33:04,065 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:33:04,065 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:33:04,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:33:34,079 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:33:34,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:33:34,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:33:34,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:33:34,080 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:33:34,080 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:33:34,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:33:34,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:33:34,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:33:34,081 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:33:34,081 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:33:34,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:33:49,096 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:33:49,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:33:49,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:33:49,098 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:33:49,098 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:33:49,098 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:33:49,098 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:33:49,100 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:33:49,100 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 33, 49, 97718))
2025-04-19 15:33:49,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:33:49,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:33:49,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:33:49,101 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:33:49,101 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:33:49,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:33:49,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:34:04,128 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:34:04,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:34:04,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:34:04,130 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:34:04,131 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:34:04,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:34:34,154 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:34:34,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:34:34,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:34:34,155 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:34:34,156 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:34:34,156 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:34:34,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:34:34,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:34:34,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:34:34,158 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:34:34,158 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:34:34,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:34:49,125 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:34:49,126 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:34:49,127 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 34, 49, 124679))
2025-04-19 15:34:49,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:34:49,170 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:34:49,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:34:49,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:34:49,171 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:34:49,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:34:49,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:34:49,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:34:49,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:34:49,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:34:49,173 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:34:49,173 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:34:49,179 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:35:04,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:35:04,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:35:04,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:35:04,168 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:35:04,168 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:35:04,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:35:34,184 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:35:34,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:35:34,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:35:34,185 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:35:34,186 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:35:34,186 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:35:34,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:35:34,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:35:34,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:35:34,186 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:35:34,186 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:35:34,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:35:49,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:35:49,138 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:35:49,138 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 35, 49, 138624))
2025-04-19 15:35:49,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:35:49,200 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:35:49,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:35:49,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:35:49,201 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:35:49,201 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:35:49,201 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:35:49,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:35:49,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:35:49,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:35:49,202 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:35:49,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:35:49,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:36:04,209 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:36:04,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:36:04,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:36:04,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:36:04,210 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:36:04,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:36:06,289 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:36:06,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,290 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:06,290 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:06,292 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,293 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:06,293 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:06,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,294 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:36:06,294 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:36:06,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,295 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:06,295 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:06,296 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:06,297 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] (1, datetime.datetime(2025, 4, 19, 15, 36, 6, 296618), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:06,298 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,304 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:06,304 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] (1, datetime.datetime(2025, 4, 19, 15, 36, 6, 304620), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:06,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,313 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:36:06,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,313 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:06,313 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:06,315 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:36:06,316 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('93dd8744-8e87-47bf-b448-2595ccea6acc', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 36, 6, 315004), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 36, 6, 315004), datetime.datetime(2025, 4, 19, 15, 36, 6, 315004), 0)
2025-04-19 15:36:06,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,324 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,325 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:06,325 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('93dd8744-8e87-47bf-b448-2595ccea6acc',)
2025-04-19 15:36:06,326 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,326 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 93dd8744-8e87-47bf-b448-2595ccea6acc (优先级 1) 添加到队列 0
2025-04-19 15:36:06,326 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0369秒
2025-04-19 15:36:06,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 93dd8744-8e87-47bf-b448-2595ccea6acc, 优先级: 1
2025-04-19 15:36:06,392 - services.execution.task_executor - DEBUG - 任务 93dd8744-8e87-47bf-b448-2595ccea6acc 设置超时时间: 3600秒
2025-04-19 15:36:06,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,393 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:06,393 - sqlalchemy.engine.Engine - INFO - [cached since 312.3s ago] ('93dd8744-8e87-47bf-b448-2595ccea6acc',)
2025-04-19 15:36:06,394 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:06,394 - sqlalchemy.engine.Engine - INFO - [cached since 312.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:06,395 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:06,395 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] (datetime.datetime(2025, 4, 19, 15, 36, 6, 395798), datetime.datetime(2025, 4, 19, 15, 36, 6, 395798), '93dd8744-8e87-47bf-b448-2595ccea6acc')
2025-04-19 15:36:06,396 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,407 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,407 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:06,407 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 36, 6, 407791), '93dd8744-8e87-47bf-b448-2595ccea6acc')
2025-04-19 15:36:06,408 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,418 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:36:06,418 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,419 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:36:06,419 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('f2309b32-1d60-42d6-9e74-a0c9db5d50e7', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '93dd8744-8e87-47bf-b448-2595ccea6acc', datetime.datetime(2025, 4, 19, 15, 36, 6, 418836), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 36, 6, 419914), datetime.datetime(2025, 4, 19, 15, 36, 6, 419914), 0)
2025-04-19 15:36:06,419 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,426 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,427 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:06,427 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('f2309b32-1d60-42d6-9e74-a0c9db5d50e7',)
2025-04-19 15:36:06,427 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:36:06,428 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:36:06,428 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:06,428 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 36, 6, 428840), 'f2309b32-1d60-42d6-9e74-a0c9db5d50e7')
2025-04-19 15:36:06,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,436 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:36:06,436 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:36:06,436 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:36:06,437 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,437 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:36:06,437 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('3de83512-ac80-43d9-ba89-4b53fa657c24', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '93dd8744-8e87-47bf-b448-2595ccea6acc', datetime.datetime(2025, 4, 19, 15, 36, 6, 436860), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 36, 6, 437876), datetime.datetime(2025, 4, 19, 15, 36, 6, 437876), 0)
2025-04-19 15:36:06,438 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,445 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 3de83512-ac80-43d9-ba89-4b53fa657c24
2025-04-19 15:36:06,445 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,445 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:06,446 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('3de83512-ac80-43d9-ba89-4b53fa657c24',)
2025-04-19 15:36:06,446 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:36:06,446 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:36:06,447 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:06,447 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 36, 6, 447508), '3de83512-ac80-43d9-ba89-4b53fa657c24')
2025-04-19 15:36:06,447 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,454 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:36:06,455 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('93dd8744-8e87-47bf-b448-2595ccea6acc',)
2025-04-19 15:36:06,455 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 93dd8744-8e87-47bf-b448-2595ccea6acc
2025-04-19 15:36:06,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,456 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:36:06,456 - services.execution.handlers.foundation - INFO - 任务 93dd8744-8e87-47bf-b448-2595ccea6acc 打印: ['93dd8744-8e87-47bf-b448-2595ccea6acc']
2025-04-19 15:36:06,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,457 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:36:06,457 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('db82f235-9673-48e5-ba0d-04c51c74341b', 1, '{"success": true, "message": "打印成功", "output": {"message": ["93dd8744-8e87-47bf-b448-2595ccea6acc"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '93dd8744-8e87-47bf-b448-2595ccea6acc', datetime.datetime(2025, 4, 19, 15, 36, 6, 457513), datetime.datetime(2025, 4, 19, 15, 36, 6, 457513), 0)
2025-04-19 15:36:06,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,465 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:06,465 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('3de83512-ac80-43d9-ba89-4b53fa657c24',)
2025-04-19 15:36:06,466 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:36:06,466 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:36:06,467 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:06,467 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] (datetime.datetime(2025, 4, 19, 15, 36, 6, 466534), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 36, 6, 467426), '3de83512-ac80-43d9-ba89-4b53fa657c24')
2025-04-19 15:36:06,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,477 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,477 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:36:06,477 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('84d92014-6814-4f62-baf5-9d824a93c1c2', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["93dd8744-8e87-47bf-b448-2595ccea6acc"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '93dd8744-8e87-47bf-b448-2595ccea6acc', datetime.datetime(2025, 4, 19, 15, 36, 6, 477365), datetime.datetime(2025, 4, 19, 15, 36, 6, 477365), 0)
2025-04-19 15:36:06,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,487 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,487 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:06,487 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] ('f2309b32-1d60-42d6-9e74-a0c9db5d50e7',)
2025-04-19 15:36:06,488 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:36:06,488 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:36:06,488 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:06,489 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] (datetime.datetime(2025, 4, 19, 15, 36, 6, 488539), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 36, 6, 488539), 'f2309b32-1d60-42d6-9e74-a0c9db5d50e7')
2025-04-19 15:36:06,489 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:06,497 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:06,497 - sqlalchemy.engine.Engine - INFO - [cached since 312.2s ago] (datetime.datetime(2025, 4, 19, 15, 36, 6, 496802), '任务执行成功', 1000, 90, datetime.datetime(2025, 4, 19, 15, 36, 6, 497805), '93dd8744-8e87-47bf-b448-2595ccea6acc')
2025-04-19 15:36:06,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:06,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 93dd8744-8e87-47bf-b448-2595ccea6acc, 结果: True
2025-04-19 15:36:09,311 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,312 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:09,312 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:09,316 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:36:09,316 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('688b0eb6-3a9e-426f-a82f-3bb71dd3ae24', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 36, 9, 316098), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 36, 9, 316098), datetime.datetime(2025, 4, 19, 15, 36, 9, 316098), 0)
2025-04-19 15:36:09,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,333 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:09,334 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('688b0eb6-3a9e-426f-a82f-3bb71dd3ae24',)
2025-04-19 15:36:09,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,339 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 688b0eb6-3a9e-426f-a82f-3bb71dd3ae24 (优先级 1) 添加到队列 0
2025-04-19 15:36:09,339 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:36:09,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 688b0eb6-3a9e-426f-a82f-3bb71dd3ae24, 优先级: 1
2025-04-19 15:36:09,432 - services.execution.task_executor - DEBUG - 任务 688b0eb6-3a9e-426f-a82f-3bb71dd3ae24 设置超时时间: 3600秒
2025-04-19 15:36:09,433 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,434 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:09,434 - sqlalchemy.engine.Engine - INFO - [cached since 315.3s ago] ('688b0eb6-3a9e-426f-a82f-3bb71dd3ae24',)
2025-04-19 15:36:09,435 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:09,436 - sqlalchemy.engine.Engine - INFO - [cached since 315.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:09,437 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:09,437 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] (datetime.datetime(2025, 4, 19, 15, 36, 9, 437511), datetime.datetime(2025, 4, 19, 15, 36, 9, 437511), '688b0eb6-3a9e-426f-a82f-3bb71dd3ae24')
2025-04-19 15:36:09,438 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,450 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:09,451 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 36, 9, 450513), '688b0eb6-3a9e-426f-a82f-3bb71dd3ae24')
2025-04-19 15:36:09,451 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,459 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:36:09,459 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,460 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:36:09,460 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('1a15f592-29ee-4002-a7c6-b07f611910ff', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '688b0eb6-3a9e-426f-a82f-3bb71dd3ae24', datetime.datetime(2025, 4, 19, 15, 36, 9, 459513), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 36, 9, 460514), datetime.datetime(2025, 4, 19, 15, 36, 9, 460514), 0)
2025-04-19 15:36:09,461 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,471 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,472 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:09,472 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('1a15f592-29ee-4002-a7c6-b07f611910ff',)
2025-04-19 15:36:09,473 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:36:09,473 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:36:09,474 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:09,474 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 36, 9, 474513), '1a15f592-29ee-4002-a7c6-b07f611910ff')
2025-04-19 15:36:09,474 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,481 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:36:09,481 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:36:09,481 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:36:09,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,482 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:36:09,482 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('5c451b6e-01c4-4942-9e2f-5958e34e3ea9', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '688b0eb6-3a9e-426f-a82f-3bb71dd3ae24', datetime.datetime(2025, 4, 19, 15, 36, 9, 481512), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 36, 9, 482632), datetime.datetime(2025, 4, 19, 15, 36, 9, 482632), 0)
2025-04-19 15:36:09,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,490 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 5c451b6e-01c4-4942-9e2f-5958e34e3ea9
2025-04-19 15:36:09,491 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,491 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:09,491 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('5c451b6e-01c4-4942-9e2f-5958e34e3ea9',)
2025-04-19 15:36:09,492 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:36:09,493 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:36:09,493 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:09,493 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 36, 9, 493514), '5c451b6e-01c4-4942-9e2f-5958e34e3ea9')
2025-04-19 15:36:09,494 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,502 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,503 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:36:09,503 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('688b0eb6-3a9e-426f-a82f-3bb71dd3ae24',)
2025-04-19 15:36:09,504 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 688b0eb6-3a9e-426f-a82f-3bb71dd3ae24
2025-04-19 15:36:09,504 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,505 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:36:09,505 - services.execution.handlers.foundation - INFO - 任务 688b0eb6-3a9e-426f-a82f-3bb71dd3ae24 打印: ['688b0eb6-3a9e-426f-a82f-3bb71dd3ae24']
2025-04-19 15:36:09,505 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,506 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:36:09,506 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('98015db0-532f-4288-9a3e-c0eb31eb8860', 1, '{"success": true, "message": "打印成功", "output": {"message": ["688b0eb6-3a9e-426f-a82f-3bb71dd3ae24"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '688b0eb6-3a9e-426f-a82f-3bb71dd3ae24', datetime.datetime(2025, 4, 19, 15, 36, 9, 506591), datetime.datetime(2025, 4, 19, 15, 36, 9, 506591), 0)
2025-04-19 15:36:09,507 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,514 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,514 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:09,515 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('5c451b6e-01c4-4942-9e2f-5958e34e3ea9',)
2025-04-19 15:36:09,516 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:36:09,516 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:36:09,516 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:09,516 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] (datetime.datetime(2025, 4, 19, 15, 36, 9, 516596), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 36, 9, 516596), '5c451b6e-01c4-4942-9e2f-5958e34e3ea9')
2025-04-19 15:36:09,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,525 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:36:09,526 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] ('35a63588-27c5-4bd5-bc72-c435bbc83d89', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["688b0eb6-3a9e-426f-a82f-3bb71dd3ae24"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '688b0eb6-3a9e-426f-a82f-3bb71dd3ae24', datetime.datetime(2025, 4, 19, 15, 36, 9, 525512), datetime.datetime(2025, 4, 19, 15, 36, 9, 525512), 0)
2025-04-19 15:36:09,526 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,536 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:09,537 - sqlalchemy.engine.Engine - INFO - [cached since 315.3s ago] ('1a15f592-29ee-4002-a7c6-b07f611910ff',)
2025-04-19 15:36:09,538 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:36:09,538 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:36:09,538 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:09,538 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] (datetime.datetime(2025, 4, 19, 15, 36, 9, 538512), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 36, 9, 538512), '1a15f592-29ee-4002-a7c6-b07f611910ff')
2025-04-19 15:36:09,539 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:09,547 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:09,547 - sqlalchemy.engine.Engine - INFO - [cached since 315.2s ago] (datetime.datetime(2025, 4, 19, 15, 36, 9, 546645), '任务执行成功', 1000, 97, datetime.datetime(2025, 4, 19, 15, 36, 9, 547512), '688b0eb6-3a9e-426f-a82f-3bb71dd3ae24')
2025-04-19 15:36:09,548 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:09,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 688b0eb6-3a9e-426f-a82f-3bb71dd3ae24, 结果: True
2025-04-19 15:36:19,344 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,345 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:19,345 - sqlalchemy.engine.Engine - INFO - [cached since 325.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:19,346 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:36:19,346 - sqlalchemy.engine.Engine - INFO - [cached since 325.2s ago] ('26552f7d-26e4-463d-9df8-523be922dad4', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 36, 19, 346564), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 36, 19, 346564), datetime.datetime(2025, 4, 19, 15, 36, 19, 346564), 0)
2025-04-19 15:36:19,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,366 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,366 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:19,366 - sqlalchemy.engine.Engine - INFO - [cached since 325.2s ago] ('26552f7d-26e4-463d-9df8-523be922dad4',)
2025-04-19 15:36:19,367 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,368 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 26552f7d-26e4-463d-9df8-523be922dad4 (优先级 1) 添加到队列 0
2025-04-19 15:36:19,368 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:36:19,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 26552f7d-26e4-463d-9df8-523be922dad4, 优先级: 1
2025-04-19 15:36:19,483 - services.execution.task_executor - DEBUG - 任务 26552f7d-26e4-463d-9df8-523be922dad4 设置超时时间: 3600秒
2025-04-19 15:36:19,484 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,484 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:19,485 - sqlalchemy.engine.Engine - INFO - [cached since 325.4s ago] ('26552f7d-26e4-463d-9df8-523be922dad4',)
2025-04-19 15:36:19,487 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:19,487 - sqlalchemy.engine.Engine - INFO - [cached since 325.4s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:19,488 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:19,489 - sqlalchemy.engine.Engine - INFO - [cached since 325.2s ago] (datetime.datetime(2025, 4, 19, 15, 36, 19, 488619), datetime.datetime(2025, 4, 19, 15, 36, 19, 488619), '26552f7d-26e4-463d-9df8-523be922dad4')
2025-04-19 15:36:19,489 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,498 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,499 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:19,499 - sqlalchemy.engine.Engine - INFO - [cached since 325.2s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 36, 19, 499721), '26552f7d-26e4-463d-9df8-523be922dad4')
2025-04-19 15:36:19,500 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,507 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:36:19,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,508 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:36:19,509 - sqlalchemy.engine.Engine - INFO - [cached since 325.2s ago] ('7f94502d-925a-4150-8616-fc21df5b8bc0', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '26552f7d-26e4-463d-9df8-523be922dad4', datetime.datetime(2025, 4, 19, 15, 36, 19, 507880), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 36, 19, 508907), datetime.datetime(2025, 4, 19, 15, 36, 19, 508907), 0)
2025-04-19 15:36:19,511 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,521 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,521 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:19,522 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('7f94502d-925a-4150-8616-fc21df5b8bc0',)
2025-04-19 15:36:19,522 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:36:19,523 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:36:19,523 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:19,523 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 36, 19, 523702), '7f94502d-925a-4150-8616-fc21df5b8bc0')
2025-04-19 15:36:19,524 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,529 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:36:19,529 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:36:19,530 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:36:19,531 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,532 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:36:19,532 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('dbdabde1-e745-4a12-93e4-791c203ba4e7', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '26552f7d-26e4-463d-9df8-523be922dad4', datetime.datetime(2025, 4, 19, 15, 36, 19, 531701), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 36, 19, 532702), datetime.datetime(2025, 4, 19, 15, 36, 19, 532702), 0)
2025-04-19 15:36:19,534 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,542 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: dbdabde1-e745-4a12-93e4-791c203ba4e7
2025-04-19 15:36:19,542 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,542 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:19,543 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('dbdabde1-e745-4a12-93e4-791c203ba4e7',)
2025-04-19 15:36:19,544 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:36:19,544 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:36:19,544 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:19,544 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 36, 19, 544086), 'dbdabde1-e745-4a12-93e4-791c203ba4e7')
2025-04-19 15:36:19,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,553 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,554 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:36:19,554 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('26552f7d-26e4-463d-9df8-523be922dad4',)
2025-04-19 15:36:19,554 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 26552f7d-26e4-463d-9df8-523be922dad4
2025-04-19 15:36:19,555 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,555 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:36:19,556 - services.execution.handlers.foundation - INFO - 任务 26552f7d-26e4-463d-9df8-523be922dad4 打印: ['26552f7d-26e4-463d-9df8-523be922dad4']
2025-04-19 15:36:19,556 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,556 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:36:19,557 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('e9efe6bd-4680-404a-9dc5-a5198b01becb', 1, '{"success": true, "message": "打印成功", "output": {"message": ["26552f7d-26e4-463d-9df8-523be922dad4"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '26552f7d-26e4-463d-9df8-523be922dad4', datetime.datetime(2025, 4, 19, 15, 36, 19, 556086), datetime.datetime(2025, 4, 19, 15, 36, 19, 556086), 0)
2025-04-19 15:36:19,557 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,565 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,565 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:19,566 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('dbdabde1-e745-4a12-93e4-791c203ba4e7',)
2025-04-19 15:36:19,566 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:36:19,567 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:36:19,567 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:19,567 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] (datetime.datetime(2025, 4, 19, 15, 36, 19, 567061), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 36, 19, 567061), 'dbdabde1-e745-4a12-93e4-791c203ba4e7')
2025-04-19 15:36:19,568 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,573 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:36:19,573 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('ce0312e1-4253-41bb-9dd1-229a26eaabc9', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["26552f7d-26e4-463d-9df8-523be922dad4"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '26552f7d-26e4-463d-9df8-523be922dad4', datetime.datetime(2025, 4, 19, 15, 36, 19, 573056), datetime.datetime(2025, 4, 19, 15, 36, 19, 573056), 0)
2025-04-19 15:36:19,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,582 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:36:19,582 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] ('7f94502d-925a-4150-8616-fc21df5b8bc0',)
2025-04-19 15:36:19,583 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:36:19,583 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:36:19,584 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:36:19,584 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] (datetime.datetime(2025, 4, 19, 15, 36, 19, 583432), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 36, 19, 584436), '7f94502d-925a-4150-8616-fc21df5b8bc0')
2025-04-19 15:36:19,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,594 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:19,594 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:36:19,594 - sqlalchemy.engine.Engine - INFO - [cached since 325.3s ago] (datetime.datetime(2025, 4, 19, 15, 36, 19, 593344), '任务执行成功', 1000, 94, datetime.datetime(2025, 4, 19, 15, 36, 19, 594257), '26552f7d-26e4-463d-9df8-523be922dad4')
2025-04-19 15:36:19,594 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:19,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 26552f7d-26e4-463d-9df8-523be922dad4, 结果: True
2025-04-19 15:36:25,055 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:36:25,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:25,058 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:25,058 - sqlalchemy.engine.Engine - INFO - [cached since 331s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:25,061 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:25,061 - sqlalchemy.engine.Engine - INFO - [cached since 304.5s ago] (1, datetime.datetime(2025, 4, 19, 15, 36, 25, 61608), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:25,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:25,068 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:25,069 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:25,069 - sqlalchemy.engine.Engine - INFO - [cached since 331s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:25,074 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:25,074 - sqlalchemy.engine.Engine - INFO - [cached since 331s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 25, 74690), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:25,075 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:25,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:25,082 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:36:25,082 - sqlalchemy.engine.Engine - INFO - [cached since 304.5s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:36:25,084 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:25,085 - sqlalchemy.engine.Engine - INFO - [cached since 331s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 25, 84108), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:25,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:25,092 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0367秒
2025-04-19 15:36:34,232 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:36:34,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:36:34,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:36:34,232 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:36:34,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:36:34,233 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:36:34,330 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:36:34,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:34,334 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:34,334 - sqlalchemy.engine.Engine - INFO - [cached since 340.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:34,337 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:34,337 - sqlalchemy.engine.Engine - INFO - [cached since 313.8s ago] (1, datetime.datetime(2025, 4, 19, 15, 36, 34, 337303), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:34,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:34,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:34,355 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:34,355 - sqlalchemy.engine.Engine - INFO - [cached since 340.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:34,356 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:34,356 - sqlalchemy.engine.Engine - INFO - [cached since 340.3s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 34, 356114), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:34,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:34,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:34,365 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:36:34,366 - sqlalchemy.engine.Engine - INFO - [cached since 313.8s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:36:34,367 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:34,368 - sqlalchemy.engine.Engine - INFO - [cached since 340.3s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 34, 367111), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:34,368 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:34,369 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0388秒
2025-04-19 15:36:35,330 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:36:35,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:35,331 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:35,332 - sqlalchemy.engine.Engine - INFO - [cached since 341.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:35,333 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:35,333 - sqlalchemy.engine.Engine - INFO - [cached since 314.8s ago] (1, datetime.datetime(2025, 4, 19, 15, 36, 35, 333478), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:35,333 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:35,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:35,342 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:35,342 - sqlalchemy.engine.Engine - INFO - [cached since 341.2s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:35,343 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:35,343 - sqlalchemy.engine.Engine - INFO - [cached since 341.2s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 35, 343465), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:35,344 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:35,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:35,352 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:36:35,353 - sqlalchemy.engine.Engine - INFO - [cached since 314.8s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:36:35,354 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:35,355 - sqlalchemy.engine.Engine - INFO - [cached since 341.2s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 35, 354838), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:35,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:35,357 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0275秒
2025-04-19 15:36:36,893 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:36:36,894 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:36,895 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:36,895 - sqlalchemy.engine.Engine - INFO - [cached since 342.8s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:36,897 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:36,899 - sqlalchemy.engine.Engine - INFO - [cached since 316.3s ago] (1, datetime.datetime(2025, 4, 19, 15, 36, 36, 897820), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:36,899 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:36,914 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:36,916 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:36,916 - sqlalchemy.engine.Engine - INFO - [cached since 342.8s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:36,917 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:36,917 - sqlalchemy.engine.Engine - INFO - [cached since 342.8s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 36, 917818), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:36,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:36,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:36,930 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:36:36,930 - sqlalchemy.engine.Engine - INFO - [cached since 316.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:36:36,933 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:36,933 - sqlalchemy.engine.Engine - INFO - [cached since 342.8s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 36, 933168), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:36,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:36,936 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0425秒
2025-04-19 15:36:37,897 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:36:37,898 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:37,898 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:37,900 - sqlalchemy.engine.Engine - INFO - [cached since 343.8s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:37,901 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:37,901 - sqlalchemy.engine.Engine - INFO - [cached since 317.3s ago] (1, datetime.datetime(2025, 4, 19, 15, 36, 37, 901251), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:37,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:37,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:37,917 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:37,917 - sqlalchemy.engine.Engine - INFO - [cached since 343.8s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:37,918 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:37,919 - sqlalchemy.engine.Engine - INFO - [cached since 343.8s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 37, 918310), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:37,920 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:37,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:37,929 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:36:37,929 - sqlalchemy.engine.Engine - INFO - [cached since 317.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:36:37,930 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:37,931 - sqlalchemy.engine.Engine - INFO - [cached since 343.8s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 37, 930425), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:37,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:37,934 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0365秒
2025-04-19 15:36:39,818 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:36:39,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:39,821 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:39,822 - sqlalchemy.engine.Engine - INFO - [cached since 345.7s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:39,823 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:39,823 - sqlalchemy.engine.Engine - INFO - [cached since 319.3s ago] (1, datetime.datetime(2025, 4, 19, 15, 36, 39, 823639), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:39,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:39,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:39,839 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:36:39,839 - sqlalchemy.engine.Engine - INFO - [cached since 345.7s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:36:39,841 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:39,843 - sqlalchemy.engine.Engine - INFO - [cached since 345.7s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 39, 841240), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:39,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:39,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:39,856 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:36:39,856 - sqlalchemy.engine.Engine - INFO - [cached since 319.3s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:36:39,859 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:36:39,859 - sqlalchemy.engine.Engine - INFO - [cached since 345.7s ago] (0, datetime.datetime(2025, 4, 19, 15, 36, 39, 859325), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:36:39,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:39,862 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0435秒
2025-04-19 15:36:49,157 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:36:49,158 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:36:49,158 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 36, 49, 157399))
2025-04-19 15:36:49,159 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:36:49,249 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:36:49,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:36:49,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:36:49,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:36:49,250 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:36:49,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:37:19,266 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:37:19,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:37:19,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:37:19,267 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:37:19,267 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:37:19,267 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:37:19,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:37:19,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:37:19,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:37:19,268 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:37:19,268 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:37:19,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:37:22,976 - root - INFO - 应用程序关闭中...
2025-04-19 15:37:22,976 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:37:22,976 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:37:22,976 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:37:22,977 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:37:22,977 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:37:22,977 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:37:22,977 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:37:22,977 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:37:22,977 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:37:22,978 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:37:22,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:37:22,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:37:22,978 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:37:22,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:37:22,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:37:22,978 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 3
2025-04-19 15:37:22,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:37:22,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:37:22,979 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-19 15:37:22,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:37:22,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:37:22,979 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 1
2025-04-19 15:37:22,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:37:22,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:37:22,979 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-19 15:37:22,979 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:37:22,979 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:37:22,979 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:37:22,980 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:37:22,980 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:37:22,980 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:37:22,981 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:39:28,794 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:39:28,795 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:39:29,513 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:39:29,514 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:39:29,569 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:39:29,620 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:39:29,638 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:39:29,663 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:39:29,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,664 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:39:29,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,664 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:39:29,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,665 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:29,665 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:39:29,665 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,667 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:39:29,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,671 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:39:29,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:39:29,672 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,674 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:39:29,674 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,675 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:39:29,675 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,677 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:39:29,677 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,678 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:39:29,678 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,679 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:39:29,679 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,680 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:39:29,681 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,681 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:39:29,681 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:39:29,682 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:29,683 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:39:30,026 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:39:30,026 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:39:30,026 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:39:30,026 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:39:30,026 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:39:30,026 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:39:30,027 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:39:30,027 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:39:30,027 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:39:30,027 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:39:30,027 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:39:30,027 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:39:30,027 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:39:30,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:39:30,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:39:30,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:39:30,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:39:30,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:39:30,029 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:39:30,029 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:39:30,030 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:39:30,030 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:39:30,031 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:39:30,031 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:39:30,031 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:39:30,032 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:39:30,033 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:39:30,033 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:30,042 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:39:30,042 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (1, 1)
2025-04-19 15:39:30,043 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:39:30,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:30,044 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:39:30,044 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:39:30,044 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:39:30,045 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:30,046 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:39:30,046 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1000, 2000, 2001)
2025-04-19 15:39:30,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:30,075 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:39:30,075 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:39:30,075 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:39:30,075 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:39:30,076 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:39:30,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:30,078 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:39:30,078 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1001, datetime.datetime(2025, 4, 19, 14, 39, 30, 45636))
2025-04-19 15:39:30,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,691 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:39:35,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,694 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:39:35,695 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:39:35,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,696 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:39:35,697 - sqlalchemy.engine.Engine - INFO - [cached since 0.002517s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:39:35,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,698 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:39:35,698 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:39:35,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,699 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:39:35,699 - sqlalchemy.engine.Engine - INFO - [cached since 0.005288s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:39:35,701 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:39:35,701 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, datetime.datetime(2025, 4, 19, 15, 39, 35, 701804), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:39:35,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,716 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,717 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:39:35,718 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1, datetime.datetime(2025, 4, 19, 15, 39, 35, 717471), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:39:35,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,729 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:39:35,730 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,730 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:39:35,730 - sqlalchemy.engine.Engine - INFO - [cached since 0.0357s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:39:35,732 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:39:35,732 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('7152b96e-85e0-42e4-8bb2-46ccb3e9c56e', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 39, 35, 731218), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 39, 35, 732384), datetime.datetime(2025, 4, 19, 15, 39, 35, 732384), 0)
2025-04-19 15:39:35,733 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,740 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:39:35,740 - sqlalchemy.engine.Engine - INFO - [generated in 0.00083s] ('7152b96e-85e0-42e4-8bb2-46ccb3e9c56e',)
2025-04-19 15:39:35,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,742 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7152b96e-85e0-42e4-8bb2-46ccb3e9c56e (优先级 1) 添加到队列 0
2025-04-19 15:39:35,742 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0512秒
2025-04-19 15:39:35,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 7152b96e-85e0-42e4-8bb2-46ccb3e9c56e, 优先级: 1
2025-04-19 15:39:35,802 - services.execution.task_executor - DEBUG - 任务 7152b96e-85e0-42e4-8bb2-46ccb3e9c56e 设置超时时间: 3600秒
2025-04-19 15:39:35,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,803 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:39:35,804 - sqlalchemy.engine.Engine - INFO - [cached since 0.06354s ago] ('7152b96e-85e0-42e4-8bb2-46ccb3e9c56e',)
2025-04-19 15:39:35,805 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:39:35,805 - sqlalchemy.engine.Engine - INFO - [cached since 0.1101s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:39:35,806 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:39:35,806 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 19, 15, 39, 35, 805148), datetime.datetime(2025, 4, 19, 15, 39, 35, 806107), '7152b96e-85e0-42e4-8bb2-46ccb3e9c56e')
2025-04-19 15:39:35,807 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,818 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:39:35,820 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 39, 35, 818997), '7152b96e-85e0-42e4-8bb2-46ccb3e9c56e')
2025-04-19 15:39:35,820 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,831 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:39:35,831 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,833 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:39:35,833 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('ae79851f-c533-4d4e-a0b3-5877cc1d171e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7152b96e-85e0-42e4-8bb2-46ccb3e9c56e', datetime.datetime(2025, 4, 19, 15, 39, 35, 831998), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 39, 35, 833992), datetime.datetime(2025, 4, 19, 15, 39, 35, 833992), 0)
2025-04-19 15:39:35,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,843 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:39:35,843 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('ae79851f-c533-4d4e-a0b3-5877cc1d171e',)
2025-04-19 15:39:35,843 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:39:35,844 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:39:35,844 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:39:35,844 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 39, 35, 844993), 'ae79851f-c533-4d4e-a0b3-5877cc1d171e')
2025-04-19 15:39:35,846 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,853 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:39:35,853 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:39:35,854 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:39:35,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,854 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:39:35,854 - sqlalchemy.engine.Engine - INFO - [cached since 0.02096s ago] ('fd2f2ac8-fe5b-4092-92a7-0b0aa0496cd2', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7152b96e-85e0-42e4-8bb2-46ccb3e9c56e', datetime.datetime(2025, 4, 19, 15, 39, 35, 854102), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 39, 35, 854992), datetime.datetime(2025, 4, 19, 15, 39, 35, 854992), 0)
2025-04-19 15:39:35,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,863 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: fd2f2ac8-fe5b-4092-92a7-0b0aa0496cd2
2025-04-19 15:39:35,864 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,864 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:39:35,865 - sqlalchemy.engine.Engine - INFO - [cached since 0.02136s ago] ('fd2f2ac8-fe5b-4092-92a7-0b0aa0496cd2',)
2025-04-19 15:39:35,865 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:39:35,865 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:39:35,866 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:39:35,866 - sqlalchemy.engine.Engine - INFO - [cached since 0.02114s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 39, 35, 866262), 'fd2f2ac8-fe5b-4092-92a7-0b0aa0496cd2')
2025-04-19 15:39:35,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,874 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:39:35,874 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] ('7152b96e-85e0-42e4-8bb2-46ccb3e9c56e',)
2025-04-19 15:39:35,874 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 7152b96e-85e0-42e4-8bb2-46ccb3e9c56e
2025-04-19 15:39:35,874 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,876 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:39:35,876 - services.execution.handlers.foundation - INFO - 任务 7152b96e-85e0-42e4-8bb2-46ccb3e9c56e 打印: ['7152b96e-85e0-42e4-8bb2-46ccb3e9c56e']
2025-04-19 15:39:35,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,878 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:39:35,878 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('a1cc84c1-8e82-4fcd-b54c-169a8db523d4', 1, '{"success": true, "message": "打印成功", "output": {"message": ["7152b96e-85e0-42e4-8bb2-46ccb3e9c56e"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7152b96e-85e0-42e4-8bb2-46ccb3e9c56e', datetime.datetime(2025, 4, 19, 15, 39, 35, 877001), datetime.datetime(2025, 4, 19, 15, 39, 35, 877001), 0)
2025-04-19 15:39:35,878 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,886 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:39:35,886 - sqlalchemy.engine.Engine - INFO - [cached since 0.0431s ago] ('fd2f2ac8-fe5b-4092-92a7-0b0aa0496cd2',)
2025-04-19 15:39:35,886 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:39:35,886 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:39:35,887 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:39:35,887 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (datetime.datetime(2025, 4, 19, 15, 39, 35, 887992), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 39, 35, 887992), 'fd2f2ac8-fe5b-4092-92a7-0b0aa0496cd2')
2025-04-19 15:39:35,888 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,896 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,896 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:39:35,896 - sqlalchemy.engine.Engine - INFO - [cached since 0.01968s ago] ('49183c39-8ffb-4894-a0a4-55023e448d74', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["7152b96e-85e0-42e4-8bb2-46ccb3e9c56e"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '7152b96e-85e0-42e4-8bb2-46ccb3e9c56e', datetime.datetime(2025, 4, 19, 15, 39, 35, 896993), datetime.datetime(2025, 4, 19, 15, 39, 35, 896993), 0)
2025-04-19 15:39:35,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,904 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,904 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:39:35,904 - sqlalchemy.engine.Engine - INFO - [cached since 0.06167s ago] ('ae79851f-c533-4d4e-a0b3-5877cc1d171e',)
2025-04-19 15:39:35,904 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:39:35,906 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:39:35,906 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:39:35,906 - sqlalchemy.engine.Engine - INFO - [cached since 0.01864s ago] (datetime.datetime(2025, 4, 19, 15, 39, 35, 906120), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 39, 35, 906120), 'ae79851f-c533-4d4e-a0b3-5877cc1d171e')
2025-04-19 15:39:35,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,914 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:35,915 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:39:35,915 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (datetime.datetime(2025, 4, 19, 15, 39, 35, 914087), '任务执行成功', 1000, 96, datetime.datetime(2025, 4, 19, 15, 39, 35, 915082), '7152b96e-85e0-42e4-8bb2-46ccb3e9c56e')
2025-04-19 15:39:35,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:35,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 7152b96e-85e0-42e4-8bb2-46ccb3e9c56e, 结果: True
2025-04-19 15:39:38,320 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:39:38,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:38,321 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:39:38,321 - sqlalchemy.engine.Engine - INFO - [cached since 2.627s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:39:38,323 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:39:38,323 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1, datetime.datetime(2025, 4, 19, 15, 39, 38, 323232), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:39:38,324 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:38,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:38,333 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:39:38,333 - sqlalchemy.engine.Engine - INFO - [cached since 2.639s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:39:38,334 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:39:38,334 - sqlalchemy.engine.Engine - INFO - [cached since 2.633s ago] (0, datetime.datetime(2025, 4, 19, 15, 39, 38, 334231), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:39:38,335 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:38,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:39:38,343 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:39:38,344 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:39:38,345 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:39:38,346 - sqlalchemy.engine.Engine - INFO - [cached since 2.628s ago] (0, datetime.datetime(2025, 4, 19, 15, 39, 38, 345234), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:39:38,346 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:39:38,357 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0370秒
2025-04-19 15:40:30,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:40:30,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:40:30,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:40:30,036 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:40:30,037 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:40:30,037 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:40:30,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:40:30,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:40:30,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:40:30,039 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:40:30,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:40:30,039 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:40:30,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:40:30,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:40:30,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:40:30,040 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:40:30,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:40:30,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:40:30,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:40:30,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:40:30,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:40:30,041 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:40:30,042 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:40:30,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:40:30,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:40:30,083 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:40:30,084 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 14, 40, 30, 81838))
2025-04-19 15:40:30,086 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:40:30,225 - root - INFO - 应用程序关闭中...
2025-04-19 15:40:30,225 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:40:30,226 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:40:30,226 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:40:30,227 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:40:30,227 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:40:30,228 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:40:30,228 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:40:30,229 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:40:30,229 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:40:30,229 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:40:30,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:40:30,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:40:30,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:40:30,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:40:30,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:40:30,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:40:30,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:40:30,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:40:30,232 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:40:30,232 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:40:30,232 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:40:30,233 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:40:30,233 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:40:30,233 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:40:30,233 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:40:30,233 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:40:30,234 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:40:30,234 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:40:30,234 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:40:31,384 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:40:31,385 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:40:31,440 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:40:31,493 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:40:31,529 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:40:31,531 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:40:31,531 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,531 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:40:31,532 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,532 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:40:31,532 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:40:31,533 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:40:31,533 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,534 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:40:31,534 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,535 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:40:31,535 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,537 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:40:31,537 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,538 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:40:31,538 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,543 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:40:31,543 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,544 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:40:31,544 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,546 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:40:31,546 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,547 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:40:31,547 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,549 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:40:31,549 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,550 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:40:31,550 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:40:31,552 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:40:31,552 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:40:31,927 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:40:31,927 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:40:31,927 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:40:31,927 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:40:31,927 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:40:31,927 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:40:31,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:40:31,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:40:31,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:40:31,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:40:31,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:40:31,928 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:40:31,928 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:40:31,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:40:31,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:40:31,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:40:31,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:40:31,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:40:31,930 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:40:31,930 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:40:31,931 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:40:31,931 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:40:31,931 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:40:31,931 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:40:31,933 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:40:31,933 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:40:31,933 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:40:31,933 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:40:31,942 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:40:31,942 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1, 1)
2025-04-19 15:40:31,943 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:40:31,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:40:31,943 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:40:31,943 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:40:31,944 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:40:31,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:40:31,945 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:40:31,945 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1000, 2000, 2001)
2025-04-19 15:40:31,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:40:31,948 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:40:31,950 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:40:31,950 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:40:31,951 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:40:31,951 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:40:31,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:40:31,951 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:40:31,952 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1001, datetime.datetime(2025, 4, 19, 14, 40, 31, 944938))
2025-04-19 15:40:31,953 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:41:31,949 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:41:31,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:41:31,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:41:31,950 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:41:31,950 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:41:31,950 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:41:31,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:41:31,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:41:31,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:41:31,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:41:31,951 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:41:31,952 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 14, 41, 31, 949223))
2025-04-19 15:41:31,952 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:41:31,952 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:41:31,952 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:41:31,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:41:31,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:41:31,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:41:31,953 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:41:31,954 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:41:31,954 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:41:31,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:41:31,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:41:31,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:41:31,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:41:31,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:41:31,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:41:31,958 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:41:31,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:41:31,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:41:31,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:41:31,958 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:41:31,958 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:41:31,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:42:31,986 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:42:31,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:42:31,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:42:31,987 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:42:31,987 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:42:31,988 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:42:31,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:42:31,988 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:42:31,988 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 14, 42, 31, 986149))
2025-04-19 15:42:31,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:42:31,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:42:31,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:42:31,990 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:42:31,990 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:42:31,991 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:42:31,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:42:31,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:42:31,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:42:31,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:42:31,992 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:42:31,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:42:31,992 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:42:31,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:42:31,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:42:31,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:42:31,993 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:42:31,993 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:42:31,993 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:42:31,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:42:31,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:42:31,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:42:31,993 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:42:31,993 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:42:32,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:43:31,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:43:31,985 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:43:31,985 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 14, 43, 31, 982316))
2025-04-19 15:43:31,987 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:43:32,203 - root - INFO - 应用程序关闭中...
2025-04-19 15:43:32,203 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:43:32,204 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:43:32,204 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:43:32,204 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:43:32,204 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:43:32,205 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:43:32,205 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:43:32,205 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:43:32,205 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:43:32,206 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:43:32,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:43:32,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:43:32,206 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:43:32,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:43:32,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:43:32,207 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:43:32,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:43:32,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:43:32,208 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:43:32,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:43:32,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:43:32,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:43:32,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:43:32,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:43:32,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:43:32,210 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:43:32,210 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:43:32,210 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:43:32,210 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:43:32,211 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:43:32,211 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:43:32,211 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:43:33,471 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:43:33,471 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:43:33,526 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:43:33,572 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:43:33,613 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:43:33,616 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:43:33,617 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,617 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:43:33,617 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,618 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:43:33,618 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:43:33,618 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:43:33,619 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,621 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:43:33,621 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,623 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:43:33,623 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,624 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:43:33,625 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,635 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:43:33,636 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,638 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:43:33,639 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,640 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:43:33,640 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:43:33,642 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,645 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:43:33,645 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,646 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:43:33,646 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,647 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:43:33,647 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:43:33,648 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:43:33,648 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:43:33,996 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:43:33,996 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:43:33,996 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:43:33,997 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:43:33,997 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:43:33,997 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:43:33,997 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:43:33,997 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:43:33,998 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:43:33,998 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:43:33,998 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:43:33,998 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:43:33,998 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:43:33,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:43:34,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:43:34,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:43:34,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:43:34,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:43:34,000 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:43:34,000 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:43:34,023 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:43:34,025 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:43:34,025 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:43:34,026 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:43:34,026 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:43:34,026 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:43:34,027 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:43:34,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:43:34,036 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:43:34,036 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (1, 1)
2025-04-19 15:43:34,037 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:43:34,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:43:34,039 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:43:34,039 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:43:34,039 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:43:34,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:43:34,042 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:43:34,043 - sqlalchemy.engine.Engine - INFO - [generated in 0.00104s] (1000, 2000, 2001)
2025-04-19 15:43:34,055 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:43:34,056 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:43:34,056 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:43:34,056 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:43:34,057 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:43:34,057 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:43:34,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:43:34,058 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:43:34,059 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1001, datetime.datetime(2025, 4, 19, 14, 43, 34, 40238))
2025-04-19 15:43:34,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:23,351 - root - INFO - 应用程序关闭中...
2025-04-19 15:44:23,351 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:44:23,352 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:44:23,352 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:44:23,352 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:44:23,352 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:44:23,352 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:44:23,352 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:44:23,354 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:44:23,354 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:44:23,354 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:44:23,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:44:23,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:44:23,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:44:23,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:44:23,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:44:23,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 15:44:23,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:44:23,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:44:23,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 15:44:23,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:44:23,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:44:23,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 15:44:23,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:44:23,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:44:23,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 15:44:23,358 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:44:23,359 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:44:23,359 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:44:23,359 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:44:23,360 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:44:23,360 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:44:23,360 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:44:24,492 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:44:24,492 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:44:24,571 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:44:24,617 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:44:24,651 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:44:24,669 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:44:24,669 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,670 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:44:24,670 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,671 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:44:24,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,671 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:24,671 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:44:24,672 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,673 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:44:24,673 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,674 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:44:24,674 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,674 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:44:24,675 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,675 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:44:24,676 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,676 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:44:24,680 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,682 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:44:24,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,682 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:44:24,683 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,684 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:44:24,684 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,685 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:44:24,685 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,686 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:44:24,686 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:44:24,687 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:24,687 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:44:25,030 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:44:25,031 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:44:25,031 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:44:25,031 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:44:25,031 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:44:25,032 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:44:25,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:44:25,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:44:25,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:44:25,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:44:25,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:44:25,033 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:44:25,033 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:44:25,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:44:25,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:44:25,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:44:25,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:44:25,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:44:25,036 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:44:25,036 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:44:25,037 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:44:25,037 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:44:25,038 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:44:25,038 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:44:25,038 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:44:25,039 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:44:25,039 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:44:25,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:25,047 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:44:25,048 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1, 1)
2025-04-19 15:44:25,049 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:44:25,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:25,049 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:44:25,050 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:44:25,050 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:44:25,050 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:25,052 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:44:25,052 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (1000, 2000, 2001)
2025-04-19 15:44:25,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:25,053 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:44:25,054 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:44:25,054 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:44:25,054 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:44:25,055 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:44:25,055 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:25,056 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:44:25,056 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (1001, datetime.datetime(2025, 4, 19, 14, 44, 25, 50545))
2025-04-19 15:44:25,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,217 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:44:29,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,220 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:44:29,220 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:44:29,221 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,222 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:44:29,222 - sqlalchemy.engine.Engine - INFO - [cached since 0.002727s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:44:29,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,223 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:44:29,223 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:44:29,223 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,224 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:44:29,224 - sqlalchemy.engine.Engine - INFO - [cached since 0.004615s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:44:29,225 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:44:29,225 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1, datetime.datetime(2025, 4, 19, 15, 44, 29, 225797), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:44:29,227 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,236 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:44:29,236 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1, datetime.datetime(2025, 4, 19, 15, 44, 29, 236424), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:44:29,237 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,246 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:44:29,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,246 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:44:29,246 - sqlalchemy.engine.Engine - INFO - [cached since 0.02681s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:44:29,248 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:44:29,248 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('3f94fd28-e233-4831-81b9-f34bf674c142', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 44, 29, 247423), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 44, 29, 248424), datetime.datetime(2025, 4, 19, 15, 44, 29, 248424), 0)
2025-04-19 15:44:29,248 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,262 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:29,262 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('3f94fd28-e233-4831-81b9-f34bf674c142',)
2025-04-19 15:44:29,264 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,265 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3f94fd28-e233-4831-81b9-f34bf674c142 (优先级 1) 添加到队列 0
2025-04-19 15:44:29,265 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0477秒
2025-04-19 15:44:29,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3f94fd28-e233-4831-81b9-f34bf674c142, 优先级: 1
2025-04-19 15:44:29,289 - services.execution.task_executor - DEBUG - 任务 3f94fd28-e233-4831-81b9-f34bf674c142 设置超时时间: 3600秒
2025-04-19 15:44:29,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,290 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:29,290 - sqlalchemy.engine.Engine - INFO - [cached since 0.02865s ago] ('3f94fd28-e233-4831-81b9-f34bf674c142',)
2025-04-19 15:44:29,291 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:44:29,291 - sqlalchemy.engine.Engine - INFO - [cached since 0.07207s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:44:29,292 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:29,292 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 19, 15, 44, 29, 292684), datetime.datetime(2025, 4, 19, 15, 44, 29, 292684), '3f94fd28-e233-4831-81b9-f34bf674c142')
2025-04-19 15:44:29,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,305 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:29,305 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 44, 29, 305304), '3f94fd28-e233-4831-81b9-f34bf674c142')
2025-04-19 15:44:29,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,314 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:44:29,314 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,316 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:44:29,316 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('c12d22b6-c404-4105-a75a-c8e3fd8ac3bd', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3f94fd28-e233-4831-81b9-f34bf674c142', datetime.datetime(2025, 4, 19, 15, 44, 29, 314656), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 44, 29, 316655), datetime.datetime(2025, 4, 19, 15, 44, 29, 316655), 0)
2025-04-19 15:44:29,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,324 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,324 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:44:29,325 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('c12d22b6-c404-4105-a75a-c8e3fd8ac3bd',)
2025-04-19 15:44:29,325 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:44:29,326 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:44:29,326 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:44:29,327 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 44, 29, 326977), 'c12d22b6-c404-4105-a75a-c8e3fd8ac3bd')
2025-04-19 15:44:29,327 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,335 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:44:29,335 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:44:29,335 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:44:29,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,335 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:44:29,336 - sqlalchemy.engine.Engine - INFO - [cached since 0.0201s ago] ('02c45291-a77b-4ee8-8594-12d485989594', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3f94fd28-e233-4831-81b9-f34bf674c142', datetime.datetime(2025, 4, 19, 15, 44, 29, 335007), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 44, 29, 335007), datetime.datetime(2025, 4, 19, 15, 44, 29, 335007), 0)
2025-04-19 15:44:29,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,348 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 02c45291-a77b-4ee8-8594-12d485989594
2025-04-19 15:44:29,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,352 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:44:29,353 - sqlalchemy.engine.Engine - INFO - [cached since 0.02771s ago] ('02c45291-a77b-4ee8-8594-12d485989594',)
2025-04-19 15:44:29,355 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:44:29,355 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:44:29,355 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:44:29,355 - sqlalchemy.engine.Engine - INFO - [cached since 0.02822s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 44, 29, 355348), '02c45291-a77b-4ee8-8594-12d485989594')
2025-04-19 15:44:29,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,366 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,368 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:44:29,368 - sqlalchemy.engine.Engine - INFO - [generated in 0.00109s] ('3f94fd28-e233-4831-81b9-f34bf674c142',)
2025-04-19 15:44:29,371 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 3f94fd28-e233-4831-81b9-f34bf674c142
2025-04-19 15:44:29,371 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,374 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:44:29,374 - services.execution.handlers.foundation - INFO - 任务 3f94fd28-e233-4831-81b9-f34bf674c142 打印: ['3f94fd28-e233-4831-81b9-f34bf674c142']
2025-04-19 15:44:29,377 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,381 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:44:29,382 - sqlalchemy.engine.Engine - INFO - [generated in 0.00118s] ('2e183f79-a90f-4e16-bc6f-233085036ef0', 1, '{"success": true, "message": "打印成功", "output": {"message": ["3f94fd28-e233-4831-81b9-f34bf674c142"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3f94fd28-e233-4831-81b9-f34bf674c142', datetime.datetime(2025, 4, 19, 15, 44, 29, 381635), datetime.datetime(2025, 4, 19, 15, 44, 29, 381635), 0)
2025-04-19 15:44:29,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,394 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:44:29,396 - sqlalchemy.engine.Engine - INFO - [cached since 0.07079s ago] ('02c45291-a77b-4ee8-8594-12d485989594',)
2025-04-19 15:44:29,398 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:44:29,398 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:44:29,399 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:44:29,399 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (datetime.datetime(2025, 4, 19, 15, 44, 29, 398637), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 44, 29, 399636), '02c45291-a77b-4ee8-8594-12d485989594')
2025-04-19 15:44:29,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,408 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,409 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:44:29,409 - sqlalchemy.engine.Engine - INFO - [cached since 0.02892s ago] ('d28904e5-a64e-461a-93a8-f9b965f82515', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["3f94fd28-e233-4831-81b9-f34bf674c142"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '3f94fd28-e233-4831-81b9-f34bf674c142', datetime.datetime(2025, 4, 19, 15, 44, 29, 409633), datetime.datetime(2025, 4, 19, 15, 44, 29, 409633), 0)
2025-04-19 15:44:29,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,420 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,421 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:44:29,422 - sqlalchemy.engine.Engine - INFO - [cached since 0.09756s ago] ('c12d22b6-c404-4105-a75a-c8e3fd8ac3bd',)
2025-04-19 15:44:29,424 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:44:29,424 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:44:29,425 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:44:29,425 - sqlalchemy.engine.Engine - INFO - [cached since 0.02684s ago] (datetime.datetime(2025, 4, 19, 15, 44, 29, 424636), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 44, 29, 424636), 'c12d22b6-c404-4105-a75a-c8e3fd8ac3bd')
2025-04-19 15:44:29,427 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,434 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:29,435 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:29,435 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (datetime.datetime(2025, 4, 19, 15, 44, 29, 433634), '任务执行成功', 1000, 129, datetime.datetime(2025, 4, 19, 15, 44, 29, 434634), '3f94fd28-e233-4831-81b9-f34bf674c142')
2025-04-19 15:44:29,439 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:29,449 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 3f94fd28-e233-4831-81b9-f34bf674c142, 结果: True
2025-04-19 15:44:35,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,071 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:44:35,071 - sqlalchemy.engine.Engine - INFO - [cached since 5.852s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:44:35,073 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:44:35,073 - sqlalchemy.engine.Engine - INFO - [cached since 5.825s ago] ('54967140-09d7-49e5-a38f-9453c781745d', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 44, 35, 72492), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 44, 35, 73448), datetime.datetime(2025, 4, 19, 15, 44, 35, 73448), 0)
2025-04-19 15:44:35,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,090 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:35,090 - sqlalchemy.engine.Engine - INFO - [cached since 5.828s ago] ('54967140-09d7-49e5-a38f-9453c781745d',)
2025-04-19 15:44:35,091 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,092 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 54967140-09d7-49e5-a38f-9453c781745d (优先级 1) 添加到队列 0
2025-04-19 15:44:35,093 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:44:35,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 54967140-09d7-49e5-a38f-9453c781745d, 优先级: 1
2025-04-19 15:44:35,132 - services.execution.task_executor - DEBUG - 任务 54967140-09d7-49e5-a38f-9453c781745d 设置超时时间: 3600秒
2025-04-19 15:44:35,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,135 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:35,136 - sqlalchemy.engine.Engine - INFO - [cached since 5.874s ago] ('54967140-09d7-49e5-a38f-9453c781745d',)
2025-04-19 15:44:35,140 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:44:35,140 - sqlalchemy.engine.Engine - INFO - [cached since 5.92s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:44:35,142 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:35,143 - sqlalchemy.engine.Engine - INFO - [cached since 5.85s ago] (datetime.datetime(2025, 4, 19, 15, 44, 35, 142032), datetime.datetime(2025, 4, 19, 15, 44, 35, 142032), '54967140-09d7-49e5-a38f-9453c781745d')
2025-04-19 15:44:35,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,154 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:35,154 - sqlalchemy.engine.Engine - INFO - [cached since 5.849s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 44, 35, 154417), '54967140-09d7-49e5-a38f-9453c781745d')
2025-04-19 15:44:35,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,161 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:44:35,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,162 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:44:35,163 - sqlalchemy.engine.Engine - INFO - [cached since 5.847s ago] ('79cd1e64-b433-4eba-8f3f-d9964c96ce50', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '54967140-09d7-49e5-a38f-9453c781745d', datetime.datetime(2025, 4, 19, 15, 44, 35, 162442), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 44, 35, 162442), datetime.datetime(2025, 4, 19, 15, 44, 35, 162442), 0)
2025-04-19 15:44:35,163 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,170 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:44:35,171 - sqlalchemy.engine.Engine - INFO - [cached since 5.846s ago] ('79cd1e64-b433-4eba-8f3f-d9964c96ce50',)
2025-04-19 15:44:35,172 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:44:35,172 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:44:35,172 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:44:35,173 - sqlalchemy.engine.Engine - INFO - [cached since 5.846s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 44, 35, 172437), '79cd1e64-b433-4eba-8f3f-d9964c96ce50')
2025-04-19 15:44:35,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,180 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:44:35,180 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:44:35,180 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:44:35,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,181 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:44:35,181 - sqlalchemy.engine.Engine - INFO - [cached since 5.866s ago] ('2162868e-5a04-48ea-8d22-1b04a3971018', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '54967140-09d7-49e5-a38f-9453c781745d', datetime.datetime(2025, 4, 19, 15, 44, 35, 180644), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 44, 35, 181669), datetime.datetime(2025, 4, 19, 15, 44, 35, 181669), 0)
2025-04-19 15:44:35,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,188 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2162868e-5a04-48ea-8d22-1b04a3971018
2025-04-19 15:44:35,189 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,189 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:44:35,189 - sqlalchemy.engine.Engine - INFO - [cached since 5.865s ago] ('2162868e-5a04-48ea-8d22-1b04a3971018',)
2025-04-19 15:44:35,190 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:44:35,191 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:44:35,191 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:44:35,191 - sqlalchemy.engine.Engine - INFO - [cached since 5.865s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 44, 35, 191670), '2162868e-5a04-48ea-8d22-1b04a3971018')
2025-04-19 15:44:35,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,201 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,201 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:44:35,202 - sqlalchemy.engine.Engine - INFO - [cached since 5.835s ago] ('54967140-09d7-49e5-a38f-9453c781745d',)
2025-04-19 15:44:35,204 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 54967140-09d7-49e5-a38f-9453c781745d
2025-04-19 15:44:35,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,205 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:44:35,205 - services.execution.handlers.foundation - INFO - 任务 54967140-09d7-49e5-a38f-9453c781745d 打印: ['54967140-09d7-49e5-a38f-9453c781745d']
2025-04-19 15:44:35,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,206 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:44:35,206 - sqlalchemy.engine.Engine - INFO - [cached since 5.826s ago] ('eae53bc1-c23c-4850-9b84-30ebb45c18af', 1, '{"success": true, "message": "打印成功", "output": {"message": ["54967140-09d7-49e5-a38f-9453c781745d"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '54967140-09d7-49e5-a38f-9453c781745d', datetime.datetime(2025, 4, 19, 15, 44, 35, 206106), datetime.datetime(2025, 4, 19, 15, 44, 35, 206106), 0)
2025-04-19 15:44:35,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,214 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:44:35,214 - sqlalchemy.engine.Engine - INFO - [cached since 5.889s ago] ('2162868e-5a04-48ea-8d22-1b04a3971018',)
2025-04-19 15:44:35,215 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:44:35,215 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:44:35,215 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:44:35,215 - sqlalchemy.engine.Engine - INFO - [cached since 5.817s ago] (datetime.datetime(2025, 4, 19, 15, 44, 35, 215633), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 44, 35, 215633), '2162868e-5a04-48ea-8d22-1b04a3971018')
2025-04-19 15:44:35,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,223 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,224 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:44:35,224 - sqlalchemy.engine.Engine - INFO - [cached since 5.844s ago] ('e7766530-b4ad-4418-b0cf-e099db4d4355', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["54967140-09d7-49e5-a38f-9453c781745d"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '54967140-09d7-49e5-a38f-9453c781745d', datetime.datetime(2025, 4, 19, 15, 44, 35, 224016), datetime.datetime(2025, 4, 19, 15, 44, 35, 224016), 0)
2025-04-19 15:44:35,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,233 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:44:35,233 - sqlalchemy.engine.Engine - INFO - [cached since 5.908s ago] ('79cd1e64-b433-4eba-8f3f-d9964c96ce50',)
2025-04-19 15:44:35,234 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:44:35,234 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:44:35,235 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:44:35,235 - sqlalchemy.engine.Engine - INFO - [cached since 5.836s ago] (datetime.datetime(2025, 4, 19, 15, 44, 35, 234373), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 44, 35, 235383), '79cd1e64-b433-4eba-8f3f-d9964c96ce50')
2025-04-19 15:44:35,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,243 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,244 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:44:35,245 - sqlalchemy.engine.Engine - INFO - [cached since 5.81s ago] (datetime.datetime(2025, 4, 19, 15, 44, 35, 243383), '任务执行成功', 1000, 89, datetime.datetime(2025, 4, 19, 15, 44, 35, 244377), '54967140-09d7-49e5-a38f-9453c781745d')
2025-04-19 15:44:35,246 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 54967140-09d7-49e5-a38f-9453c781745d, 结果: True
2025-04-19 15:44:35,900 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:44:35,902 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,902 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:44:35,902 - sqlalchemy.engine.Engine - INFO - [cached since 6.683s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:44:35,903 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:44:35,905 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (0, datetime.datetime(2025, 4, 19, 15, 44, 35, 903983), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:44:35,905 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,913 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,914 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:44:35,914 - sqlalchemy.engine.Engine - INFO - [cached since 6.694s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:44:35,915 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,916 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:44:35,917 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:44:35,917 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:44:35,918 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:44:35,919 - sqlalchemy.engine.Engine - INFO - [cached since 6.682s ago] (0, datetime.datetime(2025, 4, 19, 15, 44, 35, 918251), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:44:35,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:44:35,926 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0253秒
2025-04-19 15:45:25,049 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:45:25,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:45:25,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:45:25,049 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:45:25,049 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:45:25,049 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:45:25,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:45:25,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:45:25,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:45:25,051 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:45:25,051 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:45:25,051 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:45:25,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:45:25,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:45:25,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:45:25,051 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:45:25,052 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:45:25,052 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:45:25,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:45:25,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:45:25,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:45:25,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:45:25,053 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:45:25,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:45:25,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:45:25,059 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:45:25,059 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 14, 45, 25, 58249))
2025-04-19 15:45:25,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:45:40,079 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:45:40,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:45:40,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:45:40,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:45:40,080 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:45:40,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:46:10,937 - root - INFO - 应用程序关闭中...
2025-04-19 15:46:10,938 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:46:10,938 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:46:10,938 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:46:10,938 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:46:10,938 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 15:46:10,938 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:46:10,938 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:46:10,938 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 15:46:10,938 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:46:10,939 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:46:10,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:46:10,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:46:10,939 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:46:10,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:46:10,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:46:10,939 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-19 15:46:10,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:46:10,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:46:10,939 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-19 15:46:10,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:46:10,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:46:10,939 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-19 15:46:10,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:46:10,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:46:10,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-19 15:46:10,940 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 15:46:10,940 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 15:46:10,940 - root - INFO - 增强版任务调度器已停止
2025-04-19 15:46:10,940 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 15:46:10,940 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 15:46:10,940 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 15:46:10,941 - data.session - INFO - 数据库连接已关闭
2025-04-19 15:46:12,352 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 15:46:12,353 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 15:46:12,411 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 15:46:12,458 - data.session - INFO - 正在初始化数据库...
2025-04-19 15:46:12,500 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 15:46:12,521 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:46:12,522 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,523 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:46:12,523 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,523 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:46:12,523 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:12,524 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskdef`
2025-04-19 15:46:12,524 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,526 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtaskrecord`
2025-04-19 15:46:12,526 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,530 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasklog`
2025-04-19 15:46:12,530 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,532 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windblockrecord`
2025-04-19 15:46:12,532 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,533 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_windtasktemplate`
2025-04-19 15:46:12,533 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,534 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacache`
2025-04-19 15:46:12,534 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,537 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_winddatacachesplit`
2025-04-19 15:46:12,538 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,541 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script`
2025-04-19 15:46:12,541 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,542 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_version`
2025-04-19 15:46:12,543 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,543 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_wind_script_log`
2025-04-19 15:46:12,544 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,544 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`t_modbus_config`
2025-04-19 15:46:12,545 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 15:46:12,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:12,546 - data.session - INFO - 数据库表初始化完成
2025-04-19 15:46:12,911 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 15:46:12,911 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 15:46:12,911 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 15:46:12,911 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 15:46:12,912 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 15:46:12,912 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 15:46:12,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 15:46:12,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 15:46:12,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 15:46:12,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 15:46:12,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:46:12,914 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 15:46:12,914 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 15:46:12,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:46:12,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:46:12,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:46:12,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:46:12,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:46:12,916 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 15:46:12,916 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 15:46:12,917 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:46:12,917 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 15:46:12,918 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:46:12,918 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 15:46:12,918 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:46:12,920 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 15:46:12,920 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 15:46:12,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:12,927 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.periodic_task = %s AND t_windtaskdef.if_enable = %s
2025-04-19 15:46:12,929 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1, 1)
2025-04-19 15:46:12,930 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 15:46:12,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:12,931 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 15:46:12,931 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 15:46:12,931 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 15:46:12,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:12,933 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE (t_windtaskrecord.status NOT IN (%s, %s, %s))
2025-04-19 15:46:12,933 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] (1000, 2000, 2001)
2025-04-19 15:46:12,959 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:12,959 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 15:46:12,961 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 15:46:12,961 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 15:46:12,961 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 15:46:12,961 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 15:46:12,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:12,963 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:46:12,963 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1001, datetime.datetime(2025, 4, 19, 14, 46, 12, 931484))
2025-04-19 15:46:12,965 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,117 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:46:17,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,121 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:17,121 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:17,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,123 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:17,123 - sqlalchemy.engine.Engine - INFO - [cached since 0.002425s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:17,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,124 - services.task_edit_service - INFO - 启动定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:46:17,125 - services.task_edit_service - INFO - 已启用定时任务: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:46:17,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,126 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:17,126 - sqlalchemy.engine.Engine - INFO - [cached since 0.005758s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:17,128 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:46:17,128 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1, datetime.datetime(2025, 4, 19, 15, 46, 17, 128769), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:46:17,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,144 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:46:17,144 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (1, datetime.datetime(2025, 4, 19, 15, 46, 17, 144619), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:46:17,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,152 - services.task_edit_service - INFO - 更新任务定义状态为运行中: c8eb7b39-28da-4355-a65e-860c813dcc84
2025-04-19 15:46:17,153 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,153 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:17,154 - sqlalchemy.engine.Engine - INFO - [cached since 0.03327s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:17,155 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:46:17,156 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('5dab4082-0497-4052-b856-25d5959eeaab', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 46, 17, 154618), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 46, 17, 155619), datetime.datetime(2025, 4, 19, 15, 46, 17, 155619), 0)
2025-04-19 15:46:17,156 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,164 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,165 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:17,165 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('5dab4082-0497-4052-b856-25d5959eeaab',)
2025-04-19 15:46:17,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,167 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 5dab4082-0497-4052-b856-25d5959eeaab (优先级 1) 添加到队列 0
2025-04-19 15:46:17,167 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0498秒
2025-04-19 15:46:17,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 5dab4082-0497-4052-b856-25d5959eeaab, 优先级: 1
2025-04-19 15:46:17,250 - services.execution.task_executor - DEBUG - 任务 5dab4082-0497-4052-b856-25d5959eeaab 设置超时时间: 3600秒
2025-04-19 15:46:17,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,251 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:17,252 - sqlalchemy.engine.Engine - INFO - [cached since 0.08709s ago] ('5dab4082-0497-4052-b856-25d5959eeaab',)
2025-04-19 15:46:17,253 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:17,253 - sqlalchemy.engine.Engine - INFO - [cached since 0.1329s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:17,255 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:17,255 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (datetime.datetime(2025, 4, 19, 15, 46, 17, 254799), datetime.datetime(2025, 4, 19, 15, 46, 17, 255688), '5dab4082-0497-4052-b856-25d5959eeaab')
2025-04-19 15:46:17,255 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,265 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,266 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:17,266 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 46, 17, 266688), '5dab4082-0497-4052-b856-25d5959eeaab')
2025-04-19 15:46:17,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,276 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:46:17,277 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,278 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:46:17,279 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('87936433-c3f8-412c-8cfe-c35950a5f020', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5dab4082-0497-4052-b856-25d5959eeaab', datetime.datetime(2025, 4, 19, 15, 46, 17, 277703), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 46, 17, 278834), datetime.datetime(2025, 4, 19, 15, 46, 17, 278834), 0)
2025-04-19 15:46:17,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,287 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:46:17,287 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('87936433-c3f8-412c-8cfe-c35950a5f020',)
2025-04-19 15:46:17,288 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:46:17,288 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:46:17,289 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:46:17,289 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 46, 17, 289686), '87936433-c3f8-412c-8cfe-c35950a5f020')
2025-04-19 15:46:17,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,296 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:46:17,296 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:46:17,296 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:46:17,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,297 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:46:17,297 - sqlalchemy.engine.Engine - INFO - [cached since 0.01936s ago] ('16238b3c-9f8b-41ed-b709-72c1a944243a', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5dab4082-0497-4052-b856-25d5959eeaab', datetime.datetime(2025, 4, 19, 15, 46, 17, 296694), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 46, 17, 297686), datetime.datetime(2025, 4, 19, 15, 46, 17, 297686), 0)
2025-04-19 15:46:17,298 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,305 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 16238b3c-9f8b-41ed-b709-72c1a944243a
2025-04-19 15:46:17,306 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,306 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:46:17,306 - sqlalchemy.engine.Engine - INFO - [cached since 0.01946s ago] ('16238b3c-9f8b-41ed-b709-72c1a944243a',)
2025-04-19 15:46:17,307 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:46:17,307 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:46:17,307 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:46:17,308 - sqlalchemy.engine.Engine - INFO - [cached since 0.0187s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 46, 17, 307694), '16238b3c-9f8b-41ed-b709-72c1a944243a')
2025-04-19 15:46:17,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,316 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:46:17,316 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] ('5dab4082-0497-4052-b856-25d5959eeaab',)
2025-04-19 15:46:17,317 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: 5dab4082-0497-4052-b856-25d5959eeaab
2025-04-19 15:46:17,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,317 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:46:17,318 - services.execution.handlers.foundation - INFO - 任务 5dab4082-0497-4052-b856-25d5959eeaab 打印: ['5dab4082-0497-4052-b856-25d5959eeaab']
2025-04-19 15:46:17,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,319 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:46:17,319 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('84a4938d-dd4a-438a-9160-9f3a796ced10', 1, '{"success": true, "message": "打印成功", "output": {"message": ["5dab4082-0497-4052-b856-25d5959eeaab"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5dab4082-0497-4052-b856-25d5959eeaab', datetime.datetime(2025, 4, 19, 15, 46, 17, 319700), datetime.datetime(2025, 4, 19, 15, 46, 17, 319700), 0)
2025-04-19 15:46:17,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,326 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:46:17,326 - sqlalchemy.engine.Engine - INFO - [cached since 0.03947s ago] ('16238b3c-9f8b-41ed-b709-72c1a944243a',)
2025-04-19 15:46:17,327 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:46:17,327 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:46:17,328 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:46:17,328 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (datetime.datetime(2025, 4, 19, 15, 46, 17, 327693), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 46, 17, 328693), '16238b3c-9f8b-41ed-b709-72c1a944243a')
2025-04-19 15:46:17,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,337 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:46:17,338 - sqlalchemy.engine.Engine - INFO - [cached since 0.01883s ago] ('b326574e-4693-41dd-a934-e89d711bd9f8', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["5dab4082-0497-4052-b856-25d5959eeaab"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', '5dab4082-0497-4052-b856-25d5959eeaab', datetime.datetime(2025, 4, 19, 15, 46, 17, 337686), datetime.datetime(2025, 4, 19, 15, 46, 17, 337686), 0)
2025-04-19 15:46:17,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,347 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,347 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:46:17,348 - sqlalchemy.engine.Engine - INFO - [cached since 0.06066s ago] ('87936433-c3f8-412c-8cfe-c35950a5f020',)
2025-04-19 15:46:17,348 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:46:17,348 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:46:17,349 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:46:17,349 - sqlalchemy.engine.Engine - INFO - [cached since 0.0212s ago] (datetime.datetime(2025, 4, 19, 15, 46, 17, 348693), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 46, 17, 349686), '87936433-c3f8-412c-8cfe-c35950a5f020')
2025-04-19 15:46:17,349 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,356 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:17,357 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:17,357 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (datetime.datetime(2025, 4, 19, 15, 46, 17, 355694), '任务执行成功', 1000, 90, datetime.datetime(2025, 4, 19, 15, 46, 17, 357688), '5dab4082-0497-4052-b856-25d5959eeaab')
2025-04-19 15:46:17,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:17,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 5dab4082-0497-4052-b856-25d5959eeaab, 结果: True
2025-04-19 15:46:22,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:22,956 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:22,957 - sqlalchemy.engine.Engine - INFO - [cached since 5.836s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:22,958 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:46:22,958 - sqlalchemy.engine.Engine - INFO - [cached since 5.803s ago] ('fd975df0-30ee-47c8-a3eb-415bed264f1d', 'c8eb7b39-28da-4355-a65e-860c813dcc84', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 15, 46, 22, 958455), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (264 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 46, 22, 958455), datetime.datetime(2025, 4, 19, 15, 46, 22, 958455), 0)
2025-04-19 15:46:22,959 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:22,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:22,970 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:22,970 - sqlalchemy.engine.Engine - INFO - [cached since 5.805s ago] ('fd975df0-30ee-47c8-a3eb-415bed264f1d',)
2025-04-19 15:46:22,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:22,972 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 fd975df0-30ee-47c8-a3eb-415bed264f1d (优先级 1) 添加到队列 0
2025-04-19 15:46:22,973 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 c8eb7b39-28da-4355-a65e-860c813dcc84 已提交执行
2025-04-19 15:46:23,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: fd975df0-30ee-47c8-a3eb-415bed264f1d, 优先级: 1
2025-04-19 15:46:23,032 - services.execution.task_executor - DEBUG - 任务 fd975df0-30ee-47c8-a3eb-415bed264f1d 设置超时时间: 3600秒
2025-04-19 15:46:23,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,032 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:23,032 - sqlalchemy.engine.Engine - INFO - [cached since 5.868s ago] ('fd975df0-30ee-47c8-a3eb-415bed264f1d',)
2025-04-19 15:46:23,034 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:23,035 - sqlalchemy.engine.Engine - INFO - [cached since 5.914s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:23,035 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:23,036 - sqlalchemy.engine.Engine - INFO - [cached since 5.781s ago] (datetime.datetime(2025, 4, 19, 15, 46, 23, 35353), datetime.datetime(2025, 4, 19, 15, 46, 23, 35353), 'fd975df0-30ee-47c8-a3eb-415bed264f1d')
2025-04-19 15:46:23,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,044 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:23,044 - sqlalchemy.engine.Engine - INFO - [cached since 5.778s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 46, 23, 44227), 'fd975df0-30ee-47c8-a3eb-415bed264f1d')
2025-04-19 15:46:23,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,051 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:46:23,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,052 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:46:23,053 - sqlalchemy.engine.Engine - INFO - [cached since 5.774s ago] ('620d3c6f-95fd-484e-aa85-ac44186c60a2', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fd975df0-30ee-47c8-a3eb-415bed264f1d', datetime.datetime(2025, 4, 19, 15, 46, 23, 51227), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 46, 23, 52227), datetime.datetime(2025, 4, 19, 15, 46, 23, 52227), 0)
2025-04-19 15:46:23,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,061 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:46:23,061 - sqlalchemy.engine.Engine - INFO - [cached since 5.773s ago] ('620d3c6f-95fd-484e-aa85-ac44186c60a2',)
2025-04-19 15:46:23,061 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:46:23,062 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:46:23,062 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:46:23,062 - sqlalchemy.engine.Engine - INFO - [cached since 5.773s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 46, 23, 62220), '620d3c6f-95fd-484e-aa85-ac44186c60a2')
2025-04-19 15:46:23,063 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,069 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:46:23,069 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 15:46:23,070 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 15:46:23,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,071 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:46:23,071 - sqlalchemy.engine.Engine - INFO - [cached since 5.793s ago] ('871066c7-5730-4c97-adcf-087f95e18062', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(t_windtaskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fd975df0-30ee-47c8-a3eb-415bed264f1d', datetime.datetime(2025, 4, 19, 15, 46, 23, 70227), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(t_windtaskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 46, 23, 71285), datetime.datetime(2025, 4, 19, 15, 46, 23, 71285), 0)
2025-04-19 15:46:23,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,078 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 871066c7-5730-4c97-adcf-087f95e18062
2025-04-19 15:46:23,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,079 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:46:23,079 - sqlalchemy.engine.Engine - INFO - [cached since 5.792s ago] ('871066c7-5730-4c97-adcf-087f95e18062',)
2025-04-19 15:46:23,080 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:46:23,081 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:46:23,081 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:46:23,081 - sqlalchemy.engine.Engine - INFO - [cached since 5.792s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 46, 23, 81227), '871066c7-5730-4c97-adcf-087f95e18062')
2025-04-19 15:46:23,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,088 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,088 - sqlalchemy.engine.Engine - INFO - SELECT id FROM t_windtaskrecord WHERE id = %s
2025-04-19 15:46:23,088 - sqlalchemy.engine.Engine - INFO - [cached since 5.772s ago] ('fd975df0-30ee-47c8-a3eb-415bed264f1d',)
2025-04-19 15:46:23,089 - services.execution.block_executor - INFO - 从数据库 t_windtaskrecord.id 获取值: fd975df0-30ee-47c8-a3eb-415bed264f1d
2025-04-19 15:46:23,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,090 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:46:23,090 - services.execution.handlers.foundation - INFO - 任务 fd975df0-30ee-47c8-a3eb-415bed264f1d 打印: ['fd975df0-30ee-47c8-a3eb-415bed264f1d']
2025-04-19 15:46:23,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,091 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:46:23,091 - sqlalchemy.engine.Engine - INFO - [cached since 5.772s ago] ('51e7affc-8096-4718-8979-6befc5229006', 1, '{"success": true, "message": "打印成功", "output": {"message": ["fd975df0-30ee-47c8-a3eb-415bed264f1d"]}}', 1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fd975df0-30ee-47c8-a3eb-415bed264f1d', datetime.datetime(2025, 4, 19, 15, 46, 23, 91236), datetime.datetime(2025, 4, 19, 15, 46, 23, 91236), 0)
2025-04-19 15:46:23,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,098 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,099 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:46:23,099 - sqlalchemy.engine.Engine - INFO - [cached since 5.812s ago] ('871066c7-5730-4c97-adcf-087f95e18062',)
2025-04-19 15:46:23,099 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:46:23,100 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:46:23,100 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:46:23,100 - sqlalchemy.engine.Engine - INFO - [cached since 5.772s ago] (datetime.datetime(2025, 4, 19, 15, 46, 23, 100276), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 46, 23, 100276), '871066c7-5730-4c97-adcf-087f95e18062')
2025-04-19 15:46:23,100 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,107 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,108 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:46:23,108 - sqlalchemy.engine.Engine - INFO - [cached since 5.789s ago] ('5050515b-c81e-478a-a503-e43a11b06129', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["fd975df0-30ee-47c8-a3eb-415bed264f1d"]}}]}}', -1, 'c8eb7b39-28da-4355-a65e-860c813dcc84', 'fd975df0-30ee-47c8-a3eb-415bed264f1d', datetime.datetime(2025, 4, 19, 15, 46, 23, 108228), datetime.datetime(2025, 4, 19, 15, 46, 23, 108228), 0)
2025-04-19 15:46:23,109 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,118 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:46:23,118 - sqlalchemy.engine.Engine - INFO - [cached since 5.831s ago] ('620d3c6f-95fd-484e-aa85-ac44186c60a2',)
2025-04-19 15:46:23,119 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:46:23,119 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:46:23,119 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:46:23,119 - sqlalchemy.engine.Engine - INFO - [cached since 5.791s ago] (datetime.datetime(2025, 4, 19, 15, 46, 23, 119257), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 15, 46, 23, 119257), '620d3c6f-95fd-484e-aa85-ac44186c60a2')
2025-04-19 15:46:23,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,127 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,128 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:46:23,128 - sqlalchemy.engine.Engine - INFO - [cached since 5.771s ago] (datetime.datetime(2025, 4, 19, 15, 46, 23, 127221), '任务执行成功', 1000, 83, datetime.datetime(2025, 4, 19, 15, 46, 23, 128322), 'fd975df0-30ee-47c8-a3eb-415bed264f1d')
2025-04-19 15:46:23,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: fd975df0-30ee-47c8-a3eb-415bed264f1d, 结果: True
2025-04-19 15:46:23,819 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:46:23,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,821 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:23,821 - sqlalchemy.engine.Engine - INFO - [cached since 6.7s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:23,823 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET if_enable=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:46:23,823 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (0, datetime.datetime(2025, 4, 19, 15, 46, 23, 823423), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:46:23,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,838 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,838 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:23,838 - sqlalchemy.engine.Engine - INFO - [cached since 6.718s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:23,840 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,841 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:23,841 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:46:23,842 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:46:23,843 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:46:23,843 - sqlalchemy.engine.Engine - INFO - [cached since 6.699s ago] (0, datetime.datetime(2025, 4, 19, 15, 46, 23, 843320), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:46:23,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:23,850 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0310秒
2025-04-19 15:46:26,937 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:46:26,937 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:26,938 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:26,938 - sqlalchemy.engine.Engine - INFO - [cached since 9.817s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:26,939 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:46:26,939 - sqlalchemy.engine.Engine - INFO - [cached since 3.098s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:46:26,940 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:46:26,941 - sqlalchemy.engine.Engine - INFO - [cached since 9.796s ago] (0, datetime.datetime(2025, 4, 19, 15, 46, 26, 940101), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:46:26,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:26,950 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0140秒
2025-04-19 15:46:28,046 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:46:28,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:28,047 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:28,047 - sqlalchemy.engine.Engine - INFO - [cached since 10.93s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:28,048 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:46:28,049 - sqlalchemy.engine.Engine - INFO - [cached since 4.208s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:46:28,050 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:46:28,050 - sqlalchemy.engine.Engine - INFO - [cached since 10.91s ago] (0, datetime.datetime(2025, 4, 19, 15, 46, 28, 50322), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:46:28,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:28,058 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0120秒
2025-04-19 15:46:28,858 - root - INFO - 请求开始: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 来自 127.0.0.1
2025-04-19 15:46:28,860 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:46:28,860 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:46:28,860 - sqlalchemy.engine.Engine - INFO - [cached since 11.74s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84',)
2025-04-19 15:46:28,861 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.def_id = %s AND t_windtaskrecord.status = %s
2025-04-19 15:46:28,861 - sqlalchemy.engine.Engine - INFO - [cached since 5.021s ago] ('c8eb7b39-28da-4355-a65e-860c813dcc84', 1001)
2025-04-19 15:46:28,863 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:46:28,863 - sqlalchemy.engine.Engine - INFO - [cached since 11.72s ago] (0, datetime.datetime(2025, 4, 19, 15, 46, 28, 863874), 'c8eb7b39-28da-4355-a65e-860c813dcc84')
2025-04-19 15:46:28,864 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:46:28,878 - root - INFO - 请求完成: POST /api/wind-task-edit/stop-all/c8eb7b39-28da-4355-a65e-860c813dcc84 状态码: 200 耗时: 0.0196秒
2025-04-19 15:47:12,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:47:12,983 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:47:12,983 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 19, 14, 47, 12, 982601))
2025-04-19 15:47:12,985 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:47:27,889 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:47:27,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:47:27,890 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:47:27,890 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:47:27,890 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:47:27,890 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:47:27,890 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:47:27,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:47:27,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:47:27,891 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:47:27,891 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:47:27,891 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:47:27,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:47:27,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:47:27,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:47:27,891 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:47:27,892 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:47:27,892 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:47:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:47:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:47:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:47:27,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:47:27,892 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:47:27,892 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:47:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:47:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:47:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:47:27,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:47:27,892 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:47:27,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:48:13,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:48:13,008 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:48:13,008 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 14, 48, 13, 7617))
2025-04-19 15:48:13,009 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:48:27,910 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:48:27,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:48:27,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:48:27,910 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:48:27,911 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:48:27,911 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:48:27,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:48:27,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:48:27,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:48:27,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:48:27,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:48:27,912 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:48:27,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:48:27,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:48:27,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:48:27,913 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:48:27,913 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:48:27,913 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:48:27,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:48:27,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:48:27,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:48:27,913 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:48:27,913 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:48:27,914 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:48:27,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:48:27,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:48:27,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:48:27,914 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:48:27,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:48:27,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:49:13,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:49:13,012 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:49:13,012 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 14, 49, 13, 11042))
2025-04-19 15:49:13,014 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:49:27,938 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:49:27,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:49:27,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:49:27,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:49:27,941 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:49:27,941 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:49:27,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:49:27,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:49:27,943 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:49:27,943 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:49:27,943 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:49:27,943 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:49:27,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:49:27,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:49:27,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:49:27,944 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:49:27,944 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:49:27,944 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:49:27,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:49:27,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:49:27,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:49:27,944 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:49:27,945 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:49:27,945 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:49:27,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:49:27,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:49:27,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:49:27,945 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:49:27,945 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:49:27,949 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:50:13,023 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:50:13,024 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:50:13,024 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 50, 13, 23223))
2025-04-19 15:50:13,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:50:42,952 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:50:42,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:50:42,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:50:42,953 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:50:42,953 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:50:42,953 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:50:42,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:50:42,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:50:42,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:50:42,954 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:50:42,954 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:50:42,954 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:50:42,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:50:42,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:50:42,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:50:42,954 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:50:42,954 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:50:42,955 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:50:42,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:50:42,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:50:42,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:50:42,955 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:50:42,955 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:50:42,955 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:50:42,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:50:42,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:50:42,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:50:42,955 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:50:42,955 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:50:42,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:51:13,025 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:51:13,025 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:51:13,025 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 51, 13, 24545))
2025-04-19 15:51:13,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:51:43,007 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:51:43,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:51:43,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:51:43,009 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:51:43,009 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:51:43,009 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:51:43,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:51:43,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:51:43,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:51:43,010 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:51:43,010 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:51:43,010 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:51:43,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:51:43,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:51:43,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:51:43,011 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:51:43,011 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:51:43,011 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:51:43,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:51:43,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:51:43,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:51:43,012 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:51:43,012 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:51:43,013 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:51:43,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:51:43,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:51:43,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:51:43,013 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:51:43,013 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:51:43,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:52:13,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:52:13,042 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:52:13,043 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 52, 13, 41577))
2025-04-19 15:52:13,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:52:43,039 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:52:43,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:52:43,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:52:43,041 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:52:43,041 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:52:43,041 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:52:43,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:52:43,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:52:43,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:52:43,043 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:52:43,043 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:52:43,043 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:52:43,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:52:43,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:52:43,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:52:43,044 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:52:43,044 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:52:43,044 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:52:43,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:52:43,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:52:43,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:52:43,045 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:52:43,045 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:52:43,045 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:52:43,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:52:43,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:52:43,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:52:43,046 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:52:43,046 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:52:43,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:53:13,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:53:13,050 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:53:13,050 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 53, 13, 48511))
2025-04-19 15:53:13,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:53:43,055 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:53:43,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:53:43,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:53:43,055 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:53:43,055 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:53:43,055 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:53:43,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:53:43,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:53:43,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:53:43,056 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:53:43,056 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:53:43,056 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:53:43,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:53:43,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:53:43,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:53:43,057 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:53:43,057 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:53:43,057 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:53:43,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:53:43,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:53:43,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:53:43,057 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:53:43,057 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:53:43,057 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:53:43,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:53:43,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:53:43,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:53:43,058 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:53:43,058 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:53:43,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:54:13,067 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:54:13,068 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:54:13,068 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 54, 13, 67486))
2025-04-19 15:54:13,069 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:54:43,104 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:54:43,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:54:43,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:54:43,106 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:54:43,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:54:43,106 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:54:43,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:54:43,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:54:43,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:54:43,107 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:54:43,107 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:54:43,107 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:54:43,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:54:43,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:54:43,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:54:43,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:54:43,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:54:43,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:54:43,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:54:43,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:54:43,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:54:43,110 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:54:43,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:54:43,110 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:54:43,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:54:43,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:54:43,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:54:43,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:54:43,112 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:54:43,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:55:13,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:55:13,076 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:55:13,076 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 55, 13, 74731))
2025-04-19 15:55:13,078 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:55:43,162 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:55:43,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:55:43,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:55:43,163 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:55:43,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:55:43,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:55:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:55:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:55:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:55:43,164 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:55:43,164 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:55:43,164 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:55:43,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:55:43,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:55:43,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:55:43,164 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:55:43,164 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:55:43,164 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:55:43,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:55:43,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:55:43,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:55:43,165 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:55:43,165 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:55:43,165 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:55:43,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:55:43,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:55:43,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:55:43,165 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:55:43,165 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:55:43,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:56:13,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:56:13,100 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:56:13,100 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (1001, datetime.datetime(2025, 4, 19, 14, 56, 13, 99850))
2025-04-19 15:56:13,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:56:43,195 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:56:43,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:56:43,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:56:43,195 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:56:43,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:56:43,196 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:56:43,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:56:43,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:56:43,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:56:43,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:56:43,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:56:43,197 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:56:43,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:56:43,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:56:43,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:56:43,197 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:56:43,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:56:43,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:56:43,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:56:43,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:56:43,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:56:43,200 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:56:43,200 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:56:43,200 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:56:43,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:56:43,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:56:43,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:56:43,200 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:56:43,200 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:56:43,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:57:13,116 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:13,117 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.status = %s AND t_windtaskrecord.first_executor_time < %s
2025-04-19 15:57:13,118 - sqlalchemy.engine.Engine - INFO - [cached since 660.2s ago] (1001, datetime.datetime(2025, 4, 19, 14, 57, 13, 115248))
2025-04-19 15:57:13,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:43,210 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 15:57:43,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:57:43,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:57:43,211 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 15:57:43,211 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 15:57:43,211 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 15:57:43,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 15:57:43,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:57:43,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:57:43,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 15:57:43,212 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 15:57:43,213 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 15:57:43,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 15:57:43,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:57:43,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:57:43,214 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 15:57:43,214 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 15:57:43,214 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 15:57:43,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 15:57:43,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:57:43,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 15:57:43,215 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 15:57:43,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 15:57:43,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 15:57:43,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 15:57:43,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:57:43,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:57:43,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 15:57:43,218 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 15:57:43,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 15:57:48,118 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:57:48,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,119 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:57:48,119 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('9b114d4b-5cf2-4b46-8211-d9b0c653880d',)
2025-04-19 15:57:48,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,121 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,122 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:57:48,122 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('9b114d4b-5cf2-4b46-8211-d9b0c653880d',)
2025-04-19 15:57:48,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,123 - services.task_edit_service - INFO - 启动普通任务: 9b114d4b-5cf2-4b46-8211-d9b0c653880d
2025-04-19 15:57:48,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,124 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:57:48,124 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] (1, datetime.datetime(2025, 4, 19, 15, 57, 48, 124814), '9b114d4b-5cf2-4b46-8211-d9b0c653880d')
2025-04-19 15:57:48,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,140 - services.task_edit_service - INFO - 更新任务定义状态为运行中: 9b114d4b-5cf2-4b46-8211-d9b0c653880d
2025-04-19 15:57:48,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,141 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:57:48,141 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('9b114d4b-5cf2-4b46-8211-d9b0c653880d',)
2025-04-19 15:57:48,142 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:57:48,143 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('60df93f7-2791-4dfe-bca8-fd28fe0bf167', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'jj', 6, datetime.datetime(2025, 4, 19, 15, 57, 48, 142601), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (1231 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 57, 48, 142601), datetime.datetime(2025, 4, 19, 15, 57, 48, 142601), 0)
2025-04-19 15:57:48,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,153 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:57:48,154 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('60df93f7-2791-4dfe-bca8-fd28fe0bf167',)
2025-04-19 15:57:48,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,156 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 60df93f7-2791-4dfe-bca8-fd28fe0bf167 (优先级 1) 添加到队列 0
2025-04-19 15:57:48,156 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0386秒
2025-04-19 15:57:48,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 60df93f7-2791-4dfe-bca8-fd28fe0bf167, 优先级: 1
2025-04-19 15:57:48,224 - services.execution.task_executor - DEBUG - 任务 60df93f7-2791-4dfe-bca8-fd28fe0bf167 设置超时时间: 3600秒
2025-04-19 15:57:48,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,226 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:57:48,226 - sqlalchemy.engine.Engine - INFO - [cached since 691.1s ago] ('60df93f7-2791-4dfe-bca8-fd28fe0bf167',)
2025-04-19 15:57:48,227 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:57:48,227 - sqlalchemy.engine.Engine - INFO - [cached since 691.1s ago] ('9b114d4b-5cf2-4b46-8211-d9b0c653880d',)
2025-04-19 15:57:48,228 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:57:48,228 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] (datetime.datetime(2025, 4, 19, 15, 57, 48, 227355), datetime.datetime(2025, 4, 19, 15, 57, 48, 227355), '60df93f7-2791-4dfe-bca8-fd28fe0bf167')
2025-04-19 15:57:48,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,235 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:57:48,236 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 57, 48, 235816), '60df93f7-2791-4dfe-bca8-fd28fe0bf167')
2025-04-19 15:57:48,237 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,244 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:57:48,245 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,245 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:57:48,245 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('c8e5dd70-110f-4e9f-964c-85551157a720', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 244823), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 57, 48, 245823), datetime.datetime(2025, 4, 19, 15, 57, 48, 245823), 0)
2025-04-19 15:57:48,246 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,254 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,254 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,254 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('c8e5dd70-110f-4e9f-964c-85551157a720',)
2025-04-19 15:57:48,255 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:57:48,256 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:57:48,256 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,256 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 57, 48, 256817), 'c8e5dd70-110f-4e9f-964c-85551157a720')
2025-04-19 15:57:48,257 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,264 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:57:48,264 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 2 个子块
2025-04-19 15:57:48,264 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-19 15:57:48,265 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,265 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:57:48,266 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('7e7d97b7-6952-463c-88be-0004b33ee0dc', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "bi", "required": true}}', '{"keyRoute": "bi"}', '{}', 'CSelectAgvBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 264825), 1001, '{"keyRoute": {"type": "Simple", "value": "bi", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 57, 48, 265816), datetime.datetime(2025, 4, 19, 15, 57, 48, 265816), 0)
2025-04-19 15:57:48,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,275 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 7e7d97b7-6952-463c-88be-0004b33ee0dc
2025-04-19 15:57:48,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,275 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,276 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('7e7d97b7-6952-463c-88be-0004b33ee0dc',)
2025-04-19 15:57:48,277 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:57:48,277 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:57:48,277 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,278 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 57, 48, 277817), '7e7d97b7-6952-463c-88be-0004b33ee0dc')
2025-04-19 15:57:48,278 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,284 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:57:48,284 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 模拟调用API: select_agv, 参数: {'keyRoute': 'bi'}
2025-04-19 15:57:48,284 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 生成模拟响应: select_agv, 响应: {'success': True, 'message': '[测试模式] select_agv 操作成功', 'data': {'agvId': 'MOCK-AGV-5e70fca3'}}
2025-04-19 15:57:48,284 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: MOCK-AGV-5e70fca3
2025-04-19 15:57:48,284 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-19 15:57:48,284 - services.execution.handlers.robot_scheduling - INFO - 块 b2(ID:2) 有 1 个子块
2025-04-19 15:57:48,284 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2, 3]
2025-04-19 15:57:48,284 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: MOCK-AGV-5e70fca3
2025-04-19 15:57:48,284 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 2 个
2025-04-19 15:57:48,285 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:IfBp, 关系:direct_child)
2025-04-19 15:57:48,285 - services.execution.handlers.robot_scheduling - INFO - 2. b3(ID:3, 类型:CAgvOperationBp, 关系:nested_child)
2025-04-19 15:57:48,285 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-19 15:57:48,285 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-19 15:57:48,285 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-19 15:57:48,285 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: IfBp
2025-04-19 15:57:48,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,286 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:57:48,287 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('4a78d6dd-8604-411e-80bd-3686fd8a68d9', 'b2', '2', '', '{"condition": {"type": "Simple", "value": true, "required": true}}', '{"condition": true}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3"}', 'IfBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 286819), 1001, '{"condition": {"type": "Simple", "value": true, "required": true}}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3"}', 1, datetime.datetime(2025, 4, 19, 15, 57, 48, 286819), datetime.datetime(2025, 4, 19, 15, 57, 48, 286819), 0)
2025-04-19 15:57:48,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,296 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 4a78d6dd-8604-411e-80bd-3686fd8a68d9
2025-04-19 15:57:48,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,296 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,296 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('4a78d6dd-8604-411e-80bd-3686fd8a68d9',)
2025-04-19 15:57:48,297 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-19 15:57:48,297 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-19 15:57:48,298 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,298 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('{"selectedAgvId": "MOCK-AGV-5e70fca3"}', '执行中', "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3'}", '{"blocks": {"b2": {"selectedAgvId": "MOCK-AGV-5e70fca3"}}}', '执行中', datetime.datetime(2025, 4, 19, 15, 57, 48, 298817), '4a78d6dd-8604-411e-80bd-3686fd8a68d9')
2025-04-19 15:57:48,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,306 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-19 15:57:48,306 - services.execution.handlers.progress - INFO - 条件判断块执行 - ID: 2, 条件结果: True
2025-04-19 15:57:48,306 - services.execution.handlers.progress - INFO - 条件为真但无true分支，执行default分支
2025-04-19 15:57:48,306 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 2, 分支: default
2025-04-19 15:57:48,306 - services.execution.block_executor - INFO - 开始执行块 2 的 default 分支下的 1 个子块
2025-04-19 15:57:48,307 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b3, ID: 3, 类型: CAgvOperationBp
2025-04-19 15:57:48,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,308 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:57:48,308 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('bbbf39c7-cdd0-4b3d-84ec-8a04c0e571db', 'b3', '3', '', '{"targetSiteLabel": {"type": "Simple", "value": "api", "required": true}}', '{"targetSiteLabel": "api"}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3"}', 'CAgvOperationBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 307816), 1001, '{"targetSiteLabel": {"type": "Simple", "value": "api", "required": true}}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3"}', 1, datetime.datetime(2025, 4, 19, 15, 57, 48, 308817), datetime.datetime(2025, 4, 19, 15, 57, 48, 308817), 0)
2025-04-19 15:57:48,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,316 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: bbbf39c7-cdd0-4b3d-84ec-8a04c0e571db
2025-04-19 15:57:48,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,316 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,317 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('bbbf39c7-cdd0-4b3d-84ec-8a04c0e571db',)
2025-04-19 15:57:48,317 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-19 15:57:48,318 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-19 15:57:48,318 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,318 - sqlalchemy.engine.Engine - INFO - [cached since 0.01983s ago] ('{"selectedAgvId": "MOCK-AGV-5e70fca3"}', '执行中', "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3'}", '{"blocks": {"b3": {"selectedAgvId": "MOCK-AGV-5e70fca3"}}}', '执行中', datetime.datetime(2025, 4, 19, 15, 57, 48, 318578), 'bbbf39c7-cdd0-4b3d-84ec-8a04c0e571db')
2025-04-19 15:57:48,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,325 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-19 15:57:48,325 - services.execution.handlers.robot_scheduling - INFO - 找到块 b3(ID:3) 专用的机器人ID: MOCK-AGV-5e70fca3
2025-04-19 15:57:48,325 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b3(ID:3) 使用机器人: MOCK-AGV-5e70fca3, 目标站点: api
2025-04-19 15:57:48,325 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 模拟调用API: agv_operation, 参数: {'targetSiteLabel': 'api', 'vehicle': 'MOCK-AGV-5e70fca3'}
2025-04-19 15:57:48,326 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 生成模拟响应: agv_operation, 响应: {'success': True, 'message': '[测试模式] agv_operation 操作成功', 'data': {'success': True, 'taskId': 'MOCK-OP-04d9e47c'}}
2025-04-19 15:57:48,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,327 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:57:48,327 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('3567755c-249a-47db-a16c-017a2fcc7e22', 1, '{"success": true, "message": "机器人移动成功，目标站点: api, 任务ID: MOCK-OP-04d9e47c", "data": {"success": true, "taskId": "MOCK-OP-04d9e47c"}}', 3, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 327247), datetime.datetime(2025, 4, 19, 15, 57, 48, 327247), 0)
2025-04-19 15:57:48,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,336 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,336 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('bbbf39c7-cdd0-4b3d-84ec-8a04c0e571db',)
2025-04-19 15:57:48,337 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-19 15:57:48,337 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['containerName']
2025-04-19 15:57:48,337 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord 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 t_windblockrecord.id = %s
2025-04-19 15:57:48,337 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] ('{"containerName": ""}', datetime.datetime(2025, 4, 19, 15, 57, 48, 337885), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3', 'taskId': 'MOCK-OP-04d9e47c', 'containerName': ''}", '{"blocks": {"b3": {"containerName": ""}}}', '执行成功', datetime.datetime(2025, 4, 19, 15, 57, 48, 337885), 'bbbf39c7-cdd0-4b3d-84ec-8a04c0e571db')
2025-04-19 15:57:48,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,346 - services.execution.handlers.progress - INFO - 分支 default 执行成功
2025-04-19 15:57:48,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,347 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:57:48,348 - sqlalchemy.engine.Engine - INFO - [cached since 691s ago] ('2159b854-2ef6-420b-8364-536d66b624d9', 1, '{"success": true, "message": "条件判断成功，执行default分支完成", "output": {"condition": true, "branch": "default", "executed": true}}', 2, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 347900), datetime.datetime(2025, 4, 19, 15, 57, 48, 347900), 0)
2025-04-19 15:57:48,349 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,357 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,358 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,358 - sqlalchemy.engine.Engine - INFO - [cached since 691.1s ago] ('4a78d6dd-8604-411e-80bd-3686fd8a68d9',)
2025-04-19 15:57:48,359 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-19 15:57:48,359 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-19 15:57:48,361 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,362 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] (datetime.datetime(2025, 4, 19, 15, 57, 48, 360170), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3', 'taskId': 'MOCK-OP-04d9e47c', 'containerName': ''}", '执行成功', datetime.datetime(2025, 4, 19, 15, 57, 48, 361181), '4a78d6dd-8604-411e-80bd-3686fd8a68d9')
2025-04-19 15:57:48,363 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,372 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 的子块执行成功
2025-04-19 15:57:48,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,381 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:57:48,381 - sqlalchemy.engine.Engine - INFO - [cached since 691.1s ago] ('470a6207-bf1b-4f1a-b967-f3bd3364b1a9', 1, '{"success": true, "message": "选择执行机器人成功: MOCK-AGV-5e70fca3，子块执行成功", "data": {"agvId": "MOCK-AGV-5e70fca3"}, "childBlockResults": [{"child_id": 2, "su ... (495 characters truncated) ... ": true, "branch": "default", "results": [{"child_id": 2, "success": true, "output": {"condition": true, "branch": "default", "executed": true}}]}}}}', 1, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 381190), datetime.datetime(2025, 4, 19, 15, 57, 48, 381190), 0)
2025-04-19 15:57:48,382 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,390 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,390 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,391 - sqlalchemy.engine.Engine - INFO - [cached since 691.1s ago] ('7e7d97b7-6952-463c-88be-0004b33ee0dc',)
2025-04-19 15:57:48,391 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:57:48,392 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-19 15:57:48,393 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord 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 t_windblockrecord.id = %s
2025-04-19 15:57:48,393 - sqlalchemy.engine.Engine - INFO - [cached since 0.0555s ago] ('{"selectedAgvId": "MOCK-AGV-5e70fca3"}', datetime.datetime(2025, 4, 19, 15, 57, 48, 392215), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3', 'taskId': 'MOCK-OP-04d9e47c', 'containerName': ''}", '{"blocks": {"b1": {"selectedAgvId": "MOCK-AGV-5e70fca3"}}}', '执行成功', datetime.datetime(2025, 4, 19, 15, 57, 48, 393208), '7e7d97b7-6952-463c-88be-0004b33ee0dc')
2025-04-19 15:57:48,395 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,402 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b4, ID: 4, 类型: CSelectAgvBp
2025-04-19 15:57:48,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,412 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:57:48,413 - sqlalchemy.engine.Engine - INFO - [cached since 691.1s ago] ('13ffa1b0-fad0-497b-a5da-be85f5079b72', 'b4', '4', '', '{"keyRoute": {"type": "Simple", "value": "abk", "required": true}}', '{"keyRoute": "abk"}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3", "taskId": "MOCK-OP-04d9e47c", "containerName": ""}', 'CSelectAgvBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 402877), 1001, '{"keyRoute": {"type": "Simple", "value": "abk", "required": true}}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3", "taskId": "MOCK-OP-04d9e47c", "containerName": ""}', 1, datetime.datetime(2025, 4, 19, 15, 57, 48, 412876), datetime.datetime(2025, 4, 19, 15, 57, 48, 412876), 0)
2025-04-19 15:57:48,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,432 - services.execution.block_executor - DEBUG - 为子块 4 创建记录, 记录ID: 13ffa1b0-fad0-497b-a5da-be85f5079b72
2025-04-19 15:57:48,433 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,433 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,433 - sqlalchemy.engine.Engine - INFO - [cached since 691.1s ago] ('13ffa1b0-fad0-497b-a5da-be85f5079b72',)
2025-04-19 15:57:48,435 - services.execution.block_executor - INFO - 块 b4 (ID: 4) 设置的变量: []
2025-04-19 15:57:48,435 - services.execution.block_executor - INFO - 为块 b4 存储输出: <class 'NoneType'>
2025-04-19 15:57:48,435 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,436 - sqlalchemy.engine.Engine - INFO - [cached since 0.137s ago] ('null', '执行中', "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3', 'taskId': 'MOCK-OP-04d9e47c', 'containerName': ''}", '{"blocks": {"b4": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 57, 48, 435020), '13ffa1b0-fad0-497b-a5da-be85f5079b72')
2025-04-19 15:57:48,437 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,452 - services.execution.block_executor - INFO - 开始执行子块 4 的处理逻辑
2025-04-19 15:57:48,452 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 模拟调用API: select_agv, 参数: {'keyRoute': 'abk'}
2025-04-19 15:57:48,452 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 生成模拟响应: select_agv, 响应: {'success': True, 'message': '[测试模式] select_agv 操作成功', 'data': {'agvId': 'MOCK-AGV-0f8461e4'}}
2025-04-19 15:57:48,452 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b4(ID:4) 选择的机器人: MOCK-AGV-0f8461e4
2025-04-19 15:57:48,452 - services.execution.handlers.robot_scheduling - INFO - 块 b4(ID:4) 有 1 个子块
2025-04-19 15:57:48,452 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b4 影响的块ID: [5]
2025-04-19 15:57:48,453 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b4(ID:4) 选择的机器人: MOCK-AGV-0f8461e4
2025-04-19 15:57:48,453 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-19 15:57:48,453 - services.execution.handlers.robot_scheduling - INFO - 1. b5(ID:5, 类型:IfElseBp, 关系:direct_child)
2025-04-19 15:57:48,453 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b4 的子块
2025-04-19 15:57:48,453 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 4, 分支: default
2025-04-19 15:57:48,453 - services.execution.block_executor - INFO - 开始执行块 4 的 default 分支下的 1 个子块
2025-04-19 15:57:48,453 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b5, ID: 5, 类型: IfElseBp
2025-04-19 15:57:48,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,454 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:57:48,454 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('18aa0f0f-94aa-47fe-b85b-63484813568c', 'b5', '5', '', '{"conditionIf": {"type": "Simple", "value": true, "required": true}}', '{"conditionIf": true}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3", "taskId": "MOCK-OP-04d9e47c", "containerName": "", "agv_for_block_5": "MOCK-AGV-0f8461e4", "agv_for_b5": "MOCK-AGV-0f8461e4"}', 'IfElseBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 453024), 1001, '{"conditionIf": {"type": "Simple", "value": true, "required": true}}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3", "taskId": "MOCK-OP-04d9e47c", "containerName": "", "agv_for_block_5": "MOCK-AGV-0f8461e4", "agv_for_b5": "MOCK-AGV-0f8461e4"}', 1, datetime.datetime(2025, 4, 19, 15, 57, 48, 454023), datetime.datetime(2025, 4, 19, 15, 57, 48, 454023), 0)
2025-04-19 15:57:48,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,467 - services.execution.block_executor - DEBUG - 为子块 5 创建记录, 记录ID: 18aa0f0f-94aa-47fe-b85b-63484813568c
2025-04-19 15:57:48,467 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,467 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,467 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('18aa0f0f-94aa-47fe-b85b-63484813568c',)
2025-04-19 15:57:48,468 - services.execution.block_executor - INFO - 块 b5 (ID: 5) 设置的变量: []
2025-04-19 15:57:48,468 - services.execution.block_executor - INFO - 为块 b5 存储输出: ['selectedAgvId']
2025-04-19 15:57:48,468 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,469 - sqlalchemy.engine.Engine - INFO - [cached since 0.1707s ago] ('{"selectedAgvId": "MOCK-AGV-0f8461e4"}', '执行中', "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3', 'taskId': 'MOCK-OP-04d9e47c', 'containerName': '', 'agv_for_block_5': 'MOCK-AGV-0f8461e4', 'agv_for_b5': 'MOCK-AGV-0f8461e4'}", '{"blocks": {"b5": {"selectedAgvId": "MOCK-AGV-0f8461e4"}}}', '执行中', datetime.datetime(2025, 4, 19, 15, 57, 48, 468841), '18aa0f0f-94aa-47fe-b85b-63484813568c')
2025-04-19 15:57:48,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,482 - services.execution.block_executor - INFO - 开始执行子块 5 的处理逻辑
2025-04-19 15:57:48,483 - services.execution.handlers.progress - INFO - 条件为真，为else分支创建未执行记录
2025-04-19 15:57:48,483 - services.execution.handlers.progress - INFO - 分支 else 下没有子块，无需创建未执行记录
2025-04-19 15:57:48,483 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 5, 分支: if
2025-04-19 15:57:48,483 - services.execution.block_executor - INFO - 开始执行块 5 的 if 分支下的 1 个子块
2025-04-19 15:57:48,484 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b6, ID: 6, 类型: VehicleStationBp
2025-04-19 15:57:48,484 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,485 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:57:48,485 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('ff31e993-6633-436a-abd6-4f5fdbf5b4c9', 'b6', '6', '', '{"vehicle": {"type": "Expression", "value": "blocks.b4.selectedAgvId", "required": true}}', '{"vehicle": "blocks.b4.selectedAgvId"}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3", "taskId": "MOCK-OP-04d9e47c", "containerName": "", "agv_for_block_5": "MOCK-AGV-0f8461e4", "agv_for_b5": "MOCK-AGV-0f8461e4"}', 'VehicleStationBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 484213), 1001, '{"vehicle": {"type": "Expression", "value": "blocks.b4.selectedAgvId", "required": true}}', '{"agv_for_block_2": "MOCK-AGV-5e70fca3", "agv_for_b2": "MOCK-AGV-5e70fca3", "agv_for_block_3": "MOCK-AGV-5e70fca3", "agv_for_b3": "MOCK-AGV-5e70fca3", "taskId": "MOCK-OP-04d9e47c", "containerName": "", "agv_for_block_5": "MOCK-AGV-0f8461e4", "agv_for_b5": "MOCK-AGV-0f8461e4"}', 1, datetime.datetime(2025, 4, 19, 15, 57, 48, 485251), datetime.datetime(2025, 4, 19, 15, 57, 48, 485251), 0)
2025-04-19 15:57:48,485 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,498 - services.execution.block_executor - DEBUG - 为子块 6 创建记录, 记录ID: ff31e993-6633-436a-abd6-4f5fdbf5b4c9
2025-04-19 15:57:48,498 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,498 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,498 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('ff31e993-6633-436a-abd6-4f5fdbf5b4c9',)
2025-04-19 15:57:48,499 - services.execution.block_executor - INFO - 块 b6 (ID: 6) 设置的变量: []
2025-04-19 15:57:48,499 - services.execution.block_executor - INFO - 为块 b6 存储输出: <class 'NoneType'>
2025-04-19 15:57:48,499 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,499 - sqlalchemy.engine.Engine - INFO - [cached since 0.2011s ago] ('null', '执行中', "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3', 'taskId': 'MOCK-OP-04d9e47c', 'containerName': '', 'agv_for_block_5': 'MOCK-AGV-0f8461e4', 'agv_for_b5': 'MOCK-AGV-0f8461e4'}", '{"blocks": {"b6": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 57, 48, 499714), 'ff31e993-6633-436a-abd6-4f5fdbf5b4c9')
2025-04-19 15:57:48,500 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,511 - services.execution.block_executor - INFO - 开始执行子块 6 的处理逻辑
2025-04-19 15:57:48,511 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 模拟调用API: vehicle_station, 参数: {'vehicle': 'MOCK-AGV-0f8461e4'}
2025-04-19 15:57:48,511 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 生成模拟响应: vehicle_station, 响应: {'success': True, 'message': '[测试模式] vehicle_station 操作成功', 'data': {'station': 'MOCK-STATION-be895', 'lastStation': 'MOCK-LAST-STATION-08d18'}}
2025-04-19 15:57:48,511 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,512 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:57:48,512 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('db4f5bde-2a01-4a0c-ae01-98ae0af9b14b', 1, '{"success": true, "message": "获取机器人 MOCK-AGV-0f8461e4 位置成功，当前位置: MOCK-STATION-be895, 上次位置: MOCK-LAST-STATION-08d18", "data": {"station": "MOCK-STATION-be895", "lastStation": "MOCK-LAST-STATION-08d18"}}', 6, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 512901), datetime.datetime(2025, 4, 19, 15, 57, 48, 512901), 0)
2025-04-19 15:57:48,512 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,519 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,519 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('ff31e993-6633-436a-abd6-4f5fdbf5b4c9',)
2025-04-19 15:57:48,520 - services.execution.block_executor - INFO - 块 b6 (ID: 6) 设置的变量: []
2025-04-19 15:57:48,520 - services.execution.block_executor - INFO - 为块 b6 存储输出: ['station', 'lastStation']
2025-04-19 15:57:48,520 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord 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 t_windblockrecord.id = %s
2025-04-19 15:57:48,520 - sqlalchemy.engine.Engine - INFO - [cached since 0.1831s ago] ('{"station": "MOCK-STATION-be895", "lastStation": "MOCK-LAST-STATION-08d18"}', datetime.datetime(2025, 4, 19, 15, 57, 48, 520905), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3' ... (53 characters truncated) ... 'agv_for_block_5': 'MOCK-AGV-0f8461e4', 'agv_for_b5': 'MOCK-AGV-0f8461e4', 'station': 'MOCK-STATION-be895', 'lastStation': 'MOCK-LAST-STATION-08d18'}", '{"blocks": {"b6": {"station": "MOCK-STATION-be895", "lastStation": "MOCK-LAST-STATION-08d18"}}}', '执行成功', datetime.datetime(2025, 4, 19, 15, 57, 48, 520905), 'ff31e993-6633-436a-abd6-4f5fdbf5b4c9')
2025-04-19 15:57:48,521 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,527 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:57:48,527 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('560f3b53-aaaa-4345-8d61-34e5b6c529f2', 1, '{"success": true, "message": "条件为真，执行if分支成功"}', 5, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 527214), datetime.datetime(2025, 4, 19, 15, 57, 48, 527214), 0)
2025-04-19 15:57:48,528 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,534 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,534 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,534 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('18aa0f0f-94aa-47fe-b85b-63484813568c',)
2025-04-19 15:57:48,535 - services.execution.block_executor - INFO - 块 b5 (ID: 5) 设置的变量: []
2025-04-19 15:57:48,535 - services.execution.block_executor - INFO - 为块 b5 存储输出: ['selectedAgvId']
2025-04-19 15:57:48,535 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,535 - sqlalchemy.engine.Engine - INFO - [cached since 0.1743s ago] (datetime.datetime(2025, 4, 19, 15, 57, 48, 535218), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3' ... (53 characters truncated) ... 'agv_for_block_5': 'MOCK-AGV-0f8461e4', 'agv_for_b5': 'MOCK-AGV-0f8461e4', 'station': 'MOCK-STATION-be895', 'lastStation': 'MOCK-LAST-STATION-08d18'}", '执行成功', datetime.datetime(2025, 4, 19, 15, 57, 48, 535218), '18aa0f0f-94aa-47fe-b85b-63484813568c')
2025-04-19 15:57:48,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,541 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b4 的子块执行成功
2025-04-19 15:57:48,542 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,542 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:57:48,543 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('6654d6c7-c3eb-49c0-9b81-c4504de74df8', 1, '{"success": true, "message": "选择执行机器人成功: MOCK-AGV-0f8461e4，子块执行成功", "data": {"agvId": "MOCK-AGV-0f8461e4"}, "childBlockResults": [{"child_id": 5, "su ... (270 characters truncated) ...  "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 5, "success": true, "output": {}}]}}}}', 4, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 542218), datetime.datetime(2025, 4, 19, 15, 57, 48, 542218), 0)
2025-04-19 15:57:48,543 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,550 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,550 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,551 - sqlalchemy.engine.Engine - INFO - [cached since 691.3s ago] ('13ffa1b0-fad0-497b-a5da-be85f5079b72',)
2025-04-19 15:57:48,553 - services.execution.block_executor - INFO - 块 b4 (ID: 4) 设置的变量: []
2025-04-19 15:57:48,553 - services.execution.block_executor - INFO - 为块 b4 存储输出: ['selectedAgvId']
2025-04-19 15:57:48,553 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord 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 t_windblockrecord.id = %s
2025-04-19 15:57:48,553 - sqlalchemy.engine.Engine - INFO - [cached since 0.2152s ago] ('{"selectedAgvId": "MOCK-AGV-0f8461e4"}', datetime.datetime(2025, 4, 19, 15, 57, 48, 553013), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3' ... (53 characters truncated) ... 'agv_for_block_5': 'MOCK-AGV-0f8461e4', 'agv_for_b5': 'MOCK-AGV-0f8461e4', 'station': 'MOCK-STATION-be895', 'lastStation': 'MOCK-LAST-STATION-08d18'}", '{"blocks": {"b4": {"selectedAgvId": "MOCK-AGV-0f8461e4"}}}', '执行成功', datetime.datetime(2025, 4, 19, 15, 57, 48, 553013), '13ffa1b0-fad0-497b-a5da-be85f5079b72')
2025-04-19 15:57:48,553 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,561 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,561 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:57:48,562 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] ('89f3a452-4e21-4f4e-82e8-fa4f03977ef5', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (835 characters truncated) ... essage": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 5, "success": true, "output": {}}]}}}}]}}', -1, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', '60df93f7-2791-4dfe-bca8-fd28fe0bf167', datetime.datetime(2025, 4, 19, 15, 57, 48, 561200), datetime.datetime(2025, 4, 19, 15, 57, 48, 561200), 0)
2025-04-19 15:57:48,562 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,569 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,569 - sqlalchemy.engine.Engine - INFO - [cached since 691.3s ago] ('c8e5dd70-110f-4e9f-964c-85551157a720',)
2025-04-19 15:57:48,569 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:57:48,569 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:57:48,570 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:57:48,570 - sqlalchemy.engine.Engine - INFO - [cached since 0.2094s ago] (datetime.datetime(2025, 4, 19, 15, 57, 48, 569762), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-5e70fca3', 'agv_for_b2': 'MOCK-AGV-5e70fca3', 'agv_for_block_3': 'MOCK-AGV-5e70fca3', 'agv_for_b3': 'MOCK-AGV-5e70fca3' ... (53 characters truncated) ... 'agv_for_block_5': 'MOCK-AGV-0f8461e4', 'agv_for_b5': 'MOCK-AGV-0f8461e4', 'station': 'MOCK-STATION-be895', 'lastStation': 'MOCK-LAST-STATION-08d18'}", '执行成功', datetime.datetime(2025, 4, 19, 15, 57, 48, 570767), 'c8e5dd70-110f-4e9f-964c-85551157a720')
2025-04-19 15:57:48,570 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,577 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:48,578 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:57:48,578 - sqlalchemy.engine.Engine - INFO - [cached since 691.2s ago] (datetime.datetime(2025, 4, 19, 15, 57, 48, 577499), '任务执行成功', 1000, 341, datetime.datetime(2025, 4, 19, 15, 57, 48, 578500), '60df93f7-2791-4dfe-bca8-fd28fe0bf167')
2025-04-19 15:57:48,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:48,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 60df93f7-2791-4dfe-bca8-fd28fe0bf167, 结果: True
2025-04-19 15:57:59,991 - root - INFO - 请求开始: POST /api/wind-task-edit/run 来自 127.0.0.1
2025-04-19 15:57:59,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:59,993 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:57:59,993 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('9b114d4b-5cf2-4b46-8211-d9b0c653880d',)
2025-04-19 15:57:59,994 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:59,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:59,995 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:57:59,995 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('9b114d4b-5cf2-4b46-8211-d9b0c653880d',)
2025-04-19 15:57:59,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:57:59,996 - services.task_edit_service - INFO - 启动普通任务: 9b114d4b-5cf2-4b46-8211-d9b0c653880d
2025-04-19 15:57:59,997 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:57:59,997 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskdef SET status=%s, updated_at=%s WHERE t_windtaskdef.id = %s
2025-04-19 15:57:59,998 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] (1, datetime.datetime(2025, 4, 19, 15, 57, 59, 997389), '9b114d4b-5cf2-4b46-8211-d9b0c653880d')
2025-04-19 15:57:59,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,016 - services.task_edit_service - INFO - 更新任务定义状态为运行中: 9b114d4b-5cf2-4b46-8211-d9b0c653880d
2025-04-19 15:58:00,016 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,017 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:58:00,017 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('9b114d4b-5cf2-4b46-8211-d9b0c653880d',)
2025-04-19 15:58:00,018 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtaskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 15:58:00,019 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('cac41328-4f36-44b4-bbd3-547a84a1950f', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'jj', 6, datetime.datetime(2025, 4, 19, 15, 58, 0, 18612), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (1231 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 15, 58, 0, 18612), datetime.datetime(2025, 4, 19, 15, 58, 0, 18612), 0)
2025-04-19 15:58:00,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,030 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:58:00,030 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('cac41328-4f36-44b4-bbd3-547a84a1950f',)
2025-04-19 15:58:00,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,032 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 cac41328-4f36-44b4-bbd3-547a84a1950f (优先级 1) 添加到队列 0
2025-04-19 15:58:00,032 - root - INFO - 请求完成: POST /api/wind-task-edit/run 状态码: 200 耗时: 0.0412秒
2025-04-19 15:58:00,093 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: cac41328-4f36-44b4-bbd3-547a84a1950f, 优先级: 1
2025-04-19 15:58:00,094 - services.execution.task_executor - DEBUG - 任务 cac41328-4f36-44b4-bbd3-547a84a1950f 设置超时时间: 3600秒
2025-04-19 15:58:00,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,095 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskrecord.id, t_windtaskrecord.def_id, t_windtaskrecord.def_label, t_windtaskrecord.def_version, t_windtaskrecord.created_on, t_windtaskrecord.ended_on, t_windtaskrecord.ended_reason, t_windtaskrecord.status, t_windtaskrecord.input_params, t_windtaskrecord.path, t_windtaskrecord.agv_id, t_windtaskrecord.parent_task_record_id, t_windtaskrecord.root_task_record_id, t_windtaskrecord.state_description, t_windtaskrecord.executor_time, t_windtaskrecord.first_executor_time, t_windtaskrecord.if_have_child_task, t_windtaskrecord.periodic_task, t_windtaskrecord.priority, t_windtaskrecord.root_block_state_id, t_windtaskrecord.work_stations, t_windtaskrecord.work_types, t_windtaskrecord.task_def_detail, t_windtaskrecord.variables, t_windtaskrecord.call_work_station, t_windtaskrecord.call_work_type, t_windtaskrecord.created_at, t_windtaskrecord.updated_at, t_windtaskrecord.is_deleted 
FROM t_windtaskrecord 
WHERE t_windtaskrecord.id = %s
2025-04-19 15:58:00,095 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('cac41328-4f36-44b4-bbd3-547a84a1950f',)
2025-04-19 15:58:00,096 - sqlalchemy.engine.Engine - INFO - SELECT t_windtaskdef.id, t_windtaskdef.label, t_windtaskdef.created_by, t_windtaskdef.version, t_windtaskdef.detail, t_windtaskdef.template_name, t_windtaskdef.period, t_windtaskdef.periodic_task, t_windtaskdef.status, t_windtaskdef.if_enable, t_windtaskdef.delay, t_windtaskdef.release_sites, t_windtaskdef.create_date, t_windtaskdef.remark, t_windtaskdef.tenant_id, t_windtaskdef.user_token, t_windtaskdef.created_at, t_windtaskdef.updated_at, t_windtaskdef.is_deleted 
FROM t_windtaskdef 
WHERE t_windtaskdef.id = %s
2025-04-19 15:58:00,096 - sqlalchemy.engine.Engine - INFO - [cached since 703s ago] ('9b114d4b-5cf2-4b46-8211-d9b0c653880d',)
2025-04-19 15:58:00,097 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET first_executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:58:00,097 - sqlalchemy.engine.Engine - INFO - [cached since 702.8s ago] (datetime.datetime(2025, 4, 19, 15, 58, 0, 97690), datetime.datetime(2025, 4, 19, 15, 58, 0, 97690), 'cac41328-4f36-44b4-bbd3-547a84a1950f')
2025-04-19 15:58:00,098 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,106 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:58:00,106 - sqlalchemy.engine.Engine - INFO - [cached since 702.8s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 15, 58, 0, 106659), 'cac41328-4f36-44b4-bbd3-547a84a1950f')
2025-04-19 15:58:00,107 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,113 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 15:58:00,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,114 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:58:00,114 - sqlalchemy.engine.Engine - INFO - [cached since 702.8s ago] ('a606cc73-6781-44f0-93df-81da031b72f5', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 113693), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 58, 0, 114701), datetime.datetime(2025, 4, 19, 15, 58, 0, 114701), 0)
2025-04-19 15:58:00,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,124 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,125 - sqlalchemy.engine.Engine - INFO - [cached since 702.8s ago] ('a606cc73-6781-44f0-93df-81da031b72f5',)
2025-04-19 15:58:00,125 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:58:00,125 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:58:00,125 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,125 - sqlalchemy.engine.Engine - INFO - [cached since 702.8s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 58, 0, 125962), 'a606cc73-6781-44f0-93df-81da031b72f5')
2025-04-19 15:58:00,128 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,135 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 15:58:00,136 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 2 个子块
2025-04-19 15:58:00,136 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-19 15:58:00,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,137 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:58:00,137 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('00455400-c6e5-49cc-9458-f1dd2bc9d192', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "bi", "required": true}}', '{"keyRoute": "bi"}', '{}', 'CSelectAgvBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 136095), 1001, '{"keyRoute": {"type": "Simple", "value": "bi", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 19, 15, 58, 0, 137095), datetime.datetime(2025, 4, 19, 15, 58, 0, 137095), 0)
2025-04-19 15:58:00,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,149 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 00455400-c6e5-49cc-9458-f1dd2bc9d192
2025-04-19 15:58:00,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,150 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,150 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('00455400-c6e5-49cc-9458-f1dd2bc9d192',)
2025-04-19 15:58:00,151 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:58:00,151 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 15:58:00,152 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,152 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 58, 0, 152701), '00455400-c6e5-49cc-9458-f1dd2bc9d192')
2025-04-19 15:58:00,153 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,159 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 15:58:00,159 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 模拟调用API: select_agv, 参数: {'keyRoute': 'bi'}
2025-04-19 15:58:00,159 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 生成模拟响应: select_agv, 响应: {'success': True, 'message': '[测试模式] select_agv 操作成功', 'data': {'agvId': 'MOCK-AGV-1e9556d0'}}
2025-04-19 15:58:00,160 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: MOCK-AGV-1e9556d0
2025-04-19 15:58:00,160 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-19 15:58:00,160 - services.execution.handlers.robot_scheduling - INFO - 块 b2(ID:2) 有 1 个子块
2025-04-19 15:58:00,160 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2, 3]
2025-04-19 15:58:00,160 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: MOCK-AGV-1e9556d0
2025-04-19 15:58:00,160 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 2 个
2025-04-19 15:58:00,160 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:IfBp, 关系:direct_child)
2025-04-19 15:58:00,160 - services.execution.handlers.robot_scheduling - INFO - 2. b3(ID:3, 类型:CAgvOperationBp, 关系:nested_child)
2025-04-19 15:58:00,161 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-19 15:58:00,161 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-19 15:58:00,161 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-19 15:58:00,161 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: IfBp
2025-04-19 15:58:00,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,162 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:58:00,162 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('8349ce02-4207-413d-b85c-b460e0d46bc3', 'b2', '2', '', '{"condition": {"type": "Simple", "value": true, "required": true}}', '{"condition": true}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0"}', 'IfBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 161703), 1001, '{"condition": {"type": "Simple", "value": true, "required": true}}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0"}', 1, datetime.datetime(2025, 4, 19, 15, 58, 0, 162703), datetime.datetime(2025, 4, 19, 15, 58, 0, 162703), 0)
2025-04-19 15:58:00,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,169 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 8349ce02-4207-413d-b85c-b460e0d46bc3
2025-04-19 15:58:00,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,170 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,170 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('8349ce02-4207-413d-b85c-b460e0d46bc3',)
2025-04-19 15:58:00,171 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-19 15:58:00,171 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-19 15:58:00,172 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,172 - sqlalchemy.engine.Engine - INFO - [cached since 11.87s ago] ('{"selectedAgvId": "MOCK-AGV-1e9556d0"}', '执行中', "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0'}", '{"blocks": {"b2": {"selectedAgvId": "MOCK-AGV-1e9556d0"}}}', '执行中', datetime.datetime(2025, 4, 19, 15, 58, 0, 172148), '8349ce02-4207-413d-b85c-b460e0d46bc3')
2025-04-19 15:58:00,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,178 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-19 15:58:00,179 - services.execution.handlers.progress - INFO - 条件判断块执行 - ID: 2, 条件结果: True
2025-04-19 15:58:00,179 - services.execution.handlers.progress - INFO - 条件为真但无true分支，执行default分支
2025-04-19 15:58:00,179 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 2, 分支: default
2025-04-19 15:58:00,179 - services.execution.block_executor - INFO - 开始执行块 2 的 default 分支下的 1 个子块
2025-04-19 15:58:00,179 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b3, ID: 3, 类型: CAgvOperationBp
2025-04-19 15:58:00,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,180 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:58:00,180 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('a84d925a-94db-49e3-ba99-964cd6aed29e', 'b3', '3', '', '{"targetSiteLabel": {"type": "Simple", "value": "api", "required": true}}', '{"targetSiteLabel": "api"}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0"}', 'CAgvOperationBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 179148), 1001, '{"targetSiteLabel": {"type": "Simple", "value": "api", "required": true}}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0"}', 1, datetime.datetime(2025, 4, 19, 15, 58, 0, 179148), datetime.datetime(2025, 4, 19, 15, 58, 0, 179148), 0)
2025-04-19 15:58:00,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,186 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: a84d925a-94db-49e3-ba99-964cd6aed29e
2025-04-19 15:58:00,187 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,187 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,187 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('a84d925a-94db-49e3-ba99-964cd6aed29e',)
2025-04-19 15:58:00,188 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-19 15:58:00,188 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-19 15:58:00,188 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,188 - sqlalchemy.engine.Engine - INFO - [cached since 11.89s ago] ('{"selectedAgvId": "MOCK-AGV-1e9556d0"}', '执行中', "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0'}", '{"blocks": {"b3": {"selectedAgvId": "MOCK-AGV-1e9556d0"}}}', '执行中', datetime.datetime(2025, 4, 19, 15, 58, 0, 188148), 'a84d925a-94db-49e3-ba99-964cd6aed29e')
2025-04-19 15:58:00,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,195 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-19 15:58:00,195 - services.execution.handlers.robot_scheduling - INFO - 找到块 b3(ID:3) 专用的机器人ID: MOCK-AGV-1e9556d0
2025-04-19 15:58:00,196 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b3(ID:3) 使用机器人: MOCK-AGV-1e9556d0, 目标站点: api
2025-04-19 15:58:00,196 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 模拟调用API: agv_operation, 参数: {'targetSiteLabel': 'api', 'vehicle': 'MOCK-AGV-1e9556d0'}
2025-04-19 15:58:00,196 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 生成模拟响应: agv_operation, 响应: {'success': True, 'message': '[测试模式] agv_operation 操作成功', 'data': {'success': True, 'taskId': 'MOCK-OP-ce5069a4'}}
2025-04-19 15:58:00,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,197 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:58:00,198 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('e5a06008-4043-44c9-9d04-4d1f95735296', 1, '{"success": true, "message": "机器人移动成功，目标站点: api, 任务ID: MOCK-OP-ce5069a4", "data": {"success": true, "taskId": "MOCK-OP-ce5069a4"}}', 3, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 197992), datetime.datetime(2025, 4, 19, 15, 58, 0, 197992), 0)
2025-04-19 15:58:00,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,205 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,205 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('a84d925a-94db-49e3-ba99-964cd6aed29e',)
2025-04-19 15:58:00,205 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-19 15:58:00,205 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['containerName']
2025-04-19 15:58:00,206 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord 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 t_windblockrecord.id = %s
2025-04-19 15:58:00,206 - sqlalchemy.engine.Engine - INFO - [cached since 11.87s ago] ('{"containerName": ""}', datetime.datetime(2025, 4, 19, 15, 58, 0, 205487), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0', 'taskId': 'MOCK-OP-ce5069a4', 'containerName': ''}", '{"blocks": {"b3": {"containerName": ""}}}', '执行成功', datetime.datetime(2025, 4, 19, 15, 58, 0, 206477), 'a84d925a-94db-49e3-ba99-964cd6aed29e')
2025-04-19 15:58:00,206 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,212 - services.execution.handlers.progress - INFO - 分支 default 执行成功
2025-04-19 15:58:00,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,215 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:58:00,215 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('388a0399-e048-4ab1-bec9-684274ba594e', 1, '{"success": true, "message": "条件判断成功，执行default分支完成", "output": {"condition": true, "branch": "default", "executed": true}}', 2, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 214462), datetime.datetime(2025, 4, 19, 15, 58, 0, 214462), 0)
2025-04-19 15:58:00,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,223 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,223 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('8349ce02-4207-413d-b85c-b460e0d46bc3',)
2025-04-19 15:58:00,223 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-19 15:58:00,223 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-19 15:58:00,224 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,224 - sqlalchemy.engine.Engine - INFO - [cached since 11.86s ago] (datetime.datetime(2025, 4, 19, 15, 58, 0, 223474), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0', 'taskId': 'MOCK-OP-ce5069a4', 'containerName': ''}", '执行成功', datetime.datetime(2025, 4, 19, 15, 58, 0, 224462), '8349ce02-4207-413d-b85c-b460e0d46bc3')
2025-04-19 15:58:00,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,232 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 的子块执行成功
2025-04-19 15:58:00,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,240 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:58:00,242 - sqlalchemy.engine.Engine - INFO - [cached since 702.9s ago] ('708acdec-d33c-46ad-b940-7edaa14729f6', 1, '{"success": true, "message": "选择执行机器人成功: MOCK-AGV-1e9556d0，子块执行成功", "data": {"agvId": "MOCK-AGV-1e9556d0"}, "childBlockResults": [{"child_id": 2, "su ... (495 characters truncated) ... ": true, "branch": "default", "results": [{"child_id": 2, "success": true, "output": {"condition": true, "branch": "default", "executed": true}}]}}}}', 1, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 240526), datetime.datetime(2025, 4, 19, 15, 58, 0, 240526), 0)
2025-04-19 15:58:00,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,252 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,252 - sqlalchemy.engine.Engine - INFO - [cached since 703s ago] ('00455400-c6e5-49cc-9458-f1dd2bc9d192',)
2025-04-19 15:58:00,252 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 15:58:00,253 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-19 15:58:00,254 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord 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 t_windblockrecord.id = %s
2025-04-19 15:58:00,256 - sqlalchemy.engine.Engine - INFO - [cached since 11.92s ago] ('{"selectedAgvId": "MOCK-AGV-1e9556d0"}', datetime.datetime(2025, 4, 19, 15, 58, 0, 253773), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0', 'taskId': 'MOCK-OP-ce5069a4', 'containerName': ''}", '{"blocks": {"b1": {"selectedAgvId": "MOCK-AGV-1e9556d0"}}}', '执行成功', datetime.datetime(2025, 4, 19, 15, 58, 0, 254891), '00455400-c6e5-49cc-9458-f1dd2bc9d192')
2025-04-19 15:58:00,257 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,264 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b4, ID: 4, 类型: CSelectAgvBp
2025-04-19 15:58:00,266 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,269 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:58:00,270 - sqlalchemy.engine.Engine - INFO - [cached since 703s ago] ('4c44e327-a176-48be-acd6-3d7e5d8878df', 'b4', '4', '', '{"keyRoute": {"type": "Simple", "value": "abk", "required": true}}', '{"keyRoute": "abk"}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0", "taskId": "MOCK-OP-ce5069a4", "containerName": ""}', 'CSelectAgvBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 265643), 1001, '{"keyRoute": {"type": "Simple", "value": "abk", "required": true}}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0", "taskId": "MOCK-OP-ce5069a4", "containerName": ""}', 1, datetime.datetime(2025, 4, 19, 15, 58, 0, 269645), datetime.datetime(2025, 4, 19, 15, 58, 0, 269645), 0)
2025-04-19 15:58:00,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,291 - services.execution.block_executor - DEBUG - 为子块 4 创建记录, 记录ID: 4c44e327-a176-48be-acd6-3d7e5d8878df
2025-04-19 15:58:00,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,296 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,297 - sqlalchemy.engine.Engine - INFO - [cached since 703s ago] ('4c44e327-a176-48be-acd6-3d7e5d8878df',)
2025-04-19 15:58:00,297 - services.execution.block_executor - INFO - 块 b4 (ID: 4) 设置的变量: []
2025-04-19 15:58:00,297 - services.execution.block_executor - INFO - 为块 b4 存储输出: <class 'NoneType'>
2025-04-19 15:58:00,299 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,299 - sqlalchemy.engine.Engine - INFO - [cached since 12s ago] ('null', '执行中', "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0', 'taskId': 'MOCK-OP-ce5069a4', 'containerName': ''}", '{"blocks": {"b4": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 58, 0, 299046), '4c44e327-a176-48be-acd6-3d7e5d8878df')
2025-04-19 15:58:00,300 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,314 - services.execution.block_executor - INFO - 开始执行子块 4 的处理逻辑
2025-04-19 15:58:00,314 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 模拟调用API: select_agv, 参数: {'keyRoute': 'abk'}
2025-04-19 15:58:00,315 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 生成模拟响应: select_agv, 响应: {'success': True, 'message': '[测试模式] select_agv 操作成功', 'data': {'agvId': 'MOCK-AGV-f8f14c13'}}
2025-04-19 15:58:00,315 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b4(ID:4) 选择的机器人: MOCK-AGV-f8f14c13
2025-04-19 15:58:00,316 - services.execution.handlers.robot_scheduling - INFO - 块 b4(ID:4) 有 1 个子块
2025-04-19 15:58:00,316 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b4 影响的块ID: [5]
2025-04-19 15:58:00,316 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b4(ID:4) 选择的机器人: MOCK-AGV-f8f14c13
2025-04-19 15:58:00,320 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-19 15:58:00,320 - services.execution.handlers.robot_scheduling - INFO - 1. b5(ID:5, 类型:IfElseBp, 关系:direct_child)
2025-04-19 15:58:00,320 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b4 的子块
2025-04-19 15:58:00,320 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 4, 分支: default
2025-04-19 15:58:00,320 - services.execution.block_executor - INFO - 开始执行块 4 的 default 分支下的 1 个子块
2025-04-19 15:58:00,320 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b5, ID: 5, 类型: IfElseBp
2025-04-19 15:58:00,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,326 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:58:00,328 - sqlalchemy.engine.Engine - INFO - [cached since 703s ago] ('716b6dce-03b1-4f67-852c-d3a44420a5e0', 'b5', '5', '', '{"conditionIf": {"type": "Simple", "value": true, "required": true}}', '{"conditionIf": true}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0", "taskId": "MOCK-OP-ce5069a4", "containerName": "", "agv_for_block_5": "MOCK-AGV-f8f14c13", "agv_for_b5": "MOCK-AGV-f8f14c13"}', 'IfElseBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 322298), 1001, '{"conditionIf": {"type": "Simple", "value": true, "required": true}}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0", "taskId": "MOCK-OP-ce5069a4", "containerName": "", "agv_for_block_5": "MOCK-AGV-f8f14c13", "agv_for_b5": "MOCK-AGV-f8f14c13"}', 1, datetime.datetime(2025, 4, 19, 15, 58, 0, 326839), datetime.datetime(2025, 4, 19, 15, 58, 0, 326839), 0)
2025-04-19 15:58:00,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,337 - services.execution.block_executor - DEBUG - 为子块 5 创建记录, 记录ID: 716b6dce-03b1-4f67-852c-d3a44420a5e0
2025-04-19 15:58:00,339 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,341 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,342 - sqlalchemy.engine.Engine - INFO - [cached since 703.1s ago] ('716b6dce-03b1-4f67-852c-d3a44420a5e0',)
2025-04-19 15:58:00,345 - services.execution.block_executor - INFO - 块 b5 (ID: 5) 设置的变量: []
2025-04-19 15:58:00,346 - services.execution.block_executor - INFO - 为块 b5 存储输出: ['selectedAgvId']
2025-04-19 15:58:00,347 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,352 - sqlalchemy.engine.Engine - INFO - [cached since 12.05s ago] ('{"selectedAgvId": "MOCK-AGV-f8f14c13"}', '执行中', "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0', 'taskId': 'MOCK-OP-ce5069a4', 'containerName': '', 'agv_for_block_5': 'MOCK-AGV-f8f14c13', 'agv_for_b5': 'MOCK-AGV-f8f14c13'}", '{"blocks": {"b5": {"selectedAgvId": "MOCK-AGV-f8f14c13"}}}', '执行中', datetime.datetime(2025, 4, 19, 15, 58, 0, 347978), '716b6dce-03b1-4f67-852c-d3a44420a5e0')
2025-04-19 15:58:00,353 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,360 - services.execution.block_executor - INFO - 开始执行子块 5 的处理逻辑
2025-04-19 15:58:00,360 - services.execution.handlers.progress - INFO - 条件为真，为else分支创建未执行记录
2025-04-19 15:58:00,360 - services.execution.handlers.progress - INFO - 分支 else 下没有子块，无需创建未执行记录
2025-04-19 15:58:00,361 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 5, 分支: if
2025-04-19 15:58:00,363 - services.execution.block_executor - INFO - 开始执行块 5 的 if 分支下的 1 个子块
2025-04-19 15:58:00,363 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b6, ID: 6, 类型: VehicleStationBp
2025-04-19 15:58:00,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,369 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windblockrecord (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-19 15:58:00,369 - sqlalchemy.engine.Engine - INFO - [cached since 703.1s ago] ('c2ae1300-f67d-48b9-9e1a-7b09df1f3a27', 'b6', '6', '', '{"vehicle": {"type": "Expression", "value": "blocks.b4.selectedAgvId", "required": true}}', '{"vehicle": "blocks.b4.selectedAgvId"}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0", "taskId": "MOCK-OP-ce5069a4", "containerName": "", "agv_for_block_5": "MOCK-AGV-f8f14c13", "agv_for_b5": "MOCK-AGV-f8f14c13"}', 'VehicleStationBp', '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 363981), 1001, '{"vehicle": {"type": "Expression", "value": "blocks.b4.selectedAgvId", "required": true}}', '{"agv_for_block_2": "MOCK-AGV-1e9556d0", "agv_for_b2": "MOCK-AGV-1e9556d0", "agv_for_block_3": "MOCK-AGV-1e9556d0", "agv_for_b3": "MOCK-AGV-1e9556d0", "taskId": "MOCK-OP-ce5069a4", "containerName": "", "agv_for_block_5": "MOCK-AGV-f8f14c13", "agv_for_b5": "MOCK-AGV-f8f14c13"}', 1, datetime.datetime(2025, 4, 19, 15, 58, 0, 369062), datetime.datetime(2025, 4, 19, 15, 58, 0, 369062), 0)
2025-04-19 15:58:00,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,379 - services.execution.block_executor - DEBUG - 为子块 6 创建记录, 记录ID: c2ae1300-f67d-48b9-9e1a-7b09df1f3a27
2025-04-19 15:58:00,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,380 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,380 - sqlalchemy.engine.Engine - INFO - [cached since 703.1s ago] ('c2ae1300-f67d-48b9-9e1a-7b09df1f3a27',)
2025-04-19 15:58:00,380 - services.execution.block_executor - INFO - 块 b6 (ID: 6) 设置的变量: []
2025-04-19 15:58:00,381 - services.execution.block_executor - INFO - 为块 b6 存储输出: <class 'NoneType'>
2025-04-19 15:58:00,382 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,383 - sqlalchemy.engine.Engine - INFO - [cached since 12.09s ago] ('null', '执行中', "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0', 'taskId': 'MOCK-OP-ce5069a4', 'containerName': '', 'agv_for_block_5': 'MOCK-AGV-f8f14c13', 'agv_for_b5': 'MOCK-AGV-f8f14c13'}", '{"blocks": {"b6": null}}', '执行中', datetime.datetime(2025, 4, 19, 15, 58, 0, 382990), 'c2ae1300-f67d-48b9-9e1a-7b09df1f3a27')
2025-04-19 15:58:00,385 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,392 - services.execution.block_executor - INFO - 开始执行子块 6 的处理逻辑
2025-04-19 15:58:00,393 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 模拟调用API: vehicle_station, 参数: {'vehicle': 'MOCK-AGV-f8f14c13'}
2025-04-19 15:58:00,393 - services.execution.handlers.robot_scheduling - INFO - [测试模式] 生成模拟响应: vehicle_station, 响应: {'success': True, 'message': '[测试模式] vehicle_station 操作成功', 'data': {'station': 'MOCK-STATION-05437', 'lastStation': 'MOCK-LAST-STATION-8c258'}}
2025-04-19 15:58:00,395 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,397 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:58:00,399 - sqlalchemy.engine.Engine - INFO - [cached since 703.1s ago] ('b9d1db72-8d69-411f-9e63-e959c3176a06', 1, '{"success": true, "message": "获取机器人 MOCK-AGV-f8f14c13 位置成功，当前位置: MOCK-STATION-05437, 上次位置: MOCK-LAST-STATION-8c258", "data": {"station": "MOCK-STATION-05437", "lastStation": "MOCK-LAST-STATION-8c258"}}', 6, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 397784), datetime.datetime(2025, 4, 19, 15, 58, 0, 397784), 0)
2025-04-19 15:58:00,401 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,413 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,413 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,413 - sqlalchemy.engine.Engine - INFO - [cached since 703.1s ago] ('c2ae1300-f67d-48b9-9e1a-7b09df1f3a27',)
2025-04-19 15:58:00,414 - services.execution.block_executor - INFO - 块 b6 (ID: 6) 设置的变量: []
2025-04-19 15:58:00,414 - services.execution.block_executor - INFO - 为块 b6 存储输出: ['station', 'lastStation']
2025-04-19 15:58:00,415 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord 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 t_windblockrecord.id = %s
2025-04-19 15:58:00,415 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] ('{"station": "MOCK-STATION-05437", "lastStation": "MOCK-LAST-STATION-8c258"}', datetime.datetime(2025, 4, 19, 15, 58, 0, 414944), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0' ... (53 characters truncated) ... 'agv_for_block_5': 'MOCK-AGV-f8f14c13', 'agv_for_b5': 'MOCK-AGV-f8f14c13', 'station': 'MOCK-STATION-05437', 'lastStation': 'MOCK-LAST-STATION-8c258'}", '{"blocks": {"b6": {"station": "MOCK-STATION-05437", "lastStation": "MOCK-LAST-STATION-8c258"}}}', '执行成功', datetime.datetime(2025, 4, 19, 15, 58, 0, 415952), 'c2ae1300-f67d-48b9-9e1a-7b09df1f3a27')
2025-04-19 15:58:00,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,430 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,430 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:58:00,430 - sqlalchemy.engine.Engine - INFO - [cached since 703.1s ago] ('0ae835c4-06f3-4388-8ec8-3d91c3531200', 1, '{"success": true, "message": "条件为真，执行if分支成功"}', 5, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 430969), datetime.datetime(2025, 4, 19, 15, 58, 0, 430969), 0)
2025-04-19 15:58:00,431 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,442 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,442 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,442 - sqlalchemy.engine.Engine - INFO - [cached since 703.2s ago] ('716b6dce-03b1-4f67-852c-d3a44420a5e0',)
2025-04-19 15:58:00,443 - services.execution.block_executor - INFO - 块 b5 (ID: 5) 设置的变量: []
2025-04-19 15:58:00,443 - services.execution.block_executor - INFO - 为块 b5 存储输出: ['selectedAgvId']
2025-04-19 15:58:00,443 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,443 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] (datetime.datetime(2025, 4, 19, 15, 58, 0, 443551), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0' ... (53 characters truncated) ... 'agv_for_block_5': 'MOCK-AGV-f8f14c13', 'agv_for_b5': 'MOCK-AGV-f8f14c13', 'station': 'MOCK-STATION-05437', 'lastStation': 'MOCK-LAST-STATION-8c258'}", '执行成功', datetime.datetime(2025, 4, 19, 15, 58, 0, 443551), '716b6dce-03b1-4f67-852c-d3a44420a5e0')
2025-04-19 15:58:00,443 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,449 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b4 的子块执行成功
2025-04-19 15:58:00,457 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,459 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:58:00,460 - sqlalchemy.engine.Engine - INFO - [cached since 703.1s ago] ('614bff01-b464-40c5-aa67-b8c2a2375ae7', 1, '{"success": true, "message": "选择执行机器人成功: MOCK-AGV-f8f14c13，子块执行成功", "data": {"agvId": "MOCK-AGV-f8f14c13"}, "childBlockResults": [{"child_id": 5, "su ... (270 characters truncated) ...  "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 5, "success": true, "output": {}}]}}}}', 4, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 459764), datetime.datetime(2025, 4, 19, 15, 58, 0, 459764), 0)
2025-04-19 15:58:00,463 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,472 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,474 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,474 - sqlalchemy.engine.Engine - INFO - [cached since 703.2s ago] ('4c44e327-a176-48be-acd6-3d7e5d8878df',)
2025-04-19 15:58:00,475 - services.execution.block_executor - INFO - 块 b4 (ID: 4) 设置的变量: []
2025-04-19 15:58:00,476 - services.execution.block_executor - INFO - 为块 b4 存储输出: ['selectedAgvId']
2025-04-19 15:58:00,477 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord 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 t_windblockrecord.id = %s
2025-04-19 15:58:00,477 - sqlalchemy.engine.Engine - INFO - [cached since 12.14s ago] ('{"selectedAgvId": "MOCK-AGV-f8f14c13"}', datetime.datetime(2025, 4, 19, 15, 58, 0, 476776), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0' ... (53 characters truncated) ... 'agv_for_block_5': 'MOCK-AGV-f8f14c13', 'agv_for_b5': 'MOCK-AGV-f8f14c13', 'station': 'MOCK-STATION-05437', 'lastStation': 'MOCK-LAST-STATION-8c258'}", '{"blocks": {"b4": {"selectedAgvId": "MOCK-AGV-f8f14c13"}}}', '执行成功', datetime.datetime(2025, 4, 19, 15, 58, 0, 477759), '4c44e327-a176-48be-acd6-3d7e5d8878df')
2025-04-19 15:58:00,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,486 - sqlalchemy.engine.Engine - INFO - INSERT INTO t_windtasklog (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-19 15:58:00,486 - sqlalchemy.engine.Engine - INFO - [cached since 703.2s ago] ('829b28fc-6d3e-48cc-9edb-5bfc28e44f3f', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (835 characters truncated) ... essage": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 5, "success": true, "output": {}}]}}}}]}}', -1, '9b114d4b-5cf2-4b46-8211-d9b0c653880d', 'cac41328-4f36-44b4-bbd3-547a84a1950f', datetime.datetime(2025, 4, 19, 15, 58, 0, 486845), datetime.datetime(2025, 4, 19, 15, 58, 0, 486845), 0)
2025-04-19 15:58:00,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,495 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,495 - sqlalchemy.engine.Engine - INFO - SELECT t_windblockrecord.id, t_windblockrecord.block_name, t_windblockrecord.block_id, t_windblockrecord.block_config_id, t_windblockrecord.block_input_params, t_windblockrecord.block_input_params_value, t_windblockrecord.block_out_params_value, t_windblockrecord.block_internal_variables, t_windblockrecord.block_execute_name, t_windblockrecord.task_id, t_windblockrecord.task_record_id, t_windblockrecord.started_on, t_windblockrecord.ended_on, t_windblockrecord.ended_reason, t_windblockrecord.status, t_windblockrecord.ctrl_status, t_windblockrecord.input_params, t_windblockrecord.internal_variables, t_windblockrecord.output_params, t_windblockrecord.version, t_windblockrecord.remark, t_windblockrecord.created_at, t_windblockrecord.updated_at, t_windblockrecord.is_deleted 
FROM t_windblockrecord 
WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,495 - sqlalchemy.engine.Engine - INFO - [cached since 703.2s ago] ('a606cc73-6781-44f0-93df-81da031b72f5',)
2025-04-19 15:58:00,497 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 15:58:00,498 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 15:58:00,498 - sqlalchemy.engine.Engine - INFO - UPDATE t_windblockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE t_windblockrecord.id = %s
2025-04-19 15:58:00,498 - sqlalchemy.engine.Engine - INFO - [cached since 12.14s ago] (datetime.datetime(2025, 4, 19, 15, 58, 0, 498199), '执行成功', 1000, "{'agv_for_block_2': 'MOCK-AGV-1e9556d0', 'agv_for_b2': 'MOCK-AGV-1e9556d0', 'agv_for_block_3': 'MOCK-AGV-1e9556d0', 'agv_for_b3': 'MOCK-AGV-1e9556d0' ... (53 characters truncated) ... 'agv_for_block_5': 'MOCK-AGV-f8f14c13', 'agv_for_b5': 'MOCK-AGV-f8f14c13', 'station': 'MOCK-STATION-05437', 'lastStation': 'MOCK-LAST-STATION-8c258'}", '执行成功', datetime.datetime(2025, 4, 19, 15, 58, 0, 498199), 'a606cc73-6781-44f0-93df-81da031b72f5')
2025-04-19 15:58:00,499 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,511 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 15:58:00,511 - sqlalchemy.engine.Engine - INFO - UPDATE t_windtaskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE t_windtaskrecord.id = %s
2025-04-19 15:58:00,511 - sqlalchemy.engine.Engine - INFO - [cached since 703.2s ago] (datetime.datetime(2025, 4, 19, 15, 58, 0, 510513), '任务执行成功', 1000, 404, datetime.datetime(2025, 4, 19, 15, 58, 0, 511264), 'cac41328-4f36-44b4-bbd3-547a84a1950f')
2025-04-19 15:58:00,512 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 15:58:00,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: cac41328-4f36-44b4-bbd3-547a84a1950f, 结果: True
2025-04-19 15:58:12,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 15:58:12,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 15:58:12,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 15:58:12,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 15:58:12,814 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 15:58:12,814 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 15:58:12,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 15:58:12,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 15:58:12,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 15:58:12,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 15:58:12,815 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 15:58:12,815 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 15:58:12,817 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 15:58:12,817 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 15:58:12,818 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 15:58:12,818 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 15:58:12,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 15:58:12,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:26:31,852 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:26:31,852 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:26:32,548 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:26:32,548 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:26:32,601 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 16:26:32,645 - data.session - INFO - 正在初始化数据库...
2025-04-19 16:26:32,680 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 16:26:32,682 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:26:32,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,683 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:26:32,683 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,684 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:26:32,684 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:26:32,685 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-19 16:26:32,686 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,689 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-19 16:26:32,690 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,690 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-19 16:26:32,690 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,691 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-19 16:26:32,691 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,692 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-19 16:26:32,692 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,692 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-19 16:26:32,692 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,692 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-19 16:26:32,693 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,693 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-19 16:26:32,693 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,693 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-19 16:26:32,693 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,693 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-19 16:26:32,694 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,694 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-19 16:26:32,694 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:26:32,695 - 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 '释放站点', 
	create_date DATETIME COMMENT '创建日期', 
	remark VARCHAR(255) COMMENT '备注', 
	tenant_id VARCHAR(255) NOT NULL COMMENT '租户ID，用于多租户隔离', 
	user_token VARCHAR(500) COMMENT '用户token值，每次请求需要用到的认证信息', 
	created_at DATETIME COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-19 16:26:32,697 - sqlalchemy.engine.Engine - INFO - [no key 0.00148s] {}
2025-04-19 16:26:32,764 - 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 '任务定义版本', 
	created_on DATETIME COMMENT '创建时间', 
	ended_on DATETIME COMMENT '结束时间', 
	ended_reason LONGTEXT COMMENT '结束原因', 
	status INTEGER COMMENT '任务状态（1001: 进行中, 1003: 已完成, 1006: 失败）', 
	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 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 '调用工作类型', 
	created_at DATETIME COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-19 16:26:32,765 - sqlalchemy.engine.Engine - INFO - [no key 0.00106s] {}
2025-04-19 16:26:32,822 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-19 16:26:32,822 - sqlalchemy.engine.Engine - INFO - [no key 0.00042s] {}
2025-04-19 16:26:32,866 - 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 COMMENT '开始时间', 
	ended_on DATETIME COMMENT '结束时间', 
	ended_reason LONGTEXT COMMENT '结束原因', 
	status INTEGER COMMENT '块执行状态', 
	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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-19 16:26:32,867 - sqlalchemy.engine.Engine - INFO - [no key 0.00058s] {}
2025-04-19 16:26:32,913 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


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


2025-04-19 16:26:32,958 - sqlalchemy.engine.Engine - INFO - [no key 0.00066s] {}
2025-04-19 16:26:33,002 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ROW_FORMAT=Dynamic ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_bin


2025-04-19 16:26:33,002 - sqlalchemy.engine.Engine - INFO - [no key 0.00032s] {}
2025-04-19 16:26:33,039 - sqlalchemy.engine.Engine - INFO - CREATE INDEX `dataKeyIndex` ON vwed_datacachesplit (data_key(768)) USING btree
2025-04-19 16:26:33,039 - sqlalchemy.engine.Engine - INFO - [no key 0.00037s] {}
2025-04-19 16:26:33,073 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-19 16:26:33,074 - sqlalchemy.engine.Engine - INFO - [no key 0.00050s] {}
2025-04-19 16:26:33,115 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-19 16:26:33,115 - sqlalchemy.engine.Engine - INFO - [no key 0.00058s] {}
2025-04-19 16:26:33,154 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id), 
	CONSTRAINT t_wind_script_version_ibfk_1 FOREIGN KEY(script_id) REFERENCES vwed_script (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-19 16:26:33,156 - sqlalchemy.engine.Engine - INFO - [no key 0.00165s] {}
2025-04-19 16:26:33,162 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 16:26:33,162 - data.session - ERROR - 数据库初始化失败: (pymysql.err.OperationalError) (1826, "Duplicate foreign key constraint name 't_wind_script_version_ibfk_1'")
[SQL: 
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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id), 
	CONSTRAINT t_wind_script_version_ibfk_1 FOREIGN KEY(script_id) REFERENCES vwed_script (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci

]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
2025-04-19 16:26:33,168 - data.session - ERROR - 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\pymysql\cursors.py", line 153, in execute
    result = self._query(query)
             ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\cursors.py", line 322, in _query
    conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\connections.py", line 563, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\connections.py", line 825, in _read_query_result
    result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\connections.py", line 1199, in read
    first_packet = self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\connections.py", line 775, 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.OperationalError: (1826, "Duplicate foreign key constraint name 't_wind_script_version_ibfk_1'")

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

Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\data\session.py", line 144, 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 1527, in _execute_ddl
    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\pymysql\cursors.py", line 153, in execute
    result = self._query(query)
             ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\cursors.py", line 322, in _query
    conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\connections.py", line 563, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\connections.py", line 825, in _read_query_result
    result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\connections.py", line 1199, in read
    first_packet = self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\connections.py", line 775, 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.OperationalError: (pymysql.err.OperationalError) (1826, "Duplicate foreign key constraint name 't_wind_script_version_ibfk_1'")
[SQL: 
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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id), 
	CONSTRAINT t_wind_script_version_ibfk_1 FOREIGN KEY(script_id) REFERENCES vwed_script (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci

]
(Background on this error at: https://sqlalche.me/e/20/e3q8)

2025-04-19 16:26:33,506 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 16:26:33,507 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 16:26:33,507 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 16:26:33,507 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 16:26:33,507 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 16:26:33,509 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 16:26:33,509 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 16:26:33,509 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 16:26:33,510 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 16:26:33,510 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 16:26:33,510 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:26:33,510 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 16:26:33,511 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 16:26:33,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:26:33,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:26:33,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:26:33,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:26:33,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:26:33,514 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 16:26:33,514 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 16:26:33,515 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:26:33,516 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:26:33,516 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:26:33,516 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:26:33,517 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:26:33,517 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:26:33,517 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:26:33,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:26:33,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-19 16:26:33,527 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1, 1)
2025-04-19 16:26:33,530 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 16:26:33,530 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:26:33,530 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 16:26:33,530 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 16:26:33,531 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 16:26:33,531 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:26:33,532 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, 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-19 16:26:33,533 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (1000, 2000, 2001)
2025-04-19 16:26:33,533 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:26:33,534 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:26:33,535 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:26:33,535 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (1001, datetime.datetime(2025, 4, 19, 15, 26, 33, 531826))
2025-04-19 16:26:33,535 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:26:33,537 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:26:33,538 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 16:26:33,538 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 16:26:33,538 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 16:26:33,538 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 16:27:33,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:27:33,534 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:27:33,534 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 15, 27, 33, 533566))
2025-04-19 16:27:33,536 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 16:27:33,536 - services.enhanced_scheduler.task_scheduler - ERROR - 检查僵尸任务异常: (pymysql.err.OperationalError) (1049, "Unknown database 'vwed_task'")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_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: (1001, datetime.datetime(2025, 4, 19, 15, 27, 33, 533566))]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
2025-04-19 16:27:33,579 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:27:33,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:27:33,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:27:33,579 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:27:33,579 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:27:33,579 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:27:33,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:27:33,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:27:33,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:27:33,580 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:27:33,580 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:27:33,580 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:27:33,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:27:33,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:27:33,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:27:33,580 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:27:33,580 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:27:33,580 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:27:33,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:27:33,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:27:33,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:27:33,581 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:27:33,581 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:27:33,581 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:27:33,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:27:33,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:27:33,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:27:33,583 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:27:33,583 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:27:33,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:27:33,749 - root - INFO - 应用程序关闭中...
2025-04-19 16:27:33,749 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 16:27:33,749 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 16:27:33,749 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 16:27:33,749 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 16:27:33,751 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 16:27:33,751 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 16:27:33,751 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 16:27:33,752 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 16:27:33,752 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 16:27:33,752 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 16:27:33,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:27:33,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:27:33,752 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:27:33,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:27:33,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:27:33,753 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 16:27:33,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:27:33,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:27:33,753 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 16:27:33,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:27:33,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:27:33,754 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 16:27:33,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:27:33,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:27:33,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 16:27:33,755 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 16:27:33,755 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 16:27:33,755 - root - INFO - 增强版任务调度器已停止
2025-04-19 16:27:33,755 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 16:27:33,756 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 16:27:33,756 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 16:27:33,756 - data.session - INFO - 数据库连接已关闭
2025-04-19 16:27:34,985 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:27:34,985 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:27:35,042 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 16:27:35,091 - data.session - INFO - 正在初始化数据库...
2025-04-19 16:27:35,132 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 16:27:35,145 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:27:35,145 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,146 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:27:35,146 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,146 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:27:35,146 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:27:35,147 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-19 16:27:35,147 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,148 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-19 16:27:35,148 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,148 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-19 16:27:35,149 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,149 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-19 16:27:35,149 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,150 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-19 16:27:35,150 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,151 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-19 16:27:35,151 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,151 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-19 16:27:35,151 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,152 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-19 16:27:35,154 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,155 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-19 16:27:35,155 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,156 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-19 16:27:35,156 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,156 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-19 16:27:35,157 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:35,158 - 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 '释放站点', 
	create_date DATETIME COMMENT '创建日期', 
	remark VARCHAR(255) COMMENT '备注', 
	tenant_id VARCHAR(255) NOT NULL COMMENT '租户ID，用于多租户隔离', 
	user_token VARCHAR(500) COMMENT '用户token值，每次请求需要用到的认证信息', 
	created_at DATETIME COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-19 16:27:35,158 - sqlalchemy.engine.Engine - INFO - [no key 0.00031s] {}
2025-04-19 16:27:35,200 - 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 '任务定义版本', 
	created_on DATETIME COMMENT '创建时间', 
	ended_on DATETIME COMMENT '结束时间', 
	ended_reason LONGTEXT COMMENT '结束原因', 
	status INTEGER COMMENT '任务状态（1001: 进行中, 1003: 已完成, 1006: 失败）', 
	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 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 '调用工作类型', 
	created_at DATETIME COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-19 16:27:35,201 - sqlalchemy.engine.Engine - INFO - [no key 0.00041s] {}
2025-04-19 16:27:35,242 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-19 16:27:35,242 - sqlalchemy.engine.Engine - INFO - [no key 0.00058s] {}
2025-04-19 16:27:35,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 COMMENT '开始时间', 
	ended_on DATETIME COMMENT '结束时间', 
	ended_reason LONGTEXT COMMENT '结束原因', 
	status INTEGER COMMENT '块执行状态', 
	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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-19 16:27:35,286 - sqlalchemy.engine.Engine - INFO - [no key 0.00086s] {}
2025-04-19 16:27:35,330 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


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


2025-04-19 16:27:35,372 - sqlalchemy.engine.Engine - INFO - [no key 0.00030s] {}
2025-04-19 16:27:35,408 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ROW_FORMAT=Dynamic ENGINE=InnoDB COLLATE utf8mb4_bin


2025-04-19 16:27:35,408 - sqlalchemy.engine.Engine - INFO - [no key 0.00056s] {}
2025-04-19 16:27:35,443 - sqlalchemy.engine.Engine - INFO - CREATE INDEX `dataKeyIndex` ON vwed_datacachesplit (data_key(768)) USING btree
2025-04-19 16:27:35,443 - sqlalchemy.engine.Engine - INFO - [no key 0.00051s] {}
2025-04-19 16:27:35,479 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-19 16:27:35,479 - sqlalchemy.engine.Engine - INFO - [no key 0.00062s] {}
2025-04-19 16:27:35,518 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-19 16:27:35,519 - sqlalchemy.engine.Engine - INFO - [no key 0.00054s] {}
2025-04-19 16:27:35,572 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id), 
	CONSTRAINT vwed_script_version_ibfk_1 FOREIGN KEY(script_id) REFERENCES vwed_script (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-19 16:27:35,572 - sqlalchemy.engine.Engine - INFO - [no key 0.00045s] {}
2025-04-19 16:27:35,619 - 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 COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id), 
	FOREIGN KEY(script_id) REFERENCES vwed_script (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-19 16:27:35,620 - sqlalchemy.engine.Engine - INFO - [no key 0.00031s] {}
2025-04-19 16:27:35,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:27:35,670 - data.session - INFO - 数据库表初始化完成
2025-04-19 16:27:36,031 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 16:27:36,031 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 16:27:36,031 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 16:27:36,032 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 16:27:36,032 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 16:27:36,032 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 16:27:36,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 16:27:36,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 16:27:36,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 16:27:36,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 16:27:36,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:27:36,033 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 16:27:36,033 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 16:27:36,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:27:36,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:27:36,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:27:36,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:27:36,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:27:36,035 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 16:27:36,035 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 16:27:36,036 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:27:36,037 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:27:36,037 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:27:36,038 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:27:36,039 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:27:36,039 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:27:36,040 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:27:36,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:27:36,048 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-19 16:27:36,048 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1, 1)
2025-04-19 16:27:36,050 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 16:27:36,050 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:27:36,051 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 16:27:36,051 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 16:27:36,052 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 16:27:36,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:27:36,053 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, 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-19 16:27:36,054 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1000, 2000, 2001)
2025-04-19 16:27:36,055 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:27:36,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:27:36,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:27:36,057 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:27:36,057 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1001, datetime.datetime(2025, 4, 19, 15, 27, 36, 52155))
2025-04-19 16:27:36,058 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 16:27:36,058 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 16:27:36,058 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 16:27:36,058 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 16:27:36,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:27:37,371 - root - INFO - 应用程序关闭中...
2025-04-19 16:27:37,371 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 16:27:37,372 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 16:27:37,372 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 16:27:37,372 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 16:27:37,372 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 16:27:37,372 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 16:27:37,372 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 16:27:37,372 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 16:27:37,372 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 16:27:37,372 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 16:27:37,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:27:37,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:27:37,372 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:27:37,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:27:37,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:27:37,373 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 16:27:37,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:27:37,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:27:37,373 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 16:27:37,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:27:37,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:27:37,373 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 16:27:37,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:27:37,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:27:37,373 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 16:27:37,373 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 16:27:37,373 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 16:27:37,373 - root - INFO - 增强版任务调度器已停止
2025-04-19 16:27:37,373 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 16:27:37,374 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 16:27:37,374 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 16:27:37,374 - data.session - INFO - 数据库连接已关闭
2025-04-19 16:27:39,082 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:27:39,082 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:27:39,798 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:27:39,799 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:27:39,858 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 16:27:39,901 - data.session - INFO - 正在初始化数据库...
2025-04-19 16:27:39,938 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 16:27:39,942 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:27:39,943 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,943 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:27:39,944 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,944 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:27:39,946 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:27:39,948 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-19 16:27:39,948 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,949 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-19 16:27:39,949 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,954 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-19 16:27:39,954 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,956 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-19 16:27:39,956 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,961 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-19 16:27:39,962 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,964 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-19 16:27:39,965 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,966 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-19 16:27:39,966 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,967 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-19 16:27:39,967 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,969 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-19 16:27:39,969 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,972 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-19 16:27:39,972 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,975 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-19 16:27:39,976 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:27:39,978 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:27:39,980 - data.session - INFO - 数据库表初始化完成
2025-04-19 16:27:40,313 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 16:27:40,314 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 16:27:40,314 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 16:27:40,314 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 16:27:40,314 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 16:27:40,314 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 16:27:40,315 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 16:27:40,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 16:27:40,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 16:27:40,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 16:27:40,317 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:27:40,317 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 16:27:40,318 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 16:27:40,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:27:40,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:27:40,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:27:40,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:27:40,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:27:40,320 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 16:27:40,320 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 16:27:40,333 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:27:40,335 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:27:40,335 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:27:40,336 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:27:40,336 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:27:40,336 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:27:40,336 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:27:40,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:27:40,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-19 16:27:40,347 - sqlalchemy.engine.Engine - INFO - [generated in 0.00185s] (1, 1)
2025-04-19 16:27:40,348 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 16:27:40,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:27:40,349 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 16:27:40,349 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 16:27:40,349 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 16:27:40,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:27:40,351 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, 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-19 16:27:40,351 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (1000, 2000, 2001)
2025-04-19 16:27:40,363 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:27:40,364 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:27:40,364 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 16:27:40,365 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 16:27:40,365 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 16:27:40,365 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 16:27:40,366 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:27:40,366 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:27:40,366 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (1001, datetime.datetime(2025, 4, 19, 15, 27, 40, 349347))
2025-04-19 16:27:40,368 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:28:40,348 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:28:40,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:28:40,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:28:40,349 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:28:40,350 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:28:40,350 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:28:40,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:28:40,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:28:40,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:28:40,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:28:40,352 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:28:40,352 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:28:40,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:28:40,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:28:40,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:28:40,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:28:40,354 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:28:40,354 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:28:40,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:28:40,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:28:40,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:28:40,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:28:40,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:28:40,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:28:40,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:28:40,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:28:40,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:28:40,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:28:40,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:28:40,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:28:40,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:28:40,363 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:28:40,363 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 15, 28, 40, 356865))
2025-04-19 16:28:40,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:29:19,884 - root - INFO - 应用程序关闭中...
2025-04-19 16:29:19,884 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 16:29:19,885 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 16:29:19,885 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 16:29:19,885 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 16:29:19,885 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 16:29:19,885 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 16:29:19,886 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 16:29:19,886 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 16:29:19,886 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 16:29:19,886 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 16:29:19,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:29:19,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:29:19,887 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:29:19,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:29:19,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:29:19,887 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 16:29:19,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:29:19,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:29:19,887 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 16:29:19,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:29:19,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:29:19,889 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 16:29:19,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:29:19,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:29:19,889 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 16:29:19,890 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 16:29:19,890 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 16:29:19,890 - root - INFO - 增强版任务调度器已停止
2025-04-19 16:29:19,890 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 16:29:19,890 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 16:29:19,891 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 16:29:19,891 - data.session - INFO - 数据库连接已关闭
2025-04-19 16:29:22,227 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:29:22,228 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:29:22,970 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:29:22,970 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:29:23,026 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 16:29:23,074 - data.session - INFO - 正在初始化数据库...
2025-04-19 16:29:23,105 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 16:29:23,128 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:29:23,131 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,134 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:29:23,134 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,135 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:29:23,135 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:29:23,136 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-19 16:29:23,136 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,137 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-19 16:29:23,138 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,139 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-19 16:29:23,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,139 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-19 16:29:23,140 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,142 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-19 16:29:23,142 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,144 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-19 16:29:23,144 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,146 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-19 16:29:23,147 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,148 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-19 16:29:23,148 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,150 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-19 16:29:23,150 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,151 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-19 16:29:23,151 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,152 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-19 16:29:23,152 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:29:23,153 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:29:23,153 - data.session - INFO - 数据库表初始化完成
2025-04-19 16:29:23,518 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 16:29:23,518 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 16:29:23,518 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 16:29:23,519 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 16:29:23,519 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 16:29:23,519 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 16:29:23,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 16:29:23,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 16:29:23,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 16:29:23,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 16:29:23,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:29:23,519 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 16:29:23,519 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 16:29:23,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:29:23,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:29:23,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:29:23,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:29:23,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:29:23,523 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 16:29:23,523 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 16:29:23,525 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:29:23,525 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:29:23,526 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:29:23,526 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:29:23,526 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:29:23,526 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:29:23,526 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:29:23,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:29:23,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-19 16:29:23,541 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (1, 1)
2025-04-19 16:29:23,541 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 16:29:23,542 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:29:23,542 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 16:29:23,542 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 16:29:23,542 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 16:29:23,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:29:23,544 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, 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-19 16:29:23,544 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (1000, 2000, 2001)
2025-04-19 16:29:23,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:29:23,546 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 16:29:23,546 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 16:29:23,547 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 16:29:23,547 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 16:29:23,547 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:29:23,550 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:29:23,550 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:29:23,550 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] (1001, datetime.datetime(2025, 4, 19, 15, 29, 23, 542661))
2025-04-19 16:29:23,550 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:29:46,520 - root - INFO - 请求开始: POST /api/vwed-task/create 来自 127.0.0.1
2025-04-19 16:29:46,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:29:46,529 - 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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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-19 16:29:46,529 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] {'label_1': '定时任务-测试', 'param_1': 1}
2025-04-19 16:29:46,531 - 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-19 16:29:46,531 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] {'template_if_enable_1': 1, 'param_1': 1}
2025-04-19 16:29:46,532 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 16:29:46,532 - root - ERROR - 创建任务失败: 没有可用的任务模板，请先启用一个模板
2025-04-19 16:29:46,533 - app.task_api - ERROR - 创建任务失败: 创建任务失败: 没有可用的任务模板，请先启用一个模板
2025-04-19 16:29:46,533 - root - INFO - 请求完成: POST /api/vwed-task/create 状态码: 500 耗时: 0.0130秒
2025-04-19 16:30:23,532 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:30:23,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:30:23,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:30:23,533 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:30:23,534 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:30:23,534 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:30:23,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:30:23,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:30:23,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:30:23,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:30:23,536 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:30:23,537 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:30:23,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:30:23,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:30:23,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:30:23,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:30:23,538 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:30:23,538 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:30:23,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:30:23,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:30:23,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:30:23,539 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:30:23,539 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:30:23,539 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:30:23,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:30:23,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:30:23,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:30:23,539 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:30:23,539 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:30:23,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:30:23,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:30:23,545 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:30:23,545 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (1001, datetime.datetime(2025, 4, 19, 15, 30, 23, 544148))
2025-04-19 16:30:23,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:31:23,566 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:31:23,567 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:31:23,567 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 15, 31, 23, 566737))
2025-04-19 16:31:23,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:31:23,613 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:31:23,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:31:23,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:31:23,614 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:31:23,614 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:31:23,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:31:23,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:31:23,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:31:23,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:31:23,615 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:31:23,615 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:31:23,615 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:31:23,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:31:23,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:31:23,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:31:23,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:31:23,616 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:31:23,616 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:31:23,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:31:23,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:31:23,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:31:23,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:31:23,616 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:31:23,616 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:31:23,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:31:23,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:31:23,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:31:23,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:31:23,617 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:31:23,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:32:23,587 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:32:23,587 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:32:23,587 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 15, 32, 23, 586485))
2025-04-19 16:32:23,588 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:32:23,633 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:32:23,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:32:23,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:32:23,633 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:32:23,633 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:32:23,634 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:32:23,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:32:23,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:32:23,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:32:23,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:32:23,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:32:23,635 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:32:23,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:32:23,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:32:23,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:32:23,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:32:23,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:32:23,636 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:32:23,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:32:23,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:32:23,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:32:23,636 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:32:23,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:32:23,636 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:32:23,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:32:23,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:32:23,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:32:23,637 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:32:23,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:32:23,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:32:35,060 - root - INFO - 请求开始: POST /api/vwed-task/create 来自 127.0.0.1
2025-04-19 16:32:35,061 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:32:35,062 - 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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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-19 16:32:35,062 - sqlalchemy.engine.Engine - INFO - [cached since 168.5s ago] {'label_1': '定时任务-测试', 'param_1': 1}
2025-04-19 16:32:35,063 - 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-19 16:32:35,063 - sqlalchemy.engine.Engine - INFO - [cached since 168.5s ago] {'template_if_enable_1': 1, 'param_1': 1}
2025-04-19 16:32:35,064 - 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, create_date, remark, tenant_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, %(create_date)s, %(remark)s, %(tenant_id)s, %(user_token)s, %(created_at)s, %(updated_at)s, %(is_deleted)s)
2025-04-19 16:32:35,065 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] {'id': 'ec20528a-4205-4694-84e7-36cd8afab13d', 'label': '定时任务-测试', 'created_by': None, 'version': 1, 'detail': '{"inputParams": [], "outputParams": [], "rootBlock": null}', 'template_name': 'userTemplate', 'period': 3000, 'periodic_task': 1, 'status': 0, 'if_enable': 0, 'delay': 3000, 'release_sites': True, 'create_date': datetime.datetime(2025, 4, 19, 16, 32, 35, 63339), 'remark': '定时任务第一次测试', 'tenant_id': 'default', 'user_token': None, 'created_at': datetime.datetime(2025, 4, 19, 16, 32, 35, 64336), 'updated_at': datetime.datetime(2025, 4, 19, 16, 32, 35, 64336), 'is_deleted': 0}
2025-04-19 16:32:35,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:32:35,078 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:32:35,079 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-19 16:32:35,079 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] {'pk_1': 'ec20528a-4205-4694-84e7-36cd8afab13d'}
2025-04-19 16:32:35,080 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-19 16:32:35,082 - root - INFO - 请求完成: POST /api/vwed-task/create 状态码: 200 耗时: 0.0225秒
2025-04-19 16:33:23,598 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:33:23,599 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:33:23,599 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (1001, datetime.datetime(2025, 4, 19, 15, 33, 23, 598736))
2025-04-19 16:33:23,600 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:33:23,691 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:33:23,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:33:23,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:33:23,692 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:33:23,692 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:33:23,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:33:23,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:33:23,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:33:23,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:33:23,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:33:23,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:33:23,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:33:23,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:33:23,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:33:23,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:33:23,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:33:23,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:33:23,695 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:33:23,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:33:23,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:33:23,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:33:23,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:33:23,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:33:23,695 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:33:23,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:33:23,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:33:23,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:33:23,696 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:33:23,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:33:23,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:33:24,039 - root - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-19 16:33:24,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:33:24,043 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:33:24,043 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:33:24,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:33:24,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:33:24,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:33:24,045 - sqlalchemy.engine.Engine - INFO - [cached since 0.002157s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:33:24,046 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-19 16:33:24,048 - sqlalchemy.engine.Engine - INFO - [generated in 0.00170s] (2, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 19, 16, 33, 24, 46424), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-19 16:33:24,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:33:24,066 - root - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0262秒
2025-04-19 16:33:38,396 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-19 16:33:38,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:33:38,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:33:38,398 - sqlalchemy.engine.Engine - INFO - [cached since 14.36s ago] ('9b114d4b-5cf2-4b46-8211-d9b0c653880d',)
2025-04-19 16:33:38,399 - services.task_edit_service - WARNING - 任务不存在: 9b114d4b-5cf2-4b46-8211-d9b0c653880d
2025-04-19 16:33:38,399 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:33:38,400 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 404 耗时: 0.0040秒
2025-04-19 16:34:12,085 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-19 16:34:12,086 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,086 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:34:12,086 - sqlalchemy.engine.Engine - INFO - [cached since 48.04s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:34:12,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,088 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,088 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:34:12,088 - sqlalchemy.engine.Engine - INFO - [cached since 48.05s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:34:12,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,089 - services.task_edit_service - INFO - 启动定时任务: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-19 16:34:12,090 - services.task_edit_service - INFO - 已启用定时任务: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-19 16:34:12,090 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,092 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:34:12,092 - sqlalchemy.engine.Engine - INFO - [cached since 48.05s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:34:12,093 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET if_enable=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-19 16:34:12,093 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (1, datetime.datetime(2025, 4, 19, 16, 34, 12, 93073), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-19 16:34:12,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,112 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-19 16:34:12,112 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1, datetime.datetime(2025, 4, 19, 16, 34, 12, 112083), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-19 16:34:12,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,120 - services.task_edit_service - INFO - 更新任务定义状态为运行中: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-19 16:34:12,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,121 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:34:12,121 - sqlalchemy.engine.Engine - INFO - [cached since 48.08s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:34:12,124 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 16:34:12,124 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('eb60e814-d017-45aa-b60d-b9e03ae0cc75', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 16, 34, 12, 122999), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 16, 34, 12, 124001), datetime.datetime(2025, 4, 19, 16, 34, 12, 124001), 0)
2025-04-19 16:34:12,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,133 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:12,133 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('eb60e814-d017-45aa-b60d-b9e03ae0cc75',)
2025-04-19 16:34:12,134 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,134 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eb60e814-d017-45aa-b60d-b9e03ae0cc75 (优先级 1) 添加到队列 0
2025-04-19 16:34:12,135 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0519秒
2025-04-19 16:34:12,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: eb60e814-d017-45aa-b60d-b9e03ae0cc75, 优先级: 1
2025-04-19 16:34:12,185 - services.execution.task_executor - DEBUG - 任务 eb60e814-d017-45aa-b60d-b9e03ae0cc75 设置超时时间: 3600秒
2025-04-19 16:34:12,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,186 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:12,187 - sqlalchemy.engine.Engine - INFO - [cached since 0.05473s ago] ('eb60e814-d017-45aa-b60d-b9e03ae0cc75',)
2025-04-19 16:34:12,188 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:34:12,188 - sqlalchemy.engine.Engine - INFO - [cached since 48.15s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:34:12,191 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:12,192 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (datetime.datetime(2025, 4, 19, 16, 34, 12, 189878), datetime.datetime(2025, 4, 19, 16, 34, 12, 191877), 'eb60e814-d017-45aa-b60d-b9e03ae0cc75')
2025-04-19 16:34:12,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,199 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,200 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:12,200 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 16, 34, 12, 200878), 'eb60e814-d017-45aa-b60d-b9e03ae0cc75')
2025-04-19 16:34:12,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,211 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 16:34:12,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,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-19 16:34:12,213 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('c651a8c9-1f57-4919-a356-047565102b33', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', 'eb60e814-d017-45aa-b60d-b9e03ae0cc75', datetime.datetime(2025, 4, 19, 16, 34, 12, 211396), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 34, 12, 213395), datetime.datetime(2025, 4, 19, 16, 34, 12, 213395), 0)
2025-04-19 16:34:12,215 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,225 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:34:12,225 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] ('c651a8c9-1f57-4919-a356-047565102b33',)
2025-04-19 16:34:12,226 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:34:12,227 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:34:12,228 - 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-19 16:34:12,228 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 34, 12, 228480), 'c651a8c9-1f57-4919-a356-047565102b33')
2025-04-19 16:34:12,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,242 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 16:34:12,243 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 16:34:12,243 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 16:34:12,244 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,244 - 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-19 16:34:12,244 - sqlalchemy.engine.Engine - INFO - [cached since 0.03144s ago] ('2d04ed67-e347-477e-83b2-891259417514', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(vwed_taskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', 'eb60e814-d017-45aa-b60d-b9e03ae0cc75', datetime.datetime(2025, 4, 19, 16, 34, 12, 243407), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 34, 12, 244400), datetime.datetime(2025, 4, 19, 16, 34, 12, 244400), 0)
2025-04-19 16:34:12,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,254 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2d04ed67-e347-477e-83b2-891259417514
2025-04-19 16:34:12,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,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-19 16:34:12,255 - sqlalchemy.engine.Engine - INFO - [cached since 0.03027s ago] ('2d04ed67-e347-477e-83b2-891259417514',)
2025-04-19 16:34:12,256 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:34:12,256 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:34:12,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-19 16:34:12,257 - sqlalchemy.engine.Engine - INFO - [cached since 0.02886s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 34, 12, 257390), '2d04ed67-e347-477e-83b2-891259417514')
2025-04-19 16:34:12,257 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,264 - sqlalchemy.engine.Engine - INFO - SELECT id FROM vwed_taskrecord WHERE id = %s
2025-04-19 16:34:12,264 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] ('eb60e814-d017-45aa-b60d-b9e03ae0cc75',)
2025-04-19 16:34:12,264 - services.execution.block_executor - INFO - 从数据库 vwed_taskrecord.id 获取值: eb60e814-d017-45aa-b60d-b9e03ae0cc75
2025-04-19 16:34:12,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,265 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 16:34:12,265 - services.execution.handlers.foundation - INFO - 任务 eb60e814-d017-45aa-b60d-b9e03ae0cc75 打印: ['eb60e814-d017-45aa-b60d-b9e03ae0cc75']
2025-04-19 16:34:12,266 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,266 - 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-19 16:34:12,266 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('41fe7fa6-bc25-485e-bbd3-c439dc34092e', 1, '{"success": true, "message": "打印成功", "output": {"message": ["eb60e814-d017-45aa-b60d-b9e03ae0cc75"]}}', 1, 'ec20528a-4205-4694-84e7-36cd8afab13d', 'eb60e814-d017-45aa-b60d-b9e03ae0cc75', datetime.datetime(2025, 4, 19, 16, 34, 12, 266391), datetime.datetime(2025, 4, 19, 16, 34, 12, 266391), 0)
2025-04-19 16:34:12,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,275 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:34:12,275 - sqlalchemy.engine.Engine - INFO - [cached since 0.04993s ago] ('2d04ed67-e347-477e-83b2-891259417514',)
2025-04-19 16:34:12,276 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:34:12,276 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:34:12,277 - 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-19 16:34:12,277 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 19, 16, 34, 12, 276020), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 34, 12, 277023), '2d04ed67-e347-477e-83b2-891259417514')
2025-04-19 16:34:12,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,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-19 16:34:12,284 - sqlalchemy.engine.Engine - INFO - [cached since 0.01765s ago] ('1dbe5699-5e0a-4ec9-bcbd-6089b0bd90b4', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["eb60e814-d017-45aa-b60d-b9e03ae0cc75"]}}]}}', -1, 'ec20528a-4205-4694-84e7-36cd8afab13d', 'eb60e814-d017-45aa-b60d-b9e03ae0cc75', datetime.datetime(2025, 4, 19, 16, 34, 12, 284019), datetime.datetime(2025, 4, 19, 16, 34, 12, 284019), 0)
2025-04-19 16:34:12,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,293 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:34:12,293 - sqlalchemy.engine.Engine - INFO - [cached since 0.068s ago] ('c651a8c9-1f57-4919-a356-047565102b33',)
2025-04-19 16:34:12,294 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:34:12,294 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:34:12,294 - 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-19 16:34:12,294 - sqlalchemy.engine.Engine - INFO - [cached since 0.01829s ago] (datetime.datetime(2025, 4, 19, 16, 34, 12, 294019), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 34, 12, 294019), 'c651a8c9-1f57-4919-a356-047565102b33')
2025-04-19 16:34:12,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:12,302 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:12,302 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] (datetime.datetime(2025, 4, 19, 16, 34, 12, 301402), '任务执行成功', 1000, 101, datetime.datetime(2025, 4, 19, 16, 34, 12, 302404), 'eb60e814-d017-45aa-b60d-b9e03ae0cc75')
2025-04-19 16:34:12,302 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:12,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: eb60e814-d017-45aa-b60d-b9e03ae0cc75, 结果: True
2025-04-19 16:34:18,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:18,906 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:34:18,907 - sqlalchemy.engine.Engine - INFO - [cached since 54.86s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:34:18,909 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 16:34:18,909 - sqlalchemy.engine.Engine - INFO - [cached since 6.786s ago] ('2f51ce8f-8299-4d9c-9fde-43464cca5990', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 16, 34, 18, 908566), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 16, 34, 18, 909570), datetime.datetime(2025, 4, 19, 16, 34, 18, 909570), 0)
2025-04-19 16:34:18,910 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:18,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:18,927 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:18,927 - sqlalchemy.engine.Engine - INFO - [cached since 6.794s ago] ('2f51ce8f-8299-4d9c-9fde-43464cca5990',)
2025-04-19 16:34:18,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:18,930 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2f51ce8f-8299-4d9c-9fde-43464cca5990 (优先级 1) 添加到队列 0
2025-04-19 16:34:18,930 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 ec20528a-4205-4694-84e7-36cd8afab13d 已提交执行
2025-04-19 16:34:18,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 2f51ce8f-8299-4d9c-9fde-43464cca5990, 优先级: 1
2025-04-19 16:34:18,981 - services.execution.task_executor - DEBUG - 任务 2f51ce8f-8299-4d9c-9fde-43464cca5990 设置超时时间: 3600秒
2025-04-19 16:34:18,981 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:18,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:18,982 - sqlalchemy.engine.Engine - INFO - [cached since 6.849s ago] ('2f51ce8f-8299-4d9c-9fde-43464cca5990',)
2025-04-19 16:34:18,983 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:34:18,984 - sqlalchemy.engine.Engine - INFO - [cached since 54.94s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:34:18,984 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:18,985 - sqlalchemy.engine.Engine - INFO - [cached since 6.793s ago] (datetime.datetime(2025, 4, 19, 16, 34, 18, 984404), datetime.datetime(2025, 4, 19, 16, 34, 18, 984404), '2f51ce8f-8299-4d9c-9fde-43464cca5990')
2025-04-19 16:34:18,986 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,008 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,008 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:19,009 - sqlalchemy.engine.Engine - INFO - [cached since 6.808s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 16, 34, 19, 8501), '2f51ce8f-8299-4d9c-9fde-43464cca5990')
2025-04-19 16:34:19,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,018 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 16:34:19,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,021 - 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-19 16:34:19,021 - sqlalchemy.engine.Engine - INFO - [cached since 6.808s ago] ('432b2837-1abf-40a8-aebf-d791385ceaa0', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '2f51ce8f-8299-4d9c-9fde-43464cca5990', datetime.datetime(2025, 4, 19, 16, 34, 19, 20377), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 34, 19, 21370), datetime.datetime(2025, 4, 19, 16, 34, 19, 21370), 0)
2025-04-19 16:34:19,021 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,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-19 16:34:19,033 - sqlalchemy.engine.Engine - INFO - [cached since 6.808s ago] ('432b2837-1abf-40a8-aebf-d791385ceaa0',)
2025-04-19 16:34:19,033 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:34:19,034 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:34:19,034 - 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-19 16:34:19,036 - sqlalchemy.engine.Engine - INFO - [cached since 6.806s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 34, 19, 34308), '432b2837-1abf-40a8-aebf-d791385ceaa0')
2025-04-19 16:34:19,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,044 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 16:34:19,045 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 16:34:19,045 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 16:34:19,045 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,045 - 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-19 16:34:19,046 - sqlalchemy.engine.Engine - INFO - [cached since 6.832s ago] ('36deb72a-da4c-46e5-b8f0-0360f85ea3cb', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(vwed_taskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '2f51ce8f-8299-4d9c-9fde-43464cca5990', datetime.datetime(2025, 4, 19, 16, 34, 19, 45066), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 34, 19, 45066), datetime.datetime(2025, 4, 19, 16, 34, 19, 45066), 0)
2025-04-19 16:34:19,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,052 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 36deb72a-da4c-46e5-b8f0-0360f85ea3cb
2025-04-19 16:34:19,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,053 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:34:19,053 - sqlalchemy.engine.Engine - INFO - [cached since 6.828s ago] ('36deb72a-da4c-46e5-b8f0-0360f85ea3cb',)
2025-04-19 16:34:19,054 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:34:19,054 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:34:19,054 - 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-19 16:34:19,054 - sqlalchemy.engine.Engine - INFO - [cached since 6.827s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 34, 19, 54462), '36deb72a-da4c-46e5-b8f0-0360f85ea3cb')
2025-04-19 16:34:19,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,060 - sqlalchemy.engine.Engine - INFO - SELECT id FROM vwed_taskrecord WHERE id = %s
2025-04-19 16:34:19,060 - sqlalchemy.engine.Engine - INFO - [cached since 6.797s ago] ('2f51ce8f-8299-4d9c-9fde-43464cca5990',)
2025-04-19 16:34:19,062 - services.execution.block_executor - INFO - 从数据库 vwed_taskrecord.id 获取值: 2f51ce8f-8299-4d9c-9fde-43464cca5990
2025-04-19 16:34:19,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,062 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 16:34:19,062 - services.execution.handlers.foundation - INFO - 任务 2f51ce8f-8299-4d9c-9fde-43464cca5990 打印: ['2f51ce8f-8299-4d9c-9fde-43464cca5990']
2025-04-19 16:34:19,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,062 - 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-19 16:34:19,063 - sqlalchemy.engine.Engine - INFO - [cached since 6.797s ago] ('3e619b22-ef37-4858-b390-e3d8623bec2d', 1, '{"success": true, "message": "打印成功", "output": {"message": ["2f51ce8f-8299-4d9c-9fde-43464cca5990"]}}', 1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '2f51ce8f-8299-4d9c-9fde-43464cca5990', datetime.datetime(2025, 4, 19, 16, 34, 19, 62947), datetime.datetime(2025, 4, 19, 16, 34, 19, 62947), 0)
2025-04-19 16:34:19,063 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,070 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:34:19,070 - sqlalchemy.engine.Engine - INFO - [cached since 6.845s ago] ('36deb72a-da4c-46e5-b8f0-0360f85ea3cb',)
2025-04-19 16:34:19,071 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:34:19,071 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:34:19,071 - 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-19 16:34:19,071 - sqlalchemy.engine.Engine - INFO - [cached since 6.796s ago] (datetime.datetime(2025, 4, 19, 16, 34, 19, 71884), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 34, 19, 71884), '36deb72a-da4c-46e5-b8f0-0360f85ea3cb')
2025-04-19 16:34:19,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,081 - 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-19 16:34:19,082 - sqlalchemy.engine.Engine - INFO - [cached since 6.816s ago] ('6963f95a-26a6-48f0-a775-f5492d770819', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["2f51ce8f-8299-4d9c-9fde-43464cca5990"]}}]}}', -1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '2f51ce8f-8299-4d9c-9fde-43464cca5990', datetime.datetime(2025, 4, 19, 16, 34, 19, 81713), datetime.datetime(2025, 4, 19, 16, 34, 19, 81713), 0)
2025-04-19 16:34:19,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,088 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,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-19 16:34:19,090 - sqlalchemy.engine.Engine - INFO - [cached since 6.865s ago] ('432b2837-1abf-40a8-aebf-d791385ceaa0',)
2025-04-19 16:34:19,090 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:34:19,091 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:34:19,091 - 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-19 16:34:19,091 - sqlalchemy.engine.Engine - INFO - [cached since 6.815s ago] (datetime.datetime(2025, 4, 19, 16, 34, 19, 91220), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 34, 19, 91220), '432b2837-1abf-40a8-aebf-d791385ceaa0')
2025-04-19 16:34:19,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:19,101 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:19,101 - sqlalchemy.engine.Engine - INFO - [cached since 6.799s ago] (datetime.datetime(2025, 4, 19, 16, 34, 19, 101138), '任务执行成功', 1000, 93, datetime.datetime(2025, 4, 19, 16, 34, 19, 101138), '2f51ce8f-8299-4d9c-9fde-43464cca5990')
2025-04-19 16:34:19,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:19,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 2f51ce8f-8299-4d9c-9fde-43464cca5990, 结果: True
2025-04-19 16:34:20,063 - root - INFO - 应用程序关闭中...
2025-04-19 16:34:20,065 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 16:34:20,065 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 16:34:20,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 16:34:20,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 16:34:20,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 16:34:20,065 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 16:34:20,066 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 16:34:20,066 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:34:20,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:34:20,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:34:20,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:34:20,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:34:20,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 16:34:20,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:34:20,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:34:20,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 16:34:20,067 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 16:34:20,067 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 16:34:20,067 - root - INFO - 增强版任务调度器已停止
2025-04-19 16:34:20,067 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 16:34:20,068 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 16:34:20,068 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 16:34:20,068 - data.session - INFO - 数据库连接已关闭
2025-04-19 16:34:45,649 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:34:45,650 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:34:46,310 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:34:46,310 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:34:46,364 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 16:34:46,409 - data.session - INFO - 正在初始化数据库...
2025-04-19 16:34:46,437 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 16:34:46,458 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:34:46,458 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,459 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:34:46,460 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,460 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:34:46,461 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,461 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:46,461 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-19 16:34:46,462 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,463 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-19 16:34:46,463 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,464 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-19 16:34:46,464 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,468 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-19 16:34:46,468 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,469 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-19 16:34:46,471 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,472 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-19 16:34:46,472 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,473 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-19 16:34:46,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,476 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-19 16:34:46,477 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,478 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-19 16:34:46,478 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,479 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-19 16:34:46,479 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,483 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-19 16:34:46,483 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:34:46,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:46,487 - data.session - INFO - 数据库表初始化完成
2025-04-19 16:34:46,848 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 16:34:46,848 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 16:34:46,848 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 16:34:46,848 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 16:34:46,848 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 16:34:46,848 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 16:34:46,848 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 16:34:46,849 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 16:34:46,849 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 16:34:46,849 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 16:34:46,849 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:34:46,849 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 16:34:46,851 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 16:34:46,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:34:46,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:34:46,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:34:46,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:34:46,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:34:46,853 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 16:34:46,853 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 16:34:46,854 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:34:46,854 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:34:46,855 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:34:46,855 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:34:46,855 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:34:46,858 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:34:46,858 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:34:46,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:46,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-19 16:34:46,869 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (1, 1)
2025-04-19 16:34:46,869 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 1 个定时任务
2025-04-19 16:34:46,871 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:46,871 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 16:34:46,872 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 16:34:46,872 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 16:34:46,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:46,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, 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-19 16:34:46,873 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1000, 2000, 2001)
2025-04-19 16:34:46,874 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:46,874 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 16:34:46,875 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 16:34:46,875 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 16:34:46,875 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 16:34:46,875 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:34:46,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:46,877 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:34:46,877 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1001, datetime.datetime(2025, 4, 19, 15, 34, 46, 872030))
2025-04-19 16:34:46,879 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:51,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:51,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:34:51,887 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:34:51,890 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 16:34:51,890 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('2a94d76d-5038-45db-81e6-b289805ccdda', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 16, 34, 51, 888586), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 16, 34, 51, 890586), datetime.datetime(2025, 4, 19, 16, 34, 51, 890586), 0)
2025-04-19 16:34:51,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:51,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:51,907 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:51,907 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('2a94d76d-5038-45db-81e6-b289805ccdda',)
2025-04-19 16:34:51,908 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:51,909 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2a94d76d-5038-45db-81e6-b289805ccdda (优先级 1) 添加到队列 0
2025-04-19 16:34:51,909 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 ec20528a-4205-4694-84e7-36cd8afab13d 已提交执行
2025-04-19 16:34:51,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2a94d76d-5038-45db-81e6-b289805ccdda, 优先级: 1
2025-04-19 16:34:51,990 - services.execution.task_executor - DEBUG - 任务 2a94d76d-5038-45db-81e6-b289805ccdda 设置超时时间: 3600秒
2025-04-19 16:34:51,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:51,991 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:51,991 - sqlalchemy.engine.Engine - INFO - [cached since 0.08493s ago] ('2a94d76d-5038-45db-81e6-b289805ccdda',)
2025-04-19 16:34:51,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:34:51,992 - sqlalchemy.engine.Engine - INFO - [cached since 0.107s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:34:51,994 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:51,994 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (datetime.datetime(2025, 4, 19, 16, 34, 51, 993941), datetime.datetime(2025, 4, 19, 16, 34, 51, 994941), '2a94d76d-5038-45db-81e6-b289805ccdda')
2025-04-19 16:34:51,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,003 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:52,003 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 16, 34, 52, 3946), '2a94d76d-5038-45db-81e6-b289805ccdda')
2025-04-19 16:34:52,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,013 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 16:34:52,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,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-19 16:34:52,016 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('b27951de-f7f0-44e4-8e51-d66b673c4773', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '2a94d76d-5038-45db-81e6-b289805ccdda', datetime.datetime(2025, 4, 19, 16, 34, 52, 13322), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 34, 52, 16167), datetime.datetime(2025, 4, 19, 16, 34, 52, 16167), 0)
2025-04-19 16:34:52,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,024 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,026 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:34:52,026 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('b27951de-f7f0-44e4-8e51-d66b673c4773',)
2025-04-19 16:34:52,027 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:34:52,027 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:34:52,027 - 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-19 16:34:52,027 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 34, 52, 27837), 'b27951de-f7f0-44e4-8e51-d66b673c4773')
2025-04-19 16:34:52,028 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,034 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 16:34:52,035 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 16:34:52,035 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 16:34:52,035 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,036 - 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-19 16:34:52,036 - sqlalchemy.engine.Engine - INFO - [cached since 0.02012s ago] ('22df704c-46b5-47bf-b332-98e147656508', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(vwed_taskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '2a94d76d-5038-45db-81e6-b289805ccdda', datetime.datetime(2025, 4, 19, 16, 34, 52, 35183), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 34, 52, 36179), datetime.datetime(2025, 4, 19, 16, 34, 52, 36179), 0)
2025-04-19 16:34:52,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,044 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 22df704c-46b5-47bf-b332-98e147656508
2025-04-19 16:34:52,045 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,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-19 16:34:52,045 - sqlalchemy.engine.Engine - INFO - [cached since 0.01913s ago] ('22df704c-46b5-47bf-b332-98e147656508',)
2025-04-19 16:34:52,046 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:34:52,046 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:34:52,046 - 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-19 16:34:52,046 - sqlalchemy.engine.Engine - INFO - [cached since 0.01839s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 34, 52, 46345), '22df704c-46b5-47bf-b332-98e147656508')
2025-04-19 16:34:52,047 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,053 - sqlalchemy.engine.Engine - INFO - SELECT id FROM vwed_taskrecord WHERE id = %s
2025-04-19 16:34:52,053 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('2a94d76d-5038-45db-81e6-b289805ccdda',)
2025-04-19 16:34:52,054 - services.execution.block_executor - INFO - 从数据库 vwed_taskrecord.id 获取值: 2a94d76d-5038-45db-81e6-b289805ccdda
2025-04-19 16:34:52,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,054 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 16:34:52,055 - services.execution.handlers.foundation - INFO - 任务 2a94d76d-5038-45db-81e6-b289805ccdda 打印: ['2a94d76d-5038-45db-81e6-b289805ccdda']
2025-04-19 16:34:52,055 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,055 - 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-19 16:34:52,056 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('5d1b6866-3768-44fd-ba49-13fba5b1a286', 1, '{"success": true, "message": "打印成功", "output": {"message": ["2a94d76d-5038-45db-81e6-b289805ccdda"]}}', 1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '2a94d76d-5038-45db-81e6-b289805ccdda', datetime.datetime(2025, 4, 19, 16, 34, 52, 55586), datetime.datetime(2025, 4, 19, 16, 34, 52, 55586), 0)
2025-04-19 16:34:52,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,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-19 16:34:52,063 - sqlalchemy.engine.Engine - INFO - [cached since 0.03706s ago] ('22df704c-46b5-47bf-b332-98e147656508',)
2025-04-19 16:34:52,063 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:34:52,064 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:34:52,064 - 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-19 16:34:52,064 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (datetime.datetime(2025, 4, 19, 16, 34, 52, 64586), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 34, 52, 64586), '22df704c-46b5-47bf-b332-98e147656508')
2025-04-19 16:34:52,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,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-19 16:34:52,072 - sqlalchemy.engine.Engine - INFO - [cached since 0.01633s ago] ('a1c71fb7-d47c-41d1-ae24-e8aeac711a90', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["2a94d76d-5038-45db-81e6-b289805ccdda"]}}]}}', -1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '2a94d76d-5038-45db-81e6-b289805ccdda', datetime.datetime(2025, 4, 19, 16, 34, 52, 72586), datetime.datetime(2025, 4, 19, 16, 34, 52, 72586), 0)
2025-04-19 16:34:52,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,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-19 16:34:52,080 - sqlalchemy.engine.Engine - INFO - [cached since 0.05419s ago] ('b27951de-f7f0-44e4-8e51-d66b673c4773',)
2025-04-19 16:34:52,080 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:34:52,081 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:34:52,081 - 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-19 16:34:52,081 - sqlalchemy.engine.Engine - INFO - [cached since 0.01706s ago] (datetime.datetime(2025, 4, 19, 16, 34, 52, 81586), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 34, 52, 81586), 'b27951de-f7f0-44e4-8e51-d66b673c4773')
2025-04-19 16:34:52,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:34:52,092 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:34:52,093 - sqlalchemy.engine.Engine - INFO - [generated in 0.00101s] (datetime.datetime(2025, 4, 19, 16, 34, 52, 91586), '任务执行成功', 1000, 89, datetime.datetime(2025, 4, 19, 16, 34, 52, 92592), '2a94d76d-5038-45db-81e6-b289805ccdda')
2025-04-19 16:34:52,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:34:52,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 2a94d76d-5038-45db-81e6-b289805ccdda, 结果: True
2025-04-19 16:35:01,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:01,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:35:01,928 - sqlalchemy.engine.Engine - INFO - [cached since 10.04s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:35:01,929 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 16:35:01,930 - sqlalchemy.engine.Engine - INFO - [cached since 10.04s ago] ('73a0e238-0082-4653-a71e-062c11eda97d', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 16, 35, 1, 928880), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 16, 35, 1, 928880), datetime.datetime(2025, 4, 19, 16, 35, 1, 928880), 0)
2025-04-19 16:35:01,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:01,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:01,952 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:01,952 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('73a0e238-0082-4653-a71e-062c11eda97d',)
2025-04-19 16:35:01,953 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:01,954 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 73a0e238-0082-4653-a71e-062c11eda97d (优先级 1) 添加到队列 0
2025-04-19 16:35:01,954 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 ec20528a-4205-4694-84e7-36cd8afab13d 已提交执行
2025-04-19 16:35:02,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 73a0e238-0082-4653-a71e-062c11eda97d, 优先级: 1
2025-04-19 16:35:02,066 - services.execution.task_executor - DEBUG - 任务 73a0e238-0082-4653-a71e-062c11eda97d 设置超时时间: 3600秒
2025-04-19 16:35:02,067 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,068 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:02,068 - sqlalchemy.engine.Engine - INFO - [cached since 10.16s ago] ('73a0e238-0082-4653-a71e-062c11eda97d',)
2025-04-19 16:35:02,069 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:35:02,070 - sqlalchemy.engine.Engine - INFO - [cached since 10.18s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:35:02,071 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:02,071 - sqlalchemy.engine.Engine - INFO - [cached since 10.08s ago] (datetime.datetime(2025, 4, 19, 16, 35, 2, 71140), datetime.datetime(2025, 4, 19, 16, 35, 2, 71140), '73a0e238-0082-4653-a71e-062c11eda97d')
2025-04-19 16:35:02,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,083 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:02,083 - sqlalchemy.engine.Engine - INFO - [cached since 10.08s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 16, 35, 2, 83623), '73a0e238-0082-4653-a71e-062c11eda97d')
2025-04-19 16:35:02,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,090 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 16:35:02,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,091 - 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-19 16:35:02,092 - sqlalchemy.engine.Engine - INFO - [cached since 10.08s ago] ('541dc1da-5025-4e85-a473-137c67f32172', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '73a0e238-0082-4653-a71e-062c11eda97d', datetime.datetime(2025, 4, 19, 16, 35, 2, 91519), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 35, 2, 91519), datetime.datetime(2025, 4, 19, 16, 35, 2, 91519), 0)
2025-04-19 16:35:02,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,103 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:35:02,103 - sqlalchemy.engine.Engine - INFO - [cached since 10.08s ago] ('541dc1da-5025-4e85-a473-137c67f32172',)
2025-04-19 16:35:02,104 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:35:02,105 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:35:02,105 - 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-19 16:35:02,107 - sqlalchemy.engine.Engine - INFO - [cached since 10.08s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 35, 2, 105450), '541dc1da-5025-4e85-a473-137c67f32172')
2025-04-19 16:35:02,107 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,115 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 16:35:02,115 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 16:35:02,115 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 16:35:02,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,119 - 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-19 16:35:02,119 - sqlalchemy.engine.Engine - INFO - [cached since 10.1s ago] ('c9a53c95-9fc7-4ba5-9fe4-2cdedd189581', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(vwed_taskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '73a0e238-0082-4653-a71e-062c11eda97d', datetime.datetime(2025, 4, 19, 16, 35, 2, 116857), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 35, 2, 119742), datetime.datetime(2025, 4, 19, 16, 35, 2, 119742), 0)
2025-04-19 16:35:02,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,127 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c9a53c95-9fc7-4ba5-9fe4-2cdedd189581
2025-04-19 16:35:02,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,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-19 16:35:02,129 - sqlalchemy.engine.Engine - INFO - [cached since 10.1s ago] ('c9a53c95-9fc7-4ba5-9fe4-2cdedd189581',)
2025-04-19 16:35:02,130 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:35:02,130 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:35:02,130 - 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-19 16:35:02,130 - sqlalchemy.engine.Engine - INFO - [cached since 10.1s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 35, 2, 130714), 'c9a53c95-9fc7-4ba5-9fe4-2cdedd189581')
2025-04-19 16:35:02,131 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,141 - sqlalchemy.engine.Engine - INFO - SELECT id FROM vwed_taskrecord WHERE id = %s
2025-04-19 16:35:02,141 - sqlalchemy.engine.Engine - INFO - [cached since 10.09s ago] ('73a0e238-0082-4653-a71e-062c11eda97d',)
2025-04-19 16:35:02,142 - services.execution.block_executor - INFO - 从数据库 vwed_taskrecord.id 获取值: 73a0e238-0082-4653-a71e-062c11eda97d
2025-04-19 16:35:02,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,142 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 16:35:02,142 - services.execution.handlers.foundation - INFO - 任务 73a0e238-0082-4653-a71e-062c11eda97d 打印: ['73a0e238-0082-4653-a71e-062c11eda97d']
2025-04-19 16:35:02,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,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-19 16:35:02,143 - sqlalchemy.engine.Engine - INFO - [cached since 10.09s ago] ('8b5c1ce2-0aeb-411b-8fa9-0910ab6ef008', 1, '{"success": true, "message": "打印成功", "output": {"message": ["73a0e238-0082-4653-a71e-062c11eda97d"]}}', 1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '73a0e238-0082-4653-a71e-062c11eda97d', datetime.datetime(2025, 4, 19, 16, 35, 2, 143780), datetime.datetime(2025, 4, 19, 16, 35, 2, 143780), 0)
2025-04-19 16:35:02,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,154 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:35:02,154 - sqlalchemy.engine.Engine - INFO - [cached since 10.13s ago] ('c9a53c95-9fc7-4ba5-9fe4-2cdedd189581',)
2025-04-19 16:35:02,155 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:35:02,155 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:35:02,155 - 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-19 16:35:02,157 - sqlalchemy.engine.Engine - INFO - [cached since 10.09s ago] (datetime.datetime(2025, 4, 19, 16, 35, 2, 155883), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 35, 2, 155883), 'c9a53c95-9fc7-4ba5-9fe4-2cdedd189581')
2025-04-19 16:35:02,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,164 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,165 - 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-19 16:35:02,165 - sqlalchemy.engine.Engine - INFO - [cached since 10.11s ago] ('0a5da98f-d9bd-49a0-acaf-c00699cd18eb', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["73a0e238-0082-4653-a71e-062c11eda97d"]}}]}}', -1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '73a0e238-0082-4653-a71e-062c11eda97d', datetime.datetime(2025, 4, 19, 16, 35, 2, 165674), datetime.datetime(2025, 4, 19, 16, 35, 2, 165674), 0)
2025-04-19 16:35:02,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,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-19 16:35:02,173 - sqlalchemy.engine.Engine - INFO - [cached since 10.15s ago] ('541dc1da-5025-4e85-a473-137c67f32172',)
2025-04-19 16:35:02,174 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:35:02,174 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:35:02,174 - 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-19 16:35:02,175 - sqlalchemy.engine.Engine - INFO - [cached since 10.11s ago] (datetime.datetime(2025, 4, 19, 16, 35, 2, 174054), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 35, 2, 174054), '541dc1da-5025-4e85-a473-137c67f32172')
2025-04-19 16:35:02,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,184 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:02,184 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:02,184 - sqlalchemy.engine.Engine - INFO - [cached since 10.09s ago] (datetime.datetime(2025, 4, 19, 16, 35, 2, 183057), '任务执行成功', 1000, 100, datetime.datetime(2025, 4, 19, 16, 35, 2, 184051), '73a0e238-0082-4653-a71e-062c11eda97d')
2025-04-19 16:35:02,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:02,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 73a0e238-0082-4653-a71e-062c11eda97d, 结果: True
2025-04-19 16:35:11,954 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:11,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:35:11,954 - sqlalchemy.engine.Engine - INFO - [cached since 20.07s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:35:11,955 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 16:35:11,956 - sqlalchemy.engine.Engine - INFO - [cached since 20.07s ago] ('1ae86115-5c33-438d-bbf7-789c452cd67b', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 16, 35, 11, 955703), None, None, 1002, None, None, None, None, None, None, None, None, None, 1, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 16, 35, 11, 955703), datetime.datetime(2025, 4, 19, 16, 35, 11, 955703), 0)
2025-04-19 16:35:11,957 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:11,974 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:11,974 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:11,974 - sqlalchemy.engine.Engine - INFO - [cached since 20.07s ago] ('1ae86115-5c33-438d-bbf7-789c452cd67b',)
2025-04-19 16:35:11,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:11,976 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 1ae86115-5c33-438d-bbf7-789c452cd67b (优先级 1) 添加到队列 0
2025-04-19 16:35:11,976 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务 ec20528a-4205-4694-84e7-36cd8afab13d 已提交执行
2025-04-19 16:35:12,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 1ae86115-5c33-438d-bbf7-789c452cd67b, 优先级: 1
2025-04-19 16:35:12,064 - services.execution.task_executor - DEBUG - 任务 1ae86115-5c33-438d-bbf7-789c452cd67b 设置超时时间: 3600秒
2025-04-19 16:35:12,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,065 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:12,066 - sqlalchemy.engine.Engine - INFO - [cached since 20.16s ago] ('1ae86115-5c33-438d-bbf7-789c452cd67b',)
2025-04-19 16:35:12,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:35:12,067 - sqlalchemy.engine.Engine - INFO - [cached since 20.18s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:35:12,070 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:12,070 - sqlalchemy.engine.Engine - INFO - [cached since 20.08s ago] (datetime.datetime(2025, 4, 19, 16, 35, 12, 69510), datetime.datetime(2025, 4, 19, 16, 35, 12, 70501), '1ae86115-5c33-438d-bbf7-789c452cd67b')
2025-04-19 16:35:12,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,078 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,079 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:12,079 - sqlalchemy.engine.Engine - INFO - [cached since 20.08s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 16, 35, 12, 79502), '1ae86115-5c33-438d-bbf7-789c452cd67b')
2025-04-19 16:35:12,080 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,088 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 16:35:12,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,089 - 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-19 16:35:12,090 - sqlalchemy.engine.Engine - INFO - [cached since 20.07s ago] ('3a30a887-f166-4786-8dcb-c8d028d4c56a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '1ae86115-5c33-438d-bbf7-789c452cd67b', datetime.datetime(2025, 4, 19, 16, 35, 12, 88509), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 35, 12, 89503), datetime.datetime(2025, 4, 19, 16, 35, 12, 89503), 0)
2025-04-19 16:35:12,090 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,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-19 16:35:12,097 - sqlalchemy.engine.Engine - INFO - [cached since 20.07s ago] ('3a30a887-f166-4786-8dcb-c8d028d4c56a',)
2025-04-19 16:35:12,098 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:35:12,098 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:35:12,098 - 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-19 16:35:12,099 - sqlalchemy.engine.Engine - INFO - [cached since 20.07s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 35, 12, 98502), '3a30a887-f166-4786-8dcb-c8d028d4c56a')
2025-04-19 16:35:12,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,108 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 16:35:12,109 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 16:35:12,109 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 16:35:12,109 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,110 - 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-19 16:35:12,110 - sqlalchemy.engine.Engine - INFO - [cached since 20.09s ago] ('9e6ff872-8943-4110-9d14-98ea90d53819', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(vwed_taskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '1ae86115-5c33-438d-bbf7-789c452cd67b', datetime.datetime(2025, 4, 19, 16, 35, 12, 109502), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 35, 12, 110501), datetime.datetime(2025, 4, 19, 16, 35, 12, 110501), 0)
2025-04-19 16:35:12,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,120 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 9e6ff872-8943-4110-9d14-98ea90d53819
2025-04-19 16:35:12,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,121 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:35:12,121 - sqlalchemy.engine.Engine - INFO - [cached since 20.1s ago] ('9e6ff872-8943-4110-9d14-98ea90d53819',)
2025-04-19 16:35:12,122 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:35:12,122 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:35:12,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-19 16:35:12,122 - sqlalchemy.engine.Engine - INFO - [cached since 20.09s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 35, 12, 122501), '9e6ff872-8943-4110-9d14-98ea90d53819')
2025-04-19 16:35:12,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,130 - sqlalchemy.engine.Engine - INFO - SELECT id FROM vwed_taskrecord WHERE id = %s
2025-04-19 16:35:12,130 - sqlalchemy.engine.Engine - INFO - [cached since 20.08s ago] ('1ae86115-5c33-438d-bbf7-789c452cd67b',)
2025-04-19 16:35:12,130 - services.execution.block_executor - INFO - 从数据库 vwed_taskrecord.id 获取值: 1ae86115-5c33-438d-bbf7-789c452cd67b
2025-04-19 16:35:12,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,130 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 16:35:12,131 - services.execution.handlers.foundation - INFO - 任务 1ae86115-5c33-438d-bbf7-789c452cd67b 打印: ['1ae86115-5c33-438d-bbf7-789c452cd67b']
2025-04-19 16:35:12,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,131 - 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-19 16:35:12,131 - sqlalchemy.engine.Engine - INFO - [cached since 20.08s ago] ('39cdcd46-57ad-46c6-8ed3-718458c66505', 1, '{"success": true, "message": "打印成功", "output": {"message": ["1ae86115-5c33-438d-bbf7-789c452cd67b"]}}', 1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '1ae86115-5c33-438d-bbf7-789c452cd67b', datetime.datetime(2025, 4, 19, 16, 35, 12, 131502), datetime.datetime(2025, 4, 19, 16, 35, 12, 131502), 0)
2025-04-19 16:35:12,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,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-19 16:35:12,139 - sqlalchemy.engine.Engine - INFO - [cached since 20.11s ago] ('9e6ff872-8943-4110-9d14-98ea90d53819',)
2025-04-19 16:35:12,139 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:35:12,140 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:35:12,140 - 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-19 16:35:12,140 - sqlalchemy.engine.Engine - INFO - [cached since 20.08s ago] (datetime.datetime(2025, 4, 19, 16, 35, 12, 140908), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 35, 12, 140908), '9e6ff872-8943-4110-9d14-98ea90d53819')
2025-04-19 16:35:12,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,153 - 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-19 16:35:12,153 - sqlalchemy.engine.Engine - INFO - [cached since 20.1s ago] ('5cd66c41-05c1-4ca8-a2ed-856a25a2bdb9', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["1ae86115-5c33-438d-bbf7-789c452cd67b"]}}]}}', -1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '1ae86115-5c33-438d-bbf7-789c452cd67b', datetime.datetime(2025, 4, 19, 16, 35, 12, 153897), datetime.datetime(2025, 4, 19, 16, 35, 12, 153897), 0)
2025-04-19 16:35:12,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,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-19 16:35:12,163 - sqlalchemy.engine.Engine - INFO - [cached since 20.14s ago] ('3a30a887-f166-4786-8dcb-c8d028d4c56a',)
2025-04-19 16:35:12,164 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:35:12,164 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:35:12,165 - 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-19 16:35:12,165 - sqlalchemy.engine.Engine - INFO - [cached since 20.1s ago] (datetime.datetime(2025, 4, 19, 16, 35, 12, 164191), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 35, 12, 165191), '3a30a887-f166-4786-8dcb-c8d028d4c56a')
2025-04-19 16:35:12,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,177 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:35:12,177 - sqlalchemy.engine.Engine - INFO - [cached since 20.08s ago] (datetime.datetime(2025, 4, 19, 16, 35, 12, 176191), '任务执行成功', 1000, 97, datetime.datetime(2025, 4, 19, 16, 35, 12, 177192), '1ae86115-5c33-438d-bbf7-789c452cd67b')
2025-04-19 16:35:12,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: 1ae86115-5c33-438d-bbf7-789c452cd67b, 结果: True
2025-04-19 16:35:12,422 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/ec20528a-4205-4694-84e7-36cd8afab13d 来自 127.0.0.1
2025-04-19 16:35:12,424 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,424 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:35:12,425 - sqlalchemy.engine.Engine - INFO - [cached since 20.54s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:35:12,426 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET if_enable=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-19 16:35:12,426 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] (0, datetime.datetime(2025, 4, 19, 16, 35, 12, 426264), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-19 16:35:12,427 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,433 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,434 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:35:12,435 - sqlalchemy.engine.Engine - INFO - [cached since 20.55s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:35:12,436 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,437 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:12,438 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-19 16:35:12,438 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('ec20528a-4205-4694-84e7-36cd8afab13d', 1001)
2025-04-19 16:35:12,439 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-19 16:35:12,439 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (0, datetime.datetime(2025, 4, 19, 16, 35, 12, 439352), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-19 16:35:12,441 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:12,450 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/ec20528a-4205-4694-84e7-36cd8afab13d 状态码: 200 耗时: 0.0290秒
2025-04-19 16:35:46,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:35:46,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:35:46,873 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 19, 15, 35, 46, 871533))
2025-04-19 16:35:46,874 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:35:46,901 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:35:46,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:35:46,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:35:46,902 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:35:46,902 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:35:46,902 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:35:46,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:35:46,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:35:46,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:35:46,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:35:46,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:35:46,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:35:57,556 - root - INFO - 应用程序关闭中...
2025-04-19 16:35:57,556 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 16:35:57,556 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 16:35:57,556 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 16:35:57,557 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 16:35:57,557 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 16:35:57,557 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 16:35:57,558 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 16:35:57,558 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 16:35:57,558 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 16:35:57,558 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 16:35:57,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:35:57,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:35:57,559 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:35:57,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:35:57,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:35:57,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 16:35:57,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:35:57,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:35:57,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-19 16:35:57,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:35:57,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:35:57,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 1
2025-04-19 16:35:57,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:35:57,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:35:57,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 16:35:57,560 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 16:35:57,561 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 16:35:57,561 - root - INFO - 增强版任务调度器已停止
2025-04-19 16:35:57,561 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 16:35:57,561 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 16:35:57,561 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 16:35:57,562 - data.session - INFO - 数据库连接已关闭
2025-04-19 16:35:59,273 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:35:59,274 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:36:00,090 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:36:00,090 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:36:00,165 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 16:36:00,214 - data.session - INFO - 正在初始化数据库...
2025-04-19 16:36:00,250 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 16:36:00,265 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:36:00,266 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,267 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:36:00,267 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,267 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:36:00,268 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,268 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:00,268 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-19 16:36:00,268 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-19 16:36:00,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,270 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-19 16:36:00,270 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,272 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-19 16:36:00,273 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,273 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-19 16:36:00,274 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,276 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-19 16:36:00,276 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,277 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-19 16:36:00,277 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,279 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-19 16:36:00,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,280 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-19 16:36:00,280 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,282 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-19 16:36:00,282 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,283 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-19 16:36:00,283 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:36:00,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:00,286 - data.session - INFO - 数据库表初始化完成
2025-04-19 16:36:00,674 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 16:36:00,674 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 16:36:00,675 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 16:36:00,675 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 16:36:00,675 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 16:36:00,675 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 16:36:00,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 16:36:00,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 16:36:00,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 16:36:00,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 16:36:00,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:36:00,675 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 16:36:00,676 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 16:36:00,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:36:00,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:36:00,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:36:00,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:36:00,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:36:00,680 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 16:36:00,681 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 16:36:00,682 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:36:00,682 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:36:00,683 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:36:00,683 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:36:00,684 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:36:00,684 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:36:00,684 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:36:00,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:00,696 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-19 16:36:00,698 - sqlalchemy.engine.Engine - INFO - [generated in 0.00150s] (1, 1)
2025-04-19 16:36:00,699 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 16:36:00,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:00,701 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 16:36:00,701 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 16:36:00,702 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 16:36:00,703 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:00,706 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, 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-19 16:36:00,707 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1000, 2000, 2001)
2025-04-19 16:36:00,708 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:00,709 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 16:36:00,710 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 16:36:00,710 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 16:36:00,710 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 16:36:00,711 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:36:00,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:00,712 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:36:00,712 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (1001, datetime.datetime(2025, 4, 19, 15, 36, 0, 703086))
2025-04-19 16:36:00,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:23,067 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/ec20528a-4205-4694-84e7-36cd8afab13d 来自 127.0.0.1
2025-04-19 16:36:23,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:23,072 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:36:23,072 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:36:23,073 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-19 16:36:23,073 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('ec20528a-4205-4694-84e7-36cd8afab13d', 1001)
2025-04-19 16:36:23,075 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-19 16:36:23,075 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] (0, datetime.datetime(2025, 4, 19, 16, 36, 23, 75252), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-19 16:36:23,075 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:23,093 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/ec20528a-4205-4694-84e7-36cd8afab13d 状态码: 200 耗时: 0.0267秒
2025-04-19 16:36:26,053 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/ec20528a-4205-4694-84e7-36cd8afab13d 来自 127.0.0.1
2025-04-19 16:36:26,054 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:26,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:36:26,055 - sqlalchemy.engine.Engine - INFO - [cached since 2.983s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:36:26,056 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-19 16:36:26,056 - sqlalchemy.engine.Engine - INFO - [cached since 2.983s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d', 1001)
2025-04-19 16:36:26,057 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-19 16:36:26,057 - sqlalchemy.engine.Engine - INFO - [cached since 2.982s ago] (0, datetime.datetime(2025, 4, 19, 16, 36, 26, 57457), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-19 16:36:26,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:26,077 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/ec20528a-4205-4694-84e7-36cd8afab13d 状态码: 200 耗时: 0.0239秒
2025-04-19 16:36:33,673 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-19 16:36:33,675 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,675 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:36:33,676 - sqlalchemy.engine.Engine - INFO - [cached since 10.6s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:36:33,677 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,677 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:36:33,678 - sqlalchemy.engine.Engine - INFO - [cached since 10.61s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:36:33,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,680 - services.task_edit_service - INFO - 启动普通任务: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-19 16:36:33,681 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,681 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-19 16:36:33,682 - sqlalchemy.engine.Engine - INFO - [cached since 10.61s ago] (1, datetime.datetime(2025, 4, 19, 16, 36, 33, 681702), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-19 16:36:33,682 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,696 - services.task_edit_service - INFO - 更新任务定义状态为运行中: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-19 16:36:33,697 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,697 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:36:33,698 - sqlalchemy.engine.Engine - INFO - [cached since 10.63s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:36:33,701 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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)
2025-04-19 16:36:33,701 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('89422e5b-d2fc-4816-8d62-f04bddcafa32', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 19, 16, 36, 33, 700622), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, datetime.datetime(2025, 4, 19, 16, 36, 33, 701621), datetime.datetime(2025, 4, 19, 16, 36, 33, 701621), 0)
2025-04-19 16:36:33,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,714 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:36:33,714 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('89422e5b-d2fc-4816-8d62-f04bddcafa32',)
2025-04-19 16:36:33,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,716 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 89422e5b-d2fc-4816-8d62-f04bddcafa32 (优先级 1) 添加到队列 0
2025-04-19 16:36:33,716 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0429秒
2025-04-19 16:36:33,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 89422e5b-d2fc-4816-8d62-f04bddcafa32, 优先级: 1
2025-04-19 16:36:33,744 - services.execution.task_executor - DEBUG - 任务 89422e5b-d2fc-4816-8d62-f04bddcafa32 设置超时时间: 3600秒
2025-04-19 16:36:33,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,745 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-19 16:36:33,746 - sqlalchemy.engine.Engine - INFO - [cached since 0.03224s ago] ('89422e5b-d2fc-4816-8d62-f04bddcafa32',)
2025-04-19 16:36:33,747 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-19 16:36:33,747 - sqlalchemy.engine.Engine - INFO - [cached since 10.68s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-19 16:36:33,748 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:36:33,749 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (datetime.datetime(2025, 4, 19, 16, 36, 33, 748621), datetime.datetime(2025, 4, 19, 16, 36, 33, 748621), '89422e5b-d2fc-4816-8d62-f04bddcafa32')
2025-04-19 16:36:33,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,777 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:36:33,778 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', 1001, datetime.datetime(2025, 4, 19, 16, 36, 33, 777221), '89422e5b-d2fc-4816-8d62-f04bddcafa32')
2025-04-19 16:36:33,778 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,783 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-19 16:36:33,784 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,785 - 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-19 16:36:33,786 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('cb81ba1e-1709-42dc-ae3d-5727f236f48d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '89422e5b-d2fc-4816-8d62-f04bddcafa32', datetime.datetime(2025, 4, 19, 16, 36, 33, 784213), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 36, 33, 785213), datetime.datetime(2025, 4, 19, 16, 36, 33, 785213), 0)
2025-04-19 16:36:33,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:36:33,796 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('cb81ba1e-1709-42dc-ae3d-5727f236f48d',)
2025-04-19 16:36:33,797 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:36:33,797 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:36:33,798 - 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-19 16:36:33,798 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 36, 33, 798221), 'cb81ba1e-1709-42dc-ae3d-5727f236f48d')
2025-04-19 16:36:33,799 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,805 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-19 16:36:33,805 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-19 16:36:33,806 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-19 16:36:33,806 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,806 - 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-19 16:36:33,807 - sqlalchemy.engine.Engine - INFO - [cached since 0.02135s ago] ('7b2ae032-2ddb-443e-8348-2825ade25852', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(vwed_taskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '89422e5b-d2fc-4816-8d62-f04bddcafa32', datetime.datetime(2025, 4, 19, 16, 36, 33, 806222), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 19, 16, 36, 33, 806222), datetime.datetime(2025, 4, 19, 16, 36, 33, 806222), 0)
2025-04-19 16:36:33,807 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,814 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 7b2ae032-2ddb-443e-8348-2825ade25852
2025-04-19 16:36:33,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,815 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:36:33,815 - sqlalchemy.engine.Engine - INFO - [cached since 0.01966s ago] ('7b2ae032-2ddb-443e-8348-2825ade25852',)
2025-04-19 16:36:33,816 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:36:33,816 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:36:33,816 - 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-19 16:36:33,816 - sqlalchemy.engine.Engine - INFO - [cached since 0.01847s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 19, 16, 36, 33, 816213), '7b2ae032-2ddb-443e-8348-2825ade25852')
2025-04-19 16:36:33,817 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,827 - sqlalchemy.engine.Engine - INFO - SELECT id FROM vwed_taskrecord WHERE id = %s
2025-04-19 16:36:33,829 - sqlalchemy.engine.Engine - INFO - [generated in 0.00303s] ('89422e5b-d2fc-4816-8d62-f04bddcafa32',)
2025-04-19 16:36:33,831 - services.execution.block_executor - INFO - 从数据库 vwed_taskrecord.id 获取值: 89422e5b-d2fc-4816-8d62-f04bddcafa32
2025-04-19 16:36:33,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,832 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-19 16:36:33,833 - services.execution.handlers.foundation - INFO - 任务 89422e5b-d2fc-4816-8d62-f04bddcafa32 打印: ['89422e5b-d2fc-4816-8d62-f04bddcafa32']
2025-04-19 16:36:33,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,840 - 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-19 16:36:33,840 - sqlalchemy.engine.Engine - INFO - [generated in 0.00129s] ('f914a551-b3c7-441a-909e-9ed2f6a3cc30', 1, '{"success": true, "message": "打印成功", "output": {"message": ["89422e5b-d2fc-4816-8d62-f04bddcafa32"]}}', 1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '89422e5b-d2fc-4816-8d62-f04bddcafa32', datetime.datetime(2025, 4, 19, 16, 36, 33, 839222), datetime.datetime(2025, 4, 19, 16, 36, 33, 839222), 0)
2025-04-19 16:36:33,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,851 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,851 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:36:33,851 - sqlalchemy.engine.Engine - INFO - [cached since 0.05561s ago] ('7b2ae032-2ddb-443e-8348-2825ade25852',)
2025-04-19 16:36:33,853 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-19 16:36:33,853 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-19 16:36:33,853 - 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-19 16:36:33,854 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (datetime.datetime(2025, 4, 19, 16, 36, 33, 853230), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 36, 33, 853230), '7b2ae032-2ddb-443e-8348-2825ade25852')
2025-04-19 16:36:33,855 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,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-19 16:36:33,864 - sqlalchemy.engine.Engine - INFO - [cached since 0.02483s ago] ('e32d8397-797a-4378-a40a-6369279c969c', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["89422e5b-d2fc-4816-8d62-f04bddcafa32"]}}]}}', -1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '89422e5b-d2fc-4816-8d62-f04bddcafa32', datetime.datetime(2025, 4, 19, 16, 36, 33, 863221), datetime.datetime(2025, 4, 19, 16, 36, 33, 863221), 0)
2025-04-19 16:36:33,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-19 16:36:33,874 - sqlalchemy.engine.Engine - INFO - [cached since 0.07857s ago] ('cb81ba1e-1709-42dc-ae3d-5727f236f48d',)
2025-04-19 16:36:33,879 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-19 16:36:33,880 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-19 16:36:33,881 - 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-19 16:36:33,885 - sqlalchemy.engine.Engine - INFO - [cached since 0.03125s ago] (datetime.datetime(2025, 4, 19, 16, 36, 33, 881213), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 19, 16, 36, 33, 881213), 'cb81ba1e-1709-42dc-ae3d-5727f236f48d')
2025-04-19 16:36:33,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,894 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:36:33,897 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-19 16:36:33,899 - sqlalchemy.engine.Engine - INFO - [generated in 0.00258s] (datetime.datetime(2025, 4, 19, 16, 36, 33, 893223), '任务执行成功', 1000, 117, datetime.datetime(2025, 4, 19, 16, 36, 33, 897391), '89422e5b-d2fc-4816-8d62-f04bddcafa32')
2025-04-19 16:36:33,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:36:33,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 89422e5b-d2fc-4816-8d62-f04bddcafa32, 结果: True
2025-04-19 16:37:00,710 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:37:00,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:37:00,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:37:00,711 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:37:00,711 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:37:00,711 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:37:00,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:37:00,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:37:00,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:37:00,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:37:00,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:37:00,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:37:00,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:37:00,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:37:00,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:37:00,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:37:00,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:37:00,713 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:37:00,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:37:00,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:37:00,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:37:00,714 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:37:00,714 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:37:00,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:37:00,718 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:37:00,719 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:37:00,719 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 19, 15, 37, 0, 718172))
2025-04-19 16:37:00,720 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:37:45,720 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:37:45,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:37:45,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:37:45,720 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:37:45,721 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:37:45,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:38:00,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:38:00,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:38:00,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:38:00,737 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:38:00,737 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:38:00,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:38:00,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:38:00,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:38:00,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:38:00,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:38:00,738 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:38:00,739 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 19, 15, 38, 0, 735302))
2025-04-19 16:38:00,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:38:00,739 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:38:00,740 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:38:00,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:38:00,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:38:00,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:38:00,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:38:00,740 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:38:00,740 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:38:00,742 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:38:00,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:38:00,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:38:00,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:38:00,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:38:00,742 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:38:00,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:38:45,789 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:38:45,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:38:45,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:38:45,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:38:45,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:38:45,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:39:00,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:39:00,751 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:39:00,751 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 19, 15, 39, 0, 749791))
2025-04-19 16:39:00,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:39:00,796 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:39:00,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:39:00,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:39:00,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:39:00,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:39:00,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:39:00,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:39:00,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:39:00,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:39:00,798 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:39:00,798 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:39:00,798 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:39:00,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:39:00,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:39:00,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:39:00,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:39:00,799 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:39:00,799 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:39:00,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:39:00,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:39:00,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:39:00,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:39:00,799 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:39:00,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:39:45,837 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:39:45,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:39:45,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:39:45,838 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:39:45,838 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:39:45,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:40:00,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:40:00,748 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:40:00,748 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (1001, datetime.datetime(2025, 4, 19, 15, 40, 0, 747349))
2025-04-19 16:40:00,749 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:40:00,827 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:40:00,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:40:00,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:40:00,828 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:40:00,828 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:40:00,829 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:40:00,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:40:00,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:40:00,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:40:00,830 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:40:00,830 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:40:00,830 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:40:00,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:40:00,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:40:00,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:40:00,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:40:00,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:40:00,831 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:40:00,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:40:00,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:40:00,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:40:00,832 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:40:00,832 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:40:00,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:40:45,849 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:40:45,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:40:45,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:40:45,851 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:40:45,851 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:40:45,851 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:41:00,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:41:00,746 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:41:00,746 - sqlalchemy.engine.Engine - INFO - [cached since 300s ago] (1001, datetime.datetime(2025, 4, 19, 15, 41, 0, 745353))
2025-04-19 16:41:00,747 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:41:00,839 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:41:00,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:41:00,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:41:00,840 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:41:00,840 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:41:00,840 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:41:00,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:41:00,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:41:00,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:41:00,841 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:41:00,841 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:41:00,842 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:41:00,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:41:00,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:41:00,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:41:00,842 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:41:00,843 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:41:00,843 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:41:00,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:41:00,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:41:00,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:41:00,843 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:41:00,843 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:41:00,849 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:41:45,861 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:41:45,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:41:45,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:41:45,862 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:41:45,862 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:41:45,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:42:00,765 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:42:00,766 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:42:00,766 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 42, 0, 763657))
2025-04-19 16:42:00,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:42:00,875 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:42:00,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:42:00,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:42:00,876 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:42:00,876 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:42:00,876 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:42:00,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:42:00,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:42:00,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:42:00,877 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:42:00,877 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:42:00,878 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:42:00,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:42:00,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:42:00,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:42:00,878 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:42:00,878 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:42:00,878 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:42:00,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:42:00,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:42:00,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:42:00,879 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:42:00,879 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:42:00,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:42:45,872 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:42:45,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:42:45,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:42:45,873 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:42:45,873 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:42:45,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:43:00,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:43:00,763 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:43:00,763 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 43, 0, 762164))
2025-04-19 16:43:00,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:43:15,885 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:43:15,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:43:15,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:43:15,886 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:43:15,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:43:15,886 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:43:15,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:43:15,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:43:15,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:43:15,887 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:43:15,887 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:43:15,887 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:43:15,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:43:15,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:43:15,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:43:15,888 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:43:15,888 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:43:15,888 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:43:15,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:43:15,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:43:15,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:43:15,888 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:43:15,888 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:43:15,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:43:45,899 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:43:45,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:43:45,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:43:45,900 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:43:45,900 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:43:45,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:44:00,775 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:44:00,776 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:44:00,776 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 44, 0, 775139))
2025-04-19 16:44:00,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:44:15,913 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:44:15,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:44:15,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:44:15,914 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:44:15,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:44:15,914 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:44:15,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:44:15,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:44:15,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:44:15,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:44:15,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:44:15,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:44:15,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:44:15,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:44:15,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:44:15,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:44:15,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:44:15,916 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:44:15,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:44:15,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:44:15,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:44:15,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:44:15,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:44:15,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:44:45,932 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:44:45,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:44:45,933 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:44:45,933 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:44:45,933 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:44:45,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:45:00,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:45:00,762 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:45:00,762 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 45, 0, 760909))
2025-04-19 16:45:00,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:45:15,959 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:45:15,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:45:15,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:45:15,960 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:45:15,960 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:45:15,960 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:45:15,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:45:15,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:45:15,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:45:15,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:45:15,962 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:45:15,963 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:45:15,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:45:15,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:45:15,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:45:15,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:45:15,963 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:45:15,964 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:45:15,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:45:15,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:45:15,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:45:15,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:45:15,964 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:45:15,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:45:45,994 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:45:45,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:45:45,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:45:45,996 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:45:45,996 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:45:45,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:46:00,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:46:00,777 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:46:00,778 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 46, 0, 776385))
2025-04-19 16:46:00,779 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:46:15,982 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:46:15,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:46:15,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:46:15,984 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:46:15,984 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:46:15,984 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:46:15,986 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:46:15,986 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:46:15,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:46:15,988 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:46:15,988 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:46:15,988 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:46:15,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:46:15,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:46:15,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:46:15,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:46:15,989 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:46:15,989 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:46:15,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:46:15,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:46:15,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:46:15,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:46:15,989 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:46:15,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:46:46,008 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:46:46,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:46:46,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:46:46,009 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:46:46,010 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:46:46,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:47:00,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:47:00,795 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:47:00,795 - sqlalchemy.engine.Engine - INFO - [cached since 660.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 47, 0, 793943))
2025-04-19 16:47:00,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:47:16,033 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:47:16,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:47:16,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:47:16,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:47:16,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:47:16,035 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:47:16,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:47:16,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:47:16,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:47:16,036 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:47:16,036 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:47:16,036 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:47:16,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:47:16,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:47:16,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:47:16,037 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:47:16,037 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:47:16,037 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:47:16,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:47:16,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:47:16,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:47:16,039 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:47:16,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:47:16,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:47:46,053 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:47:46,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:47:46,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:47:46,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:47:46,053 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:47:46,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:48:00,809 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:48:00,809 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:48:00,810 - sqlalchemy.engine.Engine - INFO - [cached since 720.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 48, 0, 808109))
2025-04-19 16:48:00,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:48:16,069 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:48:16,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:48:16,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:48:16,071 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:48:16,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:48:16,072 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:48:16,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:48:16,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:48:16,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:48:16,074 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:48:16,074 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:48:16,075 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:48:16,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:48:16,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:48:16,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:48:16,077 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:48:16,077 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:48:16,077 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:48:16,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:48:16,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:48:16,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:48:16,079 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:48:16,079 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:48:16,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:48:46,112 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:48:46,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:48:46,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:48:46,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:48:46,113 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:48:46,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:49:00,822 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:49:00,823 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:49:00,824 - sqlalchemy.engine.Engine - INFO - [cached since 780.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 49, 0, 821249))
2025-04-19 16:49:00,825 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:49:16,140 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:49:16,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:49:16,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:49:16,140 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:49:16,140 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:49:16,140 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:49:16,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:49:16,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:49:16,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:49:16,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:49:16,142 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:49:16,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:49:16,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:49:16,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:49:16,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:49:16,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:49:16,142 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:49:16,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:49:16,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:49:16,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:49:16,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:49:16,143 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:49:16,143 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:49:16,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:49:46,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:49:46,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:49:46,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:49:46,167 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:49:46,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:49:46,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:50:00,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:50:00,850 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:50:00,851 - sqlalchemy.engine.Engine - INFO - [cached since 840.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 50, 0, 849423))
2025-04-19 16:50:00,852 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:50:16,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:50:16,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:50:16,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:50:16,189 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:50:16,190 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:50:16,190 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:50:16,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:50:16,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:50:16,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:50:16,190 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:50:16,190 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:50:16,190 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:50:16,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:50:16,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:50:16,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:50:16,191 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:50:16,191 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:50:16,191 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:50:16,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:50:16,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:50:16,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:50:16,192 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:50:16,192 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:50:16,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:50:46,224 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:50:46,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:50:46,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:50:46,224 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:50:46,224 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:50:46,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:51:00,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:51:00,860 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:51:00,860 - sqlalchemy.engine.Engine - INFO - [cached since 900.1s ago] (1001, datetime.datetime(2025, 4, 19, 15, 51, 0, 859806))
2025-04-19 16:51:00,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:51:16,243 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:51:16,243 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:51:16,243 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:51:16,244 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:51:16,245 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:51:16,245 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:51:16,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:51:16,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:51:16,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:51:16,246 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:51:16,246 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:51:16,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:51:16,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:51:16,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:51:16,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:51:16,247 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:51:16,247 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:51:16,247 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:51:16,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:51:16,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:51:16,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:51:16,247 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:51:16,247 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:51:16,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:51:46,281 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:51:46,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:51:46,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:51:46,282 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:51:46,282 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:51:46,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:52:00,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:52:00,871 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:52:00,871 - sqlalchemy.engine.Engine - INFO - [cached since 960.2s ago] (1001, datetime.datetime(2025, 4, 19, 15, 52, 0, 869917))
2025-04-19 16:52:00,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:52:16,288 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:52:16,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:52:16,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:52:16,289 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:52:16,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:52:16,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:52:16,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:52:16,291 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:52:16,291 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:52:16,291 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:52:16,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:52:16,291 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:52:16,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:52:16,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:52:16,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:52:16,292 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:52:16,292 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:52:16,293 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:52:16,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:52:16,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:52:16,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:52:16,293 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:52:16,293 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:52:16,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:52:46,312 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:52:46,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:52:46,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:52:46,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:52:46,313 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:52:46,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:52:46,498 - root - INFO - 应用程序关闭中...
2025-04-19 16:52:46,499 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 16:52:46,499 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 16:52:46,499 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 16:52:46,499 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 16:52:46,500 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 16:52:46,500 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 16:52:46,500 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 16:52:46,500 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 16:52:46,500 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 16:52:46,500 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 16:52:46,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:52:46,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:52:46,500 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:52:46,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:52:46,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:52:46,501 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-19 16:52:46,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:52:46,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:52:46,501 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-19 16:52:46,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:52:46,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:52:46,501 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-19 16:52:46,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:52:46,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:52:46,503 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 0
2025-04-19 16:52:46,503 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 16:52:46,503 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 16:52:46,503 - root - INFO - 增强版任务调度器已停止
2025-04-19 16:52:46,503 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 16:52:46,503 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 16:52:46,503 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 16:52:46,504 - data.session - INFO - 数据库连接已关闭
2025-04-19 16:52:47,914 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-19 16:52:47,914 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-19 16:52:47,972 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-19 16:52:48,018 - data.session - INFO - 正在初始化数据库...
2025-04-19 16:52:48,048 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-19 16:52:48,074 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:52:48,075 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,075 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:52:48,076 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,076 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:52:48,076 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,077 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:52:48,077 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-19 16:52:48,077 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,078 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-19 16:52:48,078 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,079 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-19 16:52:48,079 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,080 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-19 16:52:48,080 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,081 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-19 16:52:48,081 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,082 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-19 16:52:48,082 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,082 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-19 16:52:48,083 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,083 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-19 16:52:48,083 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,084 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-19 16:52:48,084 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,085 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-19 16:52:48,085 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,086 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-19 16:52:48,086 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-19 16:52:48,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:52:48,087 - data.session - INFO - 数据库表初始化完成
2025-04-19 16:52:48,424 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-19 16:52:48,424 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-19 16:52:48,424 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-19 16:52:48,425 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-19 16:52:48,425 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-19 16:52:48,425 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-19 16:52:48,425 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-19 16:52:48,425 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-19 16:52:48,425 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-19 16:52:48,425 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-19 16:52:48,425 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:52:48,425 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-19 16:52:48,426 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-19 16:52:48,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:52:48,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:52:48,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:52:48,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:52:48,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:52:48,427 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-19 16:52:48,427 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-19 16:52:48,430 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:52:48,431 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-19 16:52:48,432 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:52:48,432 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-19 16:52:48,432 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:52:48,432 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-19 16:52:48,433 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-19 16:52:48,433 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:52:48,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-19 16:52:48,442 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (1, 1)
2025-04-19 16:52:48,443 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-19 16:52:48,443 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:52:48,444 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-19 16:52:48,444 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-19 16:52:48,444 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-19 16:52:48,445 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:52:48,446 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, 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-19 16:52:48,447 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1000, 2000, 2001)
2025-04-19 16:52:48,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:52:48,449 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-19 16:52:48,449 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-19 16:52:48,449 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-19 16:52:48,449 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-19 16:52:48,450 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-19 16:52:48,451 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:52:48,451 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:52:48,452 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (1001, datetime.datetime(2025, 4, 19, 15, 52, 48, 444469))
2025-04-19 16:52:48,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:53:48,439 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-19 16:53:48,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:53:48,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:53:48,440 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:53:48,440 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-19 16:53:48,440 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-19 16:53:48,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-19 16:53:48,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:53:48,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:53:48,440 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-19 16:53:48,440 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-19 16:53:48,441 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (1001, datetime.datetime(2025, 4, 19, 15, 53, 48, 439321))
2025-04-19 16:53:48,441 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-19 16:53:48,442 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-19 16:53:48,442 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-19 16:53:48,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-19 16:53:48,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:53:48,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:53:48,442 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-19 16:53:48,442 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-19 16:53:48,443 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-19 16:53:48,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-19 16:53:48,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-19 16:53:48,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:53:48,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:53:48,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-19 16:53:48,445 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-19 16:53:48,445 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-19 16:53:48,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-19 16:53:48,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:53:48,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:53:48,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-19 16:53:48,445 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-19 16:53:48,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-19 16:54:20,078 - root - INFO - 应用程序关闭中...
2025-04-19 16:54:20,078 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-19 16:54:20,078 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-19 16:54:20,079 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-19 16:54:20,079 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-19 16:54:20,079 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-19 16:54:20,079 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-19 16:54:20,079 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-19 16:54:20,079 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-19 16:54:20,079 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-19 16:54:20,080 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-19 16:54:20,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-19 16:54:20,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-19 16:54:20,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-19 16:54:20,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-19 16:54:20,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-19 16:54:20,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-19 16:54:20,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-19 16:54:20,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-19 16:54:20,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-19 16:54:20,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-19 16:54:20,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-19 16:54:20,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-19 16:54:20,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-19 16:54:20,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-19 16:54:20,081 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-19 16:54:20,081 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-19 16:54:20,081 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-19 16:54:20,081 - root - INFO - 增强版任务调度器已停止
2025-04-19 16:54:20,081 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-19 16:54:20,081 - data.session - INFO - 异步数据库连接已关闭
2025-04-19 16:54:20,081 - data.session - INFO - 正在关闭数据库连接...
2025-04-19 16:54:20,082 - data.session - INFO - 数据库连接已关闭
2025-04-21 09:21:32,933 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 09:21:32,937 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 09:21:33,740 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 09:21:33,741 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 09:21:33,803 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 09:21:33,864 - data.session - INFO - 正在初始化数据库...
2025-04-21 09:21:33,907 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 09:21:33,928 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:21:33,941 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:33,942 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:21:33,948 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:33,950 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:21:33,953 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:33,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:21:33,960 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 09:21:33,970 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:33,976 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 09:21:33,976 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:33,981 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 09:21:33,982 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:33,986 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 09:21:33,988 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:33,991 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 09:21:33,999 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:34,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 09:21:34,009 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:34,023 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 09:21:34,031 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:34,037 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 09:21:34,038 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:34,044 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 09:21:34,044 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:34,045 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 09:21:34,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:34,066 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 09:21:34,069 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:21:34,078 - 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 '任务定义版本', 
	created_on DATETIME COMMENT '创建时间', 
	ended_on DATETIME COMMENT '结束时间', 
	ended_reason LONGTEXT COMMENT '结束原因', 
	status INTEGER COMMENT '任务状态（1001: 进行中, 1003: 已完成, 1006: 失败）', 
	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 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 NOT NULL COMMENT '任务下达时间', 
	source_remarks TEXT COMMENT '任务来源备注信息', 
	created_at DATETIME COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-21 09:21:34,081 - sqlalchemy.engine.Engine - INFO - [no key 0.00333s] {}
2025-04-21 09:21:34,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:21:34,194 - data.session - INFO - 数据库表初始化完成
2025-04-21 09:21:34,594 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 09:21:34,601 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 09:21:34,603 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 09:21:34,603 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 09:21:34,603 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 09:21:34,604 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 09:21:34,606 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 09:21:34,609 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 09:21:34,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 09:21:34,615 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 09:21:34,617 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:21:34,618 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 09:21:34,619 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 09:21:34,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:21:34,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:21:34,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:21:34,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:21:34,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:21:34,633 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 09:21:34,633 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 09:21:34,647 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:21:34,650 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:21:34,652 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:21:34,655 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:21:34,659 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:21:34,663 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:21:34,665 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:21:34,670 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:21:34,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 09:21:34,680 - sqlalchemy.engine.Engine - INFO - [generated in 0.00250s] (1, 1)
2025-04-21 09:21:34,684 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 09:21:34,685 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:21:34,687 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 09:21:34,688 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 09:21:34,690 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 09:21:34,692 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:21:34,696 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 09:21:34,699 - sqlalchemy.engine.Engine - INFO - [generated in 0.00400s] (1000, 2000, 2001)
2025-04-21 09:21:34,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:21:34,726 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:21:34,727 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 09:21:34,729 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 09:21:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 09:21:34,732 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 09:21:34,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:21:34,741 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:21:34,747 - sqlalchemy.engine.Engine - INFO - [generated in 0.00623s] (1001, datetime.datetime(2025, 4, 21, 8, 21, 34, 692715))
2025-04-21 09:21:34,753 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:22:34,655 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:22:34,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:22:34,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:22:34,657 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:22:34,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:22:34,658 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:22:34,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:22:34,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:22:34,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:22:34,661 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:22:34,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:22:34,662 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:22:34,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:22:34,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:22:34,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:22:34,664 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:22:34,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:22:34,665 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:22:34,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:22:34,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:22:34,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:22:34,669 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:22:34,669 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:22:34,670 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:22:34,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:22:34,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:22:34,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:22:34,671 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:22:34,671 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:22:34,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:22:34,751 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:22:34,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:22:34,760 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 8, 22, 34, 750429))
2025-04-21 09:22:34,765 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:23:09,956 - root - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-21 09:23:09,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:23:09,960 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 09:23:09,960 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 09:23:09,961 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:23:09,962 - root - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0060秒
2025-04-21 09:23:14,094 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 09:23:14,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:23:14,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 09:23:14,100 - sqlalchemy.engine.Engine - INFO - [cached since 4.14s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 09:23:14,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:23:14,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:23:14,107 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 09:23:14,107 - sqlalchemy.engine.Engine - INFO - [cached since 4.147s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 09:23:14,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:23:14,112 - services.task_edit_service - INFO - 启动普通任务: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-21 09:23:14,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:23:14,116 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 09:23:14,117 - sqlalchemy.engine.Engine - INFO - [generated in 0.00155s] (1, datetime.datetime(2025, 4, 21, 9, 23, 14, 116630), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-21 09:23:14,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:23:14,132 - services.task_edit_service - INFO - 更新任务定义状态为运行中: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-21 09:23:14,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:23:14,136 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 09:23:14,137 - sqlalchemy.engine.Engine - INFO - [cached since 4.177s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 09:23:14,141 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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_remarks, created_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)
2025-04-21 09:23:14,143 - sqlalchemy.engine.Engine - INFO - [generated in 0.00177s] ('6fe33cd9-0601-4d58-a954-c6f9267f89c7', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 21, 9, 23, 14, 140234), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, None, None, None, None, None, None, None, datetime.datetime(2025, 4, 21, 9, 23, 14, 141234), datetime.datetime(2025, 4, 21, 9, 23, 14, 141234), 0)
2025-04-21 09:23:14,148 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 09:23:14,151 - services.enhanced_scheduler.task_scheduler - ERROR - 运行任务失败: (pymysql.err.IntegrityError) (1048, "Column 'source_type' cannot be null")
[SQL: INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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_remarks, created_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)]
[parameters: ('6fe33cd9-0601-4d58-a954-c6f9267f89c7', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 21, 9, 23, 14, 140234), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, None, None, None, None, None, None, None, datetime.datetime(2025, 4, 21, 9, 23, 14, 141234), datetime.datetime(2025, 4, 21, 9, 23, 14, 141234), 0)]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2025-04-21 09:23:14,152 - services.task_edit_service - ERROR - 启动任务失败: 运行任务失败: (pymysql.err.IntegrityError) (1048, "Column 'source_type' cannot be null")
[SQL: INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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_remarks, created_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)]
[parameters: ('6fe33cd9-0601-4d58-a954-c6f9267f89c7', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 21, 9, 23, 14, 140234), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, None, None, None, None, None, None, None, datetime.datetime(2025, 4, 21, 9, 23, 14, 141234), datetime.datetime(2025, 4, 21, 9, 23, 14, 141234), 0)]
(Background on this error at: https://sqlalche.me/e/20/gkpj)
2025-04-21 09:23:14,153 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 500 耗时: 0.0587秒
2025-04-21 09:23:34,710 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:23:34,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:23:34,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:23:34,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:23:34,715 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:23:34,716 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:23:34,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:23:34,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:23:34,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:23:34,722 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:23:34,723 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:23:34,723 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:23:34,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:23:34,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:23:34,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:23:34,727 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:23:34,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:23:34,727 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:23:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:23:34,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:23:34,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:23:34,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:23:34,737 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:23:34,739 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:23:34,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:23:34,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:23:34,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:23:34,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:23:34,743 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:23:34,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:23:34,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:23:34,778 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:23:34,780 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 8, 23, 34, 773153))
2025-04-21 09:23:34,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:24:34,731 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:24:34,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:24:34,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:24:34,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:24:34,737 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:24:34,738 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:24:34,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:24:34,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:24:34,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:24:34,745 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:24:34,746 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:24:34,749 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:24:34,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:24:34,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:24:34,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:24:34,756 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:24:34,757 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:24:34,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:24:34,766 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:24:34,768 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:24:34,772 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 8, 24, 34, 765914))
2025-04-21 09:24:34,776 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:24:49,768 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:24:49,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:24:49,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:24:49,769 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:24:49,769 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:24:49,770 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:24:49,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:24:49,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:24:49,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:24:49,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:24:49,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:24:49,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:25:34,805 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:25:34,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:25:34,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:25:34,810 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:25:34,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:25:34,813 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:25:34,814 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:25:34,820 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:25:34,822 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 8, 25, 34, 804400))
2025-04-21 09:25:34,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:25:34,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:25:34,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:25:34,828 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:25:34,830 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:25:34,832 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:25:34,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:25:34,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:25:34,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:25:34,836 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:25:34,836 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:25:34,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:25:34,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:25:49,857 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:25:49,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:25:49,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:25:49,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:25:49,861 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:25:49,861 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:25:49,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:25:49,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:25:49,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:25:49,862 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:25:49,862 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:25:49,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:26:34,848 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:26:34,852 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:26:34,856 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 21, 8, 26, 34, 847597))
2025-04-21 09:26:34,860 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:26:34,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:26:34,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:26:34,864 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:26:34,865 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:26:34,867 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:26:34,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:26:34,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:26:34,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:26:34,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:26:34,874 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:26:34,876 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:26:34,877 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:26:34,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:26:34,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:26:34,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:26:34,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:26:34,884 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:26:34,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:26:49,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:26:49,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:26:49,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:26:49,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:26:49,918 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:26:49,919 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:26:49,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:26:49,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:26:49,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:26:49,921 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:26:49,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:26:49,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:27:34,914 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:27:34,915 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:27:34,915 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 27, 34, 914030))
2025-04-21 09:27:34,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:27:34,943 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:27:34,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:27:34,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:27:34,945 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:27:34,945 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:27:34,946 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:27:34,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:27:34,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:27:34,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:27:34,947 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:27:34,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:27:34,947 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:27:34,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:27:34,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:27:34,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:27:34,947 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:27:34,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:27:34,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:27:49,958 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:27:49,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:27:49,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:27:49,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:27:49,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:27:49,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:27:49,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:27:49,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:27:49,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:27:49,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:27:49,964 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:27:49,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:28:34,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:28:34,932 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:28:34,933 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 28, 34, 927900))
2025-04-21 09:28:34,938 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:28:34,989 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:28:34,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:28:34,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:28:34,992 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:28:34,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:28:34,995 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:28:34,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:28:34,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:28:34,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:28:34,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:28:34,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:28:34,999 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:28:34,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:28:34,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:28:34,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:28:34,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:28:34,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:28:35,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:28:50,005 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:28:50,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:28:50,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:28:50,012 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:28:50,013 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:28:50,014 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:28:50,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:28:50,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:28:50,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:28:50,016 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:28:50,016 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:28:50,017 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:29:34,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:29:34,954 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:29:34,954 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 29, 34, 952219))
2025-04-21 09:29:34,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:29:35,029 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:29:35,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:29:35,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:29:35,030 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:29:35,031 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:29:35,031 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:29:35,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:29:35,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:29:35,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:29:35,033 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:29:35,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:29:35,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:29:35,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:29:35,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:29:35,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:29:35,034 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:29:35,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:29:35,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:29:50,033 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:29:50,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:29:50,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:29:50,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:29:50,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:29:50,036 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:29:50,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:29:50,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:29:50,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:29:50,039 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:29:50,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:29:50,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:30:34,978 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:30:34,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:30:34,983 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 30, 34, 978758))
2025-04-21 09:30:34,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:30:35,041 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:30:35,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:30:35,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:30:35,044 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:30:35,044 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:30:35,045 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:30:35,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:30:35,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:30:35,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:30:35,049 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:30:35,049 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:30:35,050 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:30:35,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:30:35,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:30:35,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:30:35,052 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:30:35,053 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:30:35,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:30:50,063 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:30:50,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:30:50,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:30:50,065 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:30:50,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:30:50,068 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:30:50,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:30:50,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:30:50,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:30:50,071 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:30:50,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:30:50,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:31:35,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:31:35,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:31:35,011 - sqlalchemy.engine.Engine - INFO - [cached since 600.3s ago] (1001, datetime.datetime(2025, 4, 21, 8, 31, 35, 5349))
2025-04-21 09:31:35,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:31:35,099 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:31:35,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:31:35,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:31:35,103 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:31:35,103 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:31:35,104 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:31:35,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:31:35,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:31:35,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:31:35,106 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:31:35,107 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:31:35,107 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:31:35,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:31:35,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:31:35,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:31:35,109 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:31:35,109 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:31:35,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:31:50,132 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:31:50,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:31:50,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:31:50,133 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:31:50,134 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:31:50,134 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:31:50,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:31:50,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:31:50,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:31:50,141 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:31:50,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:31:50,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:32:35,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:32:35,030 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:32:35,030 - sqlalchemy.engine.Engine - INFO - [cached since 660.3s ago] (1001, datetime.datetime(2025, 4, 21, 8, 32, 35, 27704))
2025-04-21 09:32:35,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:32:35,150 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:32:35,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:32:35,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:32:35,152 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:32:35,152 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:32:35,153 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:32:35,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:32:35,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:32:35,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:32:35,154 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:32:35,154 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:32:35,154 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:32:35,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:32:35,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:32:35,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:32:35,155 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:32:35,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:32:35,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:32:50,157 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:32:50,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:32:50,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:32:50,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:32:50,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:32:50,160 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:32:50,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:32:50,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:32:50,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:32:50,162 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:32:50,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:32:50,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:33:35,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:33:35,030 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:33:35,032 - sqlalchemy.engine.Engine - INFO - [cached since 720.3s ago] (1001, datetime.datetime(2025, 4, 21, 8, 33, 35, 30385))
2025-04-21 09:33:35,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:33:35,183 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:33:35,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:33:35,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:33:35,184 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:33:35,185 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:33:35,185 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:33:35,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:33:35,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:33:35,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:33:35,192 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:33:35,192 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:33:35,193 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:33:35,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:33:35,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:33:35,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:33:35,195 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:33:35,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:33:35,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:33:50,227 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:33:50,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:33:50,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:33:50,235 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:33:50,235 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:33:50,235 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:33:50,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:33:50,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:33:50,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:33:50,236 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:33:50,236 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:33:50,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:34:35,055 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:34:35,056 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:34:35,057 - sqlalchemy.engine.Engine - INFO - [cached since 780.3s ago] (1001, datetime.datetime(2025, 4, 21, 8, 34, 35, 54459))
2025-04-21 09:34:35,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:34:35,287 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:34:35,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:34:35,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:34:35,288 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:34:35,289 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:34:35,289 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:34:35,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:34:35,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:34:35,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:34:35,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:34:35,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:34:35,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:34:35,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:34:35,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:34:35,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:34:35,292 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:34:35,292 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:34:35,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:34:50,311 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:34:50,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:34:50,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:34:50,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:34:50,313 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:34:50,313 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:34:50,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:34:50,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:34:50,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:34:50,314 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:34:50,314 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:34:50,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:35:35,083 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:35:35,085 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:35:35,086 - sqlalchemy.engine.Engine - INFO - [cached since 840.3s ago] (1001, datetime.datetime(2025, 4, 21, 8, 35, 35, 80827))
2025-04-21 09:35:35,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:35:35,220 - root - INFO - 应用程序关闭中...
2025-04-21 09:35:35,221 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 09:35:35,222 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 09:35:35,225 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 09:35:35,225 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 09:35:35,225 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 09:35:35,225 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 09:35:35,227 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 09:35:35,227 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 09:35:35,227 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 09:35:35,228 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 09:35:35,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:35:35,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:35:35,229 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:35:35,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:35:35,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:35:35,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 09:35:35,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:35:35,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:35:35,234 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 09:35:35,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:35:35,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:35:35,235 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 09:35:35,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:35:35,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:35:35,238 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 09:35:35,238 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 09:35:35,238 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 09:35:35,239 - root - INFO - 增强版任务调度器已停止
2025-04-21 09:35:35,239 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 09:35:35,241 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 09:35:35,241 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 09:35:35,242 - data.session - INFO - 数据库连接已关闭
2025-04-21 09:35:36,621 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 09:35:36,621 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 09:35:36,701 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 09:35:36,770 - data.session - INFO - 正在初始化数据库...
2025-04-21 09:35:36,833 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 09:35:36,836 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:35:36,836 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,837 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:35:36,837 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,839 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:35:36,839 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:35:36,840 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 09:35:36,840 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,842 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 09:35:36,842 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,848 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 09:35:36,848 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,849 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 09:35:36,849 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,851 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 09:35:36,851 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,852 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 09:35:36,852 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,858 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 09:35:36,858 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,860 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 09:35:36,861 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,864 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 09:35:36,864 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,865 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 09:35:36,865 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,870 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 09:35:36,870 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:35:36,872 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:35:36,872 - data.session - INFO - 数据库表初始化完成
2025-04-21 09:35:37,355 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 09:35:37,355 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 09:35:37,355 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 09:35:37,356 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 09:35:37,356 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 09:35:37,356 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 09:35:37,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 09:35:37,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 09:35:37,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 09:35:37,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 09:35:37,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:35:37,357 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 09:35:37,358 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 09:35:37,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:35:37,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:35:37,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:35:37,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:35:37,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:35:37,362 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 09:35:37,362 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 09:35:37,364 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:35:37,365 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:35:37,365 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:35:37,367 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:35:37,367 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:35:37,368 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:35:37,368 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:35:37,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:35:37,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 09:35:37,388 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] (1, 1)
2025-04-21 09:35:37,390 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 09:35:37,390 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:35:37,391 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 09:35:37,392 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 09:35:37,392 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 09:35:37,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:35:37,397 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 09:35:37,398 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1000, 2000, 2001)
2025-04-21 09:35:37,399 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:35:37,401 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 09:35:37,401 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 09:35:37,402 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 09:35:37,402 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 09:35:37,403 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:35:37,403 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:35:37,404 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:35:37,405 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (1001, datetime.datetime(2025, 4, 21, 8, 35, 37, 394357))
2025-04-21 09:35:37,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:36:37,409 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:36:37,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:36:37,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:36:37,411 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:36:37,412 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:36:37,412 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:36:37,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:36:37,412 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:36:37,413 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 8, 36, 37, 409770))
2025-04-21 09:36:37,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:36:37,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:36:37,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:36:37,414 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:36:37,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:36:37,414 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:36:37,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:36:37,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:36:37,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:36:37,415 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:36:37,415 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:36:37,415 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:36:37,415 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:36:37,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:36:37,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:36:37,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:36:37,416 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:36:37,416 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:36:37,418 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:36:37,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:36:37,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:36:37,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:36:37,419 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:36:37,419 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:36:37,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:36:37,630 - root - INFO - 应用程序关闭中...
2025-04-21 09:36:37,631 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 09:36:37,631 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 09:36:37,632 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 09:36:37,632 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 09:36:37,632 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 09:36:37,633 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 09:36:37,633 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 09:36:37,633 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 09:36:37,633 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 09:36:37,633 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 09:36:37,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:36:37,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:36:37,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:36:37,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:36:37,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:36:37,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 09:36:37,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:36:37,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:36:37,636 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 09:36:37,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:36:37,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:36:37,636 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 09:36:37,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:36:37,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:36:37,637 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 09:36:37,637 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 09:36:37,637 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 09:36:37,637 - root - INFO - 增强版任务调度器已停止
2025-04-21 09:36:37,637 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 09:36:37,638 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 09:36:37,638 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 09:36:37,638 - data.session - INFO - 数据库连接已关闭
2025-04-21 09:36:38,935 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 09:36:38,935 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 09:36:39,016 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 09:36:39,077 - data.session - INFO - 正在初始化数据库...
2025-04-21 09:36:39,102 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 09:36:39,129 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:36:39,130 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,131 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:36:39,133 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,134 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:36:39,135 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:36:39,135 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 09:36:39,136 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,138 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 09:36:39,138 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,140 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 09:36:39,140 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,141 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 09:36:39,141 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,143 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 09:36:39,144 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,145 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 09:36:39,145 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,148 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 09:36:39,150 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,154 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 09:36:39,154 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,156 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 09:36:39,156 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,157 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 09:36:39,157 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,158 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 09:36:39,159 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:36:39,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:36:39,162 - data.session - INFO - 数据库表初始化完成
2025-04-21 09:36:39,645 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 09:36:39,646 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 09:36:39,646 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 09:36:39,646 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 09:36:39,646 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 09:36:39,646 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 09:36:39,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 09:36:39,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 09:36:39,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 09:36:39,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 09:36:39,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:36:39,647 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 09:36:39,648 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 09:36:39,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:36:39,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:36:39,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:36:39,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:36:39,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:36:39,650 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 09:36:39,651 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 09:36:39,651 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:36:39,653 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:36:39,653 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:36:39,654 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:36:39,656 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:36:39,662 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:36:39,662 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:36:39,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:36:39,681 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 09:36:39,682 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1, 1)
2025-04-21 09:36:39,683 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 09:36:39,683 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:36:39,684 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 09:36:39,684 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 09:36:39,685 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 09:36:39,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:36:39,688 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 09:36:39,688 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] (1000, 2000, 2001)
2025-04-21 09:36:39,690 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:36:39,690 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:36:39,691 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 09:36:39,691 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 09:36:39,691 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 09:36:39,691 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 09:36:39,692 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:36:39,693 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:36:39,693 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1001, datetime.datetime(2025, 4, 21, 8, 36, 39, 685269))
2025-04-21 09:36:39,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:37:39,692 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:37:39,695 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:37:39,696 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 21, 8, 37, 39, 690808))
2025-04-21 09:37:39,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:37:39,858 - root - INFO - 应用程序关闭中...
2025-04-21 09:37:39,858 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 09:37:39,858 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 09:37:39,860 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 09:37:39,863 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 09:37:39,863 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 09:37:39,863 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 09:37:39,864 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 09:37:39,864 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 09:37:39,864 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 09:37:39,864 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 09:37:39,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:37:39,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:37:39,865 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:37:39,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:37:39,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:37:39,866 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 09:37:39,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:37:39,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:37:39,867 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 09:37:39,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:37:39,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:37:39,868 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 09:37:39,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:37:39,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:37:39,868 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 09:37:39,870 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 09:37:39,870 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 09:37:39,870 - root - INFO - 增强版任务调度器已停止
2025-04-21 09:37:39,870 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 09:37:39,870 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 09:37:39,871 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 09:37:39,872 - data.session - INFO - 数据库连接已关闭
2025-04-21 09:37:41,221 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 09:37:41,224 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 09:37:41,303 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 09:37:41,368 - data.session - INFO - 正在初始化数据库...
2025-04-21 09:37:41,400 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 09:37:41,424 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:37:41,425 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,426 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:37:41,426 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,427 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:37:41,427 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:37:41,429 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 09:37:41,429 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,431 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 09:37:41,431 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,433 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 09:37:41,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,442 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 09:37:41,443 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 09:37:41,446 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,447 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 09:37:41,447 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,448 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 09:37:41,449 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,450 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 09:37:41,450 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,455 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 09:37:41,458 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,462 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 09:37:41,463 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,465 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 09:37:41,465 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:37:41,471 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:37:41,473 - data.session - INFO - 数据库表初始化完成
2025-04-21 09:37:41,945 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 09:37:41,945 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 09:37:41,946 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 09:37:41,946 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 09:37:41,947 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 09:37:41,947 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 09:37:41,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 09:37:41,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 09:37:41,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 09:37:41,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 09:37:41,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:37:41,950 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 09:37:41,950 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 09:37:41,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:37:41,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:37:41,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:37:41,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:37:41,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:37:41,955 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 09:37:41,958 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 09:37:41,963 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:37:41,965 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:37:41,966 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:37:41,967 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:37:41,967 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:37:41,968 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:37:41,973 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:37:41,974 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:37:41,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 09:37:41,987 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (1, 1)
2025-04-21 09:37:41,987 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 09:37:41,989 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:37:41,989 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 09:37:41,990 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 09:37:41,990 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 09:37:41,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:37:41,993 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 09:37:41,993 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1000, 2000, 2001)
2025-04-21 09:37:41,994 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:37:41,995 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 09:37:42,001 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 09:37:42,001 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 09:37:42,001 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 09:37:42,003 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:37:42,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:37:42,004 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:37:42,006 - sqlalchemy.engine.Engine - INFO - [generated in 0.00099s] (1001, datetime.datetime(2025, 4, 21, 8, 37, 41, 990316))
2025-04-21 09:37:42,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:38:41,965 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:38:41,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:38:41,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:38:41,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:38:41,967 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:38:41,967 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:38:41,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:38:41,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:38:41,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:38:41,968 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:38:41,968 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:38:41,969 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:38:41,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:38:41,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:38:41,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:38:41,970 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:38:41,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:38:41,970 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:38:41,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:38:41,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:38:41,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:38:41,970 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:38:41,971 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:38:41,971 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:38:41,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:38:41,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:38:41,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:38:41,972 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:38:41,972 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:38:41,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:38:41,981 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:38:41,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:38:41,982 - sqlalchemy.engine.Engine - INFO - [cached since 59.98s ago] (1001, datetime.datetime(2025, 4, 21, 8, 38, 41, 980581))
2025-04-21 09:38:41,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:39:41,984 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:39:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:39:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:39:41,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:39:41,990 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:39:41,990 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:39:41,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:39:41,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:39:41,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:39:41,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:39:42,000 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:39:42,002 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 8, 39, 41, 988021))
2025-04-21 09:39:42,004 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:39:42,006 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:39:42,006 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:39:42,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:39:42,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:39:42,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:39:42,009 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:39:42,009 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:39:42,010 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:39:42,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:39:42,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:39:42,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:39:42,020 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:39:42,020 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:39:42,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:39:42,020 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:39:42,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:39:42,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:39:42,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:39:42,024 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:39:42,024 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:39:42,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:40:42,036 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:40:42,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:40:42,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:40:42,039 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:40:42,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:40:42,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:40:42,041 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:40:42,042 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:40:42,042 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 8, 40, 42, 35908))
2025-04-21 09:40:42,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:40:42,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:40:42,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:40:42,044 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:40:42,045 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:40:42,045 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:40:42,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:40:42,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:40:42,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:40:42,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:40:42,046 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:40:42,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:40:42,047 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:40:42,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:40:42,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:40:42,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:40:42,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:40:42,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:40:42,049 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:40:42,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:40:42,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:40:42,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:40:42,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:40:42,054 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:40:42,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:40:42,161 - root - INFO - 应用程序关闭中...
2025-04-21 09:40:42,161 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 09:40:42,161 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 09:40:42,161 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 09:40:42,162 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 09:40:42,162 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 09:40:42,163 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 09:40:42,163 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 09:40:42,163 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 09:40:42,164 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 09:40:42,164 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 09:40:42,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:40:42,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:40:42,166 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:40:42,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:40:42,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:40:42,169 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 09:40:42,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:40:42,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:40:42,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 09:40:42,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:40:42,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:40:42,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 09:40:42,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:40:42,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:40:42,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 09:40:42,174 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 09:40:42,175 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 09:40:42,175 - root - INFO - 增强版任务调度器已停止
2025-04-21 09:40:42,176 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 09:40:42,177 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 09:40:42,177 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 09:40:42,178 - data.session - INFO - 数据库连接已关闭
2025-04-21 09:40:43,551 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 09:40:43,552 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 09:40:43,627 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 09:40:43,692 - data.session - INFO - 正在初始化数据库...
2025-04-21 09:40:43,951 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 09:40:43,969 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:40:43,970 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,971 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:40:43,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,972 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:40:43,972 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,974 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:40:43,974 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 09:40:43,975 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,977 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 09:40:43,978 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,981 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 09:40:43,982 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,983 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 09:40:43,984 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,987 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 09:40:43,987 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,987 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 09:40:43,988 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,991 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 09:40:43,992 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,995 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 09:40:43,996 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:43,999 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 09:40:44,000 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:44,003 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 09:40:44,004 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:44,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 09:40:44,008 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 09:40:44,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:40:44,013 - data.session - INFO - 数据库表初始化完成
2025-04-21 09:40:44,479 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 09:40:44,480 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 09:40:44,480 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 09:40:44,481 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 09:40:44,481 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 09:40:44,481 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 09:40:44,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 09:40:44,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 09:40:44,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 09:40:44,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 09:40:44,483 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:40:44,483 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 09:40:44,483 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 09:40:44,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:40:44,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:40:44,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:40:44,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:40:44,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:40:44,487 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 09:40:44,487 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 09:40:44,488 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:40:44,488 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 09:40:44,489 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:40:44,490 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 09:40:44,490 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:40:44,490 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 09:40:44,491 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 09:40:44,492 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:40:44,504 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 09:40:44,505 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1, 1)
2025-04-21 09:40:44,506 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 09:40:44,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:40:44,507 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 09:40:44,508 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 09:40:44,508 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 09:40:44,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:40:44,511 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 09:40:44,511 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1000, 2000, 2001)
2025-04-21 09:40:44,534 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:40:44,536 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 09:40:44,537 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 09:40:44,538 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 09:40:44,538 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 09:40:44,538 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 09:40:44,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:40:44,542 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:40:44,542 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] (1001, datetime.datetime(2025, 4, 21, 8, 40, 44, 508815))
2025-04-21 09:40:44,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:41:44,508 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:41:44,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:41:44,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:41:44,509 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:41:44,509 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:41:44,510 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:41:44,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:41:44,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:41:44,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:41:44,513 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:41:44,514 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:41:44,514 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:41:44,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:41:44,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:41:44,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:41:44,514 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:41:44,514 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:41:44,514 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:41:44,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:41:44,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:41:44,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:41:44,515 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:41:44,515 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:41:44,515 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:41:44,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:41:44,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:41:44,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:41:44,515 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:41:44,515 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:41:44,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:41:44,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:41:44,573 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:41:44,574 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (1001, datetime.datetime(2025, 4, 21, 8, 41, 44, 572014))
2025-04-21 09:41:44,578 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:42:44,520 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:42:44,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:42:44,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:42:44,522 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:42:44,523 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:42:44,523 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:42:44,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:42:44,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:42:44,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:42:44,526 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:42:44,526 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:42:44,526 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:42:44,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:42:44,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:42:44,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:42:44,528 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:42:44,529 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:42:44,529 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:42:44,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:42:44,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:42:44,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:42:44,532 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:42:44,532 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:42:44,533 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:42:44,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:42:44,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:42:44,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:42:44,535 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:42:44,536 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:42:44,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:42:44,583 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:42:44,583 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:42:44,585 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 8, 42, 44, 581907))
2025-04-21 09:42:44,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:43:44,596 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:43:44,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:43:44,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:43:44,600 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:43:44,600 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:43:44,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:43:44,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:43:44,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:43:44,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:43:44,602 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:43:44,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:43:44,604 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 21, 8, 43, 44, 598056))
2025-04-21 09:43:44,604 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:43:44,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:43:44,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:43:44,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:43:44,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:43:44,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:43:44,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:43:44,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:43:44,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:43:44,606 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:43:44,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:43:44,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:43:44,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:43:44,607 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:43:44,607 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:43:44,607 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:43:44,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:43:44,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:43:44,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:43:44,607 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:43:44,607 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:43:44,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:44:44,621 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:44:44,623 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:44:44,623 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 8, 44, 44, 620036))
2025-04-21 09:44:44,625 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:44:44,651 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:44:44,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:44:44,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:44:44,651 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:44:44,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:44:44,652 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:44:44,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:44:44,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:44:44,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:44:44,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:44:44,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:44:44,652 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:44:44,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:44:44,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:44:44,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:44:44,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:44:44,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:44:44,652 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:44:44,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:44:44,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:44:44,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:44:44,654 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:44:44,655 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:44:44,655 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:44:44,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:44:44,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:44:44,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:44:44,656 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:44:44,656 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:44:44,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:45:44,647 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:45:44,647 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:45:44,648 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 21, 8, 45, 44, 646194))
2025-04-21 09:45:44,649 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:45:44,706 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:45:44,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:45:44,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:45:44,708 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:45:44,708 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:45:44,708 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:45:44,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:45:44,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:45:44,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:45:44,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:45:44,710 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:45:44,710 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:45:44,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:45:44,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:45:44,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:45:44,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:45:44,710 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:45:44,710 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:45:44,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:45:44,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:45:44,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:45:44,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:45:44,711 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:45:44,711 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:45:44,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:45:44,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:45:44,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:45:44,711 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:45:44,711 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:45:44,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:46:44,645 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:46:44,647 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:46:44,647 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 21, 8, 46, 44, 644481))
2025-04-21 09:46:44,650 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:46:44,752 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:46:44,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:46:44,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:46:44,757 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:46:44,757 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:46:44,758 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:46:44,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:46:44,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:46:44,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:46:44,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:46:44,759 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:46:44,759 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:46:44,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:46:44,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:46:44,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:46:44,760 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:46:44,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:46:44,760 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:46:44,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:46:44,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:46:44,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:46:44,761 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:46:44,761 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:46:44,761 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:46:44,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:46:44,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:46:44,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:46:44,762 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:46:44,762 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:46:44,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:47:44,681 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:47:44,683 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:47:44,684 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (1001, datetime.datetime(2025, 4, 21, 8, 47, 44, 680049))
2025-04-21 09:47:44,686 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:47:44,787 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:47:44,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:47:44,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:47:44,788 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:47:44,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:47:44,789 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:47:44,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:47:44,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:47:44,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:47:44,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:47:44,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:47:44,789 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:47:44,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:47:44,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:47:44,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:47:44,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:47:44,791 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:47:44,791 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:47:44,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:47:44,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:47:44,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:47:44,791 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:47:44,792 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:47:44,792 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:47:44,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:47:44,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:47:44,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:47:44,792 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:47:44,792 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:47:44,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:48:44,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:48:44,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:48:44,701 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 48, 44, 699305))
2025-04-21 09:48:44,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:48:44,823 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:48:44,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:48:44,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:48:44,826 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:48:44,826 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:48:44,826 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:48:44,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:48:44,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:48:44,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:48:44,827 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:48:44,827 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:48:44,827 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:48:44,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:48:44,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:48:44,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:48:44,828 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:48:44,829 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:48:44,829 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:48:44,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:48:44,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:48:44,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:48:44,830 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:48:44,830 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:48:44,830 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:48:44,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:48:44,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:48:44,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:48:44,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:48:44,832 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:48:44,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:49:44,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:49:44,711 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:49:44,712 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 49, 44, 709254))
2025-04-21 09:49:44,716 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:49:44,911 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:49:44,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:49:44,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:49:44,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:49:44,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:49:44,916 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:49:44,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:49:44,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:49:44,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:49:44,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:49:44,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:49:44,917 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:49:44,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:49:44,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:49:44,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:49:44,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:49:44,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:49:44,919 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:49:44,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:49:44,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:49:44,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:49:44,919 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:49:44,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:49:44,919 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:49:44,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:49:44,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:49:44,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:49:44,920 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:49:44,920 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:49:44,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:52:35,547 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:52:35,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:52:35,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:52:35,548 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:52:35,548 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:52:35,548 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:52:35,548 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:52:35,548 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:52:35,548 - sqlalchemy.engine.Engine - INFO - [cached since 711.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 52, 35, 547309))
2025-04-21 09:52:35,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:52:35,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:52:35,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:52:35,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:52:35,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:52:35,549 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:52:35,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:52:35,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:52:35,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:52:35,550 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:52:35,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:52:35,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:52:35,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:52:35,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:52:35,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:52:35,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:52:35,551 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:52:35,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:52:35,551 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:52:35,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:52:35,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:52:35,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:52:35,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:52:35,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:52:35,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:53:35,577 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:53:35,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:53:35,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:53:35,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:53:35,579 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:53:35,579 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:53:35,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:53:35,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:53:35,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:53:35,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:53:35,581 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:53:35,582 - sqlalchemy.engine.Engine - INFO - [cached since 771.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 53, 35, 577328))
2025-04-21 09:53:35,582 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:53:35,583 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:53:35,583 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:53:35,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:53:35,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:53:35,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:53:35,585 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:53:35,585 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:53:35,585 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:53:35,586 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:53:35,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:53:35,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:53:35,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:53:35,587 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:53:35,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:53:35,588 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:53:35,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:53:35,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:53:35,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:53:35,589 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:53:35,590 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:53:35,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:54:35,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:54:35,611 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:54:35,611 - sqlalchemy.engine.Engine - INFO - [cached since 831.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 54, 35, 609396))
2025-04-21 09:54:35,613 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:54:35,657 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:54:35,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:54:35,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:54:35,658 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:54:35,659 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:54:35,659 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:54:35,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:54:35,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:54:35,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:54:35,661 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:54:35,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:54:35,662 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:54:35,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:54:35,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:54:35,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:54:35,663 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:54:35,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:54:35,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:54:35,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:54:35,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:54:35,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:54:35,666 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:54:35,667 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:54:35,668 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:54:35,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:54:35,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:54:35,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:54:35,670 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:54:35,671 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:54:35,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:55:35,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:55:35,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:55:35,612 - sqlalchemy.engine.Engine - INFO - [cached since 891.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 55, 35, 609558))
2025-04-21 09:55:35,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:55:35,684 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:55:35,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:55:35,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:55:35,685 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:55:35,686 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:55:35,687 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:55:35,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:55:35,689 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:55:35,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:55:35,690 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:55:35,690 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:55:35,690 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:55:35,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:55:35,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:55:35,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:55:35,691 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:55:35,691 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:55:35,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:55:35,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:55:35,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:55:35,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:55:35,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:55:35,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:55:35,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:55:35,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:55:35,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:55:35,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:55:35,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:55:35,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:55:35,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:56:35,620 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:56:35,622 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:56:35,622 - sqlalchemy.engine.Engine - INFO - [cached since 951.2s ago] (1001, datetime.datetime(2025, 4, 21, 8, 56, 35, 619198))
2025-04-21 09:56:35,624 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:56:35,760 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:56:35,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:56:35,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:56:35,761 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:56:35,762 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:56:35,762 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:56:35,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:56:35,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:56:35,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:56:35,764 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:56:35,765 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:56:35,765 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:56:35,765 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:56:35,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:56:35,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:56:35,767 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:56:35,767 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:56:35,767 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:56:35,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:56:35,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:56:35,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:56:35,769 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:56:35,769 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:56:35,769 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:56:35,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:56:35,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:56:35,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:56:35,770 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:56:35,771 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:56:35,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:57:35,638 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:57:35,638 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:57:35,639 - sqlalchemy.engine.Engine - INFO - [cached since 1011s ago] (1001, datetime.datetime(2025, 4, 21, 8, 57, 35, 637730))
2025-04-21 09:57:35,641 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:57:35,793 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:57:35,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:57:35,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:57:35,793 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:57:35,793 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:57:35,794 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:57:35,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:57:35,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:57:35,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:57:35,794 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:57:35,794 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:57:35,794 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:57:35,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:57:35,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:57:35,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:57:35,795 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:57:35,795 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:57:35,795 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:57:35,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:57:35,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:57:35,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:57:35,795 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:57:35,795 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:57:35,795 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:57:35,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:57:35,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:57:35,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:57:35,796 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:57:35,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:57:35,801 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:58:35,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:58:35,653 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:58:35,658 - sqlalchemy.engine.Engine - INFO - [cached since 1071s ago] (1001, datetime.datetime(2025, 4, 21, 8, 58, 35, 652221))
2025-04-21 09:58:35,663 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:58:35,822 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:58:35,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:58:35,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:58:35,822 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:58:35,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:58:35,824 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:58:35,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:58:35,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:58:35,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:58:35,824 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:58:35,824 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:58:35,825 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:58:35,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:58:35,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:58:35,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:58:35,826 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:58:35,826 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:58:35,826 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:58:35,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:58:35,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:58:35,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:58:35,827 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:58:35,827 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:58:35,827 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:58:35,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:58:35,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:58:35,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:58:35,827 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:58:35,827 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:58:35,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 09:59:35,668 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 09:59:35,668 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 09:59:35,668 - sqlalchemy.engine.Engine - INFO - [cached since 1131s ago] (1001, datetime.datetime(2025, 4, 21, 8, 59, 35, 668041))
2025-04-21 09:59:35,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 09:59:35,884 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 09:59:35,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 09:59:35,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 09:59:35,885 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 09:59:35,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 09:59:35,886 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 09:59:35,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 09:59:35,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 09:59:35,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 09:59:35,886 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 09:59:35,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 09:59:35,886 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 09:59:35,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 09:59:35,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 09:59:35,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 09:59:35,886 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 09:59:35,887 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 09:59:35,887 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 09:59:35,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 09:59:35,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 09:59:35,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 09:59:35,887 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 09:59:35,888 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 09:59:35,888 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 09:59:35,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 09:59:35,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 09:59:35,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 09:59:35,888 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 09:59:35,889 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 09:59:35,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:00:35,674 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:00:35,675 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:00:35,676 - sqlalchemy.engine.Engine - INFO - [cached since 1191s ago] (1001, datetime.datetime(2025, 4, 21, 9, 0, 35, 673974))
2025-04-21 10:00:35,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:00:35,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:00:35,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:00:35,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:00:35,941 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:00:35,941 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:00:35,941 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:00:35,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:00:35,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:00:35,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:00:35,942 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:00:35,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:00:35,942 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:00:35,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:00:35,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:00:35,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:00:35,944 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:00:35,944 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:00:35,944 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:00:35,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:00:35,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:00:35,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:00:35,945 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:00:35,945 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:00:35,945 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:00:35,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:00:35,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:00:35,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:00:35,945 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:00:35,945 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:00:35,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:01:35,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:01:35,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:01:35,698 - sqlalchemy.engine.Engine - INFO - [cached since 1251s ago] (1001, datetime.datetime(2025, 4, 21, 9, 1, 35, 696108))
2025-04-21 10:01:35,699 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:01:35,973 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:01:35,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:01:35,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:01:35,974 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:01:35,974 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:01:35,974 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:01:35,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:01:35,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:01:35,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:01:35,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:01:35,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:01:35,977 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:01:35,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:01:35,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:01:35,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:01:35,979 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:01:35,979 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:01:35,980 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:01:35,980 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:01:35,980 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:01:35,980 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:01:35,981 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:01:35,981 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:01:35,981 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:01:35,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:01:35,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:01:35,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:01:35,981 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:01:35,982 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:01:35,986 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:02:35,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:02:35,702 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:02:35,703 - sqlalchemy.engine.Engine - INFO - [cached since 1311s ago] (1001, datetime.datetime(2025, 4, 21, 9, 2, 35, 700491))
2025-04-21 10:02:35,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:02:35,996 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:02:35,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:02:35,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:02:35,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:02:35,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:02:36,000 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:02:36,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:02:36,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:02:36,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:02:36,004 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:02:36,004 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:02:36,004 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:02:36,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:02:36,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:02:36,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:02:36,007 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:02:36,008 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:02:36,008 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:02:36,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:02:36,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:02:36,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:02:36,010 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:02:36,010 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:02:36,011 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:02:36,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:02:36,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:02:36,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:02:36,013 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:02:36,013 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:02:36,018 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:03:35,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:03:35,715 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:03:35,719 - sqlalchemy.engine.Engine - INFO - [cached since 1371s ago] (1001, datetime.datetime(2025, 4, 21, 9, 3, 35, 710883))
2025-04-21 10:03:35,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:03:36,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:03:36,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:03:36,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:03:36,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:03:36,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:03:36,035 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:03:36,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:03:36,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:03:36,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:03:36,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:03:36,037 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:03:36,037 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:03:36,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:03:36,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:03:36,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:03:36,038 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:03:36,038 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:03:36,038 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:03:36,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:03:36,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:03:36,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:03:36,038 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:03:36,038 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:03:36,038 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:03:36,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:03:36,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:03:36,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:03:36,038 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:03:36,038 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:03:36,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:04:35,716 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:04:35,719 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:04:35,719 - sqlalchemy.engine.Engine - INFO - [cached since 1431s ago] (1001, datetime.datetime(2025, 4, 21, 9, 4, 35, 716817))
2025-04-21 10:04:35,720 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:04:36,080 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:04:36,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:04:36,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:04:36,085 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:04:36,087 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:04:36,089 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:04:36,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:04:36,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:04:36,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:04:36,094 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:04:36,095 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:04:36,098 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:04:36,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:04:36,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:04:36,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:04:36,105 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:04:36,105 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:04:36,105 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:04:36,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:04:36,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:04:36,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:04:36,106 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:04:36,107 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:04:36,108 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:04:36,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:04:36,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:04:36,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:04:36,110 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:04:36,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:04:36,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:05:35,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:05:35,728 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:05:35,733 - sqlalchemy.engine.Engine - INFO - [cached since 1491s ago] (1001, datetime.datetime(2025, 4, 21, 9, 5, 35, 723622))
2025-04-21 10:05:35,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:05:36,135 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:05:36,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:05:36,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:05:36,137 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:05:36,137 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:05:36,137 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:05:36,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:05:36,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:05:36,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:05:36,138 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:05:36,138 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:05:36,138 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:05:36,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:05:36,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:05:36,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:05:36,138 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:05:36,138 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:05:36,138 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:05:36,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:05:36,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:05:36,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:05:36,139 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:05:36,139 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:05:36,139 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:05:36,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:05:36,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:05:36,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:05:36,139 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:05:36,139 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:05:36,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:06:35,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:06:35,751 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:06:35,752 - sqlalchemy.engine.Engine - INFO - [cached since 1551s ago] (1001, datetime.datetime(2025, 4, 21, 9, 6, 35, 748515))
2025-04-21 10:06:35,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:06:35,888 - root - INFO - 应用程序关闭中...
2025-04-21 10:06:35,889 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:06:35,890 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:06:35,890 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:06:35,890 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:06:35,890 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:06:35,891 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:06:35,891 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:06:35,891 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:06:35,892 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:06:35,892 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:06:35,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:06:35,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:06:35,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:06:35,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:06:35,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:06:35,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:06:35,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:06:35,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:06:35,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:06:35,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:06:35,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:06:35,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:06:35,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:06:35,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:06:35,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:06:35,894 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:06:35,895 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:06:35,895 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:06:35,895 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:06:35,895 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:06:35,895 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:06:35,895 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:06:37,141 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:06:37,141 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:06:37,196 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:06:37,243 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:06:37,273 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:06:37,293 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:06:37,293 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,294 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:06:37,294 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,294 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:06:37,295 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:06:37,295 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:06:37,297 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,298 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:06:37,298 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,300 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:06:37,300 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,300 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:06:37,301 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,302 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:06:37,302 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,303 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:06:37,304 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,304 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:06:37,305 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,305 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:06:37,305 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,306 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:06:37,306 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,307 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:06:37,307 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,308 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:06:37,309 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:06:37,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:06:37,310 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:06:37,652 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:06:37,652 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:06:37,652 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:06:37,653 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:06:37,653 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:06:37,653 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:06:37,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:06:37,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:06:37,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:06:37,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:06:37,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:06:37,654 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:06:37,654 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:06:37,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:06:37,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:06:37,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:06:37,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:06:37,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:06:37,656 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:06:37,656 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:06:37,657 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:06:37,658 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:06:37,658 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:06:37,658 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:06:37,658 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:06:37,659 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:06:37,659 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:06:37,659 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:06:37,668 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:06:37,668 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1, 1)
2025-04-21 10:06:37,670 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:06:37,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:06:37,671 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:06:37,671 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:06:37,671 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:06:37,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:06:37,673 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 10:06:37,674 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1000, 2000, 2001)
2025-04-21 10:06:37,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:06:37,675 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:06:37,675 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:06:37,675 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:06:37,676 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:06:37,676 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:06:37,676 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:06:37,677 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:06:37,677 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (1001, datetime.datetime(2025, 4, 21, 9, 6, 37, 672141))
2025-04-21 10:06:37,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:07:37,683 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:07:37,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:07:37,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:07:37,684 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:07:37,684 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:07:37,684 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:07:37,684 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:07:37,685 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:07:37,685 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 9, 7, 37, 683702))
2025-04-21 10:07:37,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:07:37,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:07:37,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:07:37,685 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:07:37,686 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:07:37,686 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:07:37,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:07:37,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:07:37,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:07:37,687 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:07:37,687 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:07:37,687 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:07:37,687 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:07:37,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:07:37,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:07:37,689 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:07:37,689 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:07:37,689 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:07:37,689 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:07:37,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:07:37,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:07:37,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:07:37,691 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:07:37,691 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:07:37,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:08:37,692 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:08:37,695 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:08:37,696 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 9, 8, 37, 691193))
2025-04-21 10:08:37,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:08:37,738 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:08:37,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:08:37,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:08:37,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:08:37,744 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:08:37,745 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:08:37,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:08:37,749 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:08:37,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:08:37,753 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:08:37,754 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:08:37,755 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:08:37,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:08:37,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:08:37,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:08:37,762 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:08:37,764 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:08:37,766 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:08:37,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:08:37,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:08:37,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:08:37,772 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:08:37,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:08:37,775 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:08:37,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:08:37,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:08:37,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:08:37,780 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:08:37,783 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:08:37,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:09:37,703 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:09:37,704 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:09:37,708 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 9, 9, 37, 702739))
2025-04-21 10:09:37,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:09:37,813 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:09:37,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:09:37,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:09:37,813 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:09:37,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:09:37,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:09:37,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:09:37,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:09:37,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:09:37,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:09:37,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:09:37,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:09:37,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:09:37,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:09:37,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:09:37,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:09:37,815 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:09:37,815 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:09:37,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:09:37,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:09:37,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:09:37,815 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:09:37,816 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:09:37,816 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:09:37,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:09:37,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:09:37,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:09:37,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:09:37,818 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:09:37,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:10:37,715 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:10:37,716 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:10:37,716 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (1001, datetime.datetime(2025, 4, 21, 9, 10, 37, 714163))
2025-04-21 10:10:37,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:10:37,821 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:10:37,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:10:37,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:10:37,824 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:10:37,824 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:10:37,824 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:10:37,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:10:37,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:10:37,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:10:37,826 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:10:37,827 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:10:37,827 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:10:37,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:10:37,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:10:37,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:10:37,829 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:10:37,830 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:10:37,830 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:10:37,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:10:37,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:10:37,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:10:37,832 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:10:37,832 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:10:37,833 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:10:37,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:10:37,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:10:37,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:10:37,834 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:10:37,834 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:10:37,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:10:37,930 - root - INFO - 应用程序关闭中...
2025-04-21 10:10:37,931 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:10:37,931 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:10:37,931 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:10:37,932 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:10:37,932 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:10:37,932 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:10:37,932 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:10:37,933 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:10:37,933 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:10:37,933 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:10:37,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:10:37,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:10:37,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:10:37,934 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:10:37,935 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:10:37,935 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:10:37,935 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:10:37,935 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:10:37,935 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:10:37,935 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:10:37,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:10:37,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:10:37,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:10:37,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:10:37,936 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:10:37,936 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:10:37,936 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:10:37,936 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:10:37,937 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:10:37,937 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:10:37,937 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:10:39,153 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:10:39,153 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:10:39,211 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:10:39,262 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:10:39,274 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:10:39,277 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:10:39,278 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,278 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:10:39,280 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,280 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:10:39,280 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:10:39,283 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:10:39,283 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,285 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:10:39,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,288 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:10:39,289 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,290 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:10:39,290 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,291 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:10:39,291 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,292 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:10:39,292 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,294 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:10:39,294 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,296 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:10:39,296 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,297 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:10:39,297 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,299 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:10:39,299 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,300 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:10:39,300 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:10:39,301 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:10:39,302 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:10:39,659 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:10:39,660 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:10:39,660 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:10:39,660 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:10:39,660 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:10:39,660 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:10:39,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:10:39,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:10:39,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:10:39,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:10:39,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:10:39,662 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:10:39,662 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:10:39,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:10:39,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:10:39,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:10:39,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:10:39,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:10:39,665 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:10:39,665 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:10:39,666 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:10:39,667 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:10:39,667 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:10:39,667 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:10:39,668 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:10:39,668 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:10:39,668 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:10:39,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:10:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:10:39,678 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1, 1)
2025-04-21 10:10:39,679 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:10:39,681 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:10:39,682 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:10:39,684 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:10:39,686 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:10:39,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:10:39,688 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 10:10:39,689 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (1000, 2000, 2001)
2025-04-21 10:10:39,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:10:39,697 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:10:39,699 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:10:39,699 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:10:39,701 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:10:39,703 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:10:39,704 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:10:39,705 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:10:39,705 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (1001, datetime.datetime(2025, 4, 21, 9, 10, 39, 686832))
2025-04-21 10:10:39,706 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:22,813 - root - INFO - 应用程序关闭中...
2025-04-21 10:11:22,814 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:11:22,814 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:11:22,814 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:11:22,814 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:11:22,815 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:11:22,815 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:11:22,815 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:11:22,815 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:11:22,816 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:11:22,816 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:11:22,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:11:22,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:11:22,817 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:11:22,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:11:22,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:11:22,817 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:11:22,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:11:22,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:11:22,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:11:22,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:11:22,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:11:22,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:11:22,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:11:22,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:11:22,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:11:22,818 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:11:22,818 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:11:22,818 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:11:22,818 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:11:22,819 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:11:22,819 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:11:22,819 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:11:23,972 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:11:23,972 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:11:24,036 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:11:24,081 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:11:24,101 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:11:24,103 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:11:24,103 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,105 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:11:24,105 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,106 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:11:24,106 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:24,107 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:11:24,107 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,109 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:11:24,109 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,112 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:11:24,113 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,115 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:11:24,116 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,117 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:11:24,117 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,117 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:11:24,118 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,118 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:11:24,119 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,120 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:11:24,120 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,121 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:11:24,121 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,122 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:11:24,122 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,123 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:11:24,123 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:11:24,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:24,127 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:11:24,480 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:11:24,481 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:11:24,481 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:11:24,481 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:11:24,481 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:11:24,481 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:11:24,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:11:24,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:11:24,484 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:11:24,484 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:11:24,484 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:11:24,484 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:11:24,484 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:11:24,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:11:24,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:11:24,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:11:24,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:11:24,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:11:24,487 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:11:24,487 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:11:24,488 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:11:24,489 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:11:24,489 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:11:24,489 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:11:24,490 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:11:24,492 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:11:24,494 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:11:24,495 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:24,507 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:11:24,508 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] (1, 1)
2025-04-21 10:11:24,509 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:11:24,509 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:24,509 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:11:24,510 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:11:24,510 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:11:24,510 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:24,512 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 10:11:24,512 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1000, 2000, 2001)
2025-04-21 10:11:24,515 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:24,516 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:11:24,516 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:11:24,516 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:11:24,516 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:11:24,516 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:11:24,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:24,518 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:11:24,518 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1001, datetime.datetime(2025, 4, 21, 9, 11, 24, 510775))
2025-04-21 10:11:24,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,245 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 10:11:32,250 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,253 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:11:32,256 - sqlalchemy.engine.Engine - INFO - [generated in 0.00284s] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:11:32,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,265 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:11:32,269 - sqlalchemy.engine.Engine - INFO - [cached since 0.01578s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:11:32,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,278 - services.task_edit_service - INFO - 启动普通任务: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-21 10:11:32,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,283 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 10:11:32,286 - sqlalchemy.engine.Engine - INFO - [generated in 0.00350s] (1, datetime.datetime(2025, 4, 21, 10, 11, 32, 283775), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-21 10:11:32,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,308 - services.task_edit_service - INFO - 更新任务定义状态为运行中: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-21 10:11:32,310 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11: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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:11:32,314 - sqlalchemy.engine.Engine - INFO - [cached since 0.06056s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:11:32,319 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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_remarks, created_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)
2025-04-21 10:11:32,323 - sqlalchemy.engine.Engine - INFO - [generated in 0.00443s] ('5a4402c3-c010-4310-8e77-6e30f311c440', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 21, 10, 11, 32, 317359), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'VWED', None, 'WEB', None, datetime.datetime(2025, 4, 21, 10, 11, 32, 278833), None, datetime.datetime(2025, 4, 21, 10, 11, 32, 319353), datetime.datetime(2025, 4, 21, 10, 11, 32, 319353), 0)
2025-04-21 10:11:32,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,344 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 10:11:32,345 - sqlalchemy.engine.Engine - INFO - [generated in 0.00099s] ('5a4402c3-c010-4310-8e77-6e30f311c440',)
2025-04-21 10:11:32,345 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,346 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 5a4402c3-c010-4310-8e77-6e30f311c440 (优先级 1) 添加到队列 0
2025-04-21 10:11:32,347 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1022秒
2025-04-21 10:11:32,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 5a4402c3-c010-4310-8e77-6e30f311c440, 优先级: 1
2025-04-21 10:11:32,454 - services.execution.task_executor - DEBUG - 任务 5a4402c3-c010-4310-8e77-6e30f311c440 设置超时时间: 3600秒
2025-04-21 10:11:32,455 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,455 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 10:11:32,455 - sqlalchemy.engine.Engine - INFO - [cached since 0.1111s ago] ('5a4402c3-c010-4310-8e77-6e30f311c440',)
2025-04-21 10:11:32,457 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:11:32,457 - sqlalchemy.engine.Engine - INFO - [cached since 0.2033s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:11:32,460 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 10:11:32,461 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (datetime.datetime(2025, 4, 21, 10, 11, 32, 458141), datetime.datetime(2025, 4, 21, 10, 11, 32, 460140), '5a4402c3-c010-4310-8e77-6e30f311c440')
2025-04-21 10:11:32,463 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,476 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 10:11:32,476 - sqlalchemy.engine.Engine - INFO - [generated in 0.00080s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 10, 11, 32, 476188), '5a4402c3-c010-4310-8e77-6e30f311c440')
2025-04-21 10:11:32,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,484 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 10:11:32,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,488 - 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-21 10:11:32,488 - sqlalchemy.engine.Engine - INFO - [generated in 0.00111s] ('d1826bb7-91cc-470f-85ab-8668023d5d52', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '5a4402c3-c010-4310-8e77-6e30f311c440', datetime.datetime(2025, 4, 21, 10, 11, 32, 485192), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 10, 11, 32, 487141), datetime.datetime(2025, 4, 21, 10, 11, 32, 487141), 0)
2025-04-21 10:11:32,489 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,499 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,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-21 10:11:32,504 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('d1826bb7-91cc-470f-85ab-8668023d5d52',)
2025-04-21 10:11:32,505 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 10:11:32,506 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 10:11:32,507 - 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-21 10:11:32,507 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 10, 11, 32, 507141), 'd1826bb7-91cc-470f-85ab-8668023d5d52')
2025-04-21 10:11:32,510 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,516 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 10:11:32,517 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 10:11:32,517 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-21 10:11:32,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,518 - 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-21 10:11:32,518 - sqlalchemy.engine.Engine - INFO - [cached since 0.03114s ago] ('96623758-8768-4082-86e8-ff5d2ae26e75', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(vwed_taskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '5a4402c3-c010-4310-8e77-6e30f311c440', datetime.datetime(2025, 4, 21, 10, 11, 32, 517141), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 21, 10, 11, 32, 518148), datetime.datetime(2025, 4, 21, 10, 11, 32, 518148), 0)
2025-04-21 10:11:32,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,529 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 96623758-8768-4082-86e8-ff5d2ae26e75
2025-04-21 10:11:32,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 10:11:32,530 - sqlalchemy.engine.Engine - INFO - [cached since 0.02732s ago] ('96623758-8768-4082-86e8-ff5d2ae26e75',)
2025-04-21 10:11:32,531 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 10:11:32,531 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 10:11:32,532 - 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-21 10:11:32,533 - sqlalchemy.engine.Engine - INFO - [cached since 0.0255s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 10, 11, 32, 532140), '96623758-8768-4082-86e8-ff5d2ae26e75')
2025-04-21 10:11:32,533 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,541 - sqlalchemy.engine.Engine - INFO - SELECT id FROM vwed_taskrecord WHERE id = %s
2025-04-21 10:11:32,541 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('5a4402c3-c010-4310-8e77-6e30f311c440',)
2025-04-21 10:11:32,542 - services.execution.block_executor - INFO - 从数据库 vwed_taskrecord.id 获取值: 5a4402c3-c010-4310-8e77-6e30f311c440
2025-04-21 10:11:32,543 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,543 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 10:11:32,544 - services.execution.handlers.foundation - INFO - 任务 5a4402c3-c010-4310-8e77-6e30f311c440 打印: ['5a4402c3-c010-4310-8e77-6e30f311c440']
2025-04-21 10:11:32,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,545 - 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-21 10:11:32,546 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] ('80201f74-ce2f-408c-a05b-5311148ea79e', 1, '{"success": true, "message": "打印成功", "output": {"message": ["5a4402c3-c010-4310-8e77-6e30f311c440"]}}', 1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '5a4402c3-c010-4310-8e77-6e30f311c440', datetime.datetime(2025, 4, 21, 10, 11, 32, 545142), datetime.datetime(2025, 4, 21, 10, 11, 32, 545142), 0)
2025-04-21 10:11:32,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,553 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 10:11:32,554 - sqlalchemy.engine.Engine - INFO - [cached since 0.05065s ago] ('96623758-8768-4082-86e8-ff5d2ae26e75',)
2025-04-21 10:11:32,554 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 10:11:32,555 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 10:11:32,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-21 10:11:32,557 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (datetime.datetime(2025, 4, 21, 10, 11, 32, 555154), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 10, 11, 32, 557149), '96623758-8768-4082-86e8-ff5d2ae26e75')
2025-04-21 10:11:32,558 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,566 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,566 - 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-21 10:11:32,566 - sqlalchemy.engine.Engine - INFO - [cached since 0.02104s ago] ('f4ba1125-4264-493e-95db-ef68e780a346', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["5a4402c3-c010-4310-8e77-6e30f311c440"]}}]}}', -1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '5a4402c3-c010-4310-8e77-6e30f311c440', datetime.datetime(2025, 4, 21, 10, 11, 32, 566140), datetime.datetime(2025, 4, 21, 10, 11, 32, 566140), 0)
2025-04-21 10:11:32,567 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,578 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,578 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 10:11:32,578 - sqlalchemy.engine.Engine - INFO - [cached since 0.0755s ago] ('d1826bb7-91cc-470f-85ab-8668023d5d52',)
2025-04-21 10:11:32,579 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 10:11:32,579 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 10:11:32,580 - 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-21 10:11:32,580 - sqlalchemy.engine.Engine - INFO - [cached since 0.02328s ago] (datetime.datetime(2025, 4, 21, 10, 11, 32, 580140), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 10, 11, 32, 580140), 'd1826bb7-91cc-470f-85ab-8668023d5d52')
2025-04-21 10:11:32,582 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,587 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:11:32,588 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 10:11:32,589 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (datetime.datetime(2025, 4, 21, 10, 11, 32, 587149), '任务执行成功', 1000, 113, datetime.datetime(2025, 4, 21, 10, 11, 32, 588141), '5a4402c3-c010-4310-8e77-6e30f311c440')
2025-04-21 10:11:32,590 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:11:32,595 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 5a4402c3-c010-4310-8e77-6e30f311c440, 结果: True
2025-04-21 10:12:03,359 - root - INFO - 应用程序关闭中...
2025-04-21 10:12:03,359 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:12:03,360 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:12:03,360 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:12:03,360 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:12:03,360 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:12:03,361 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:12:03,361 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:12:03,361 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:12:03,361 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:12:03,362 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:12:03,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:12:03,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:12:03,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:12:03,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:12:03,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:12:03,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:12:03,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:12:03,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:12:03,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:12:03,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:12:03,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:12:03,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:12:03,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:12:03,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:12:03,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:12:03,364 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:12:03,364 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:12:03,364 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:12:03,364 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:12:03,365 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:12:03,365 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:12:03,365 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:12:04,513 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:12:04,514 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:12:04,570 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:12:04,615 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:12:04,644 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:12:04,647 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:12:04,647 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,648 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:12:04,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,649 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:12:04,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:12:04,649 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:12:04,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,650 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:12:04,651 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,652 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:12:04,652 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,653 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:12:04,653 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,654 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:12:04,654 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,657 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:12:04,657 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,658 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:12:04,658 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,660 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:12:04,660 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,661 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:12:04,662 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,665 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:12:04,665 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,665 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:12:04,666 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:12:04,667 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:12:04,668 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:12:05,052 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:12:05,053 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:12:05,053 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:12:05,054 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:12:05,054 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:12:05,054 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:12:05,054 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:12:05,057 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:12:05,057 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:12:05,057 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:12:05,057 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:12:05,057 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:12:05,057 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:12:05,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:12:05,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:12:05,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:12:05,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:12:05,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:12:05,060 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:12:05,060 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:12:05,065 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:12:05,066 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:12:05,067 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:12:05,068 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:12:05,068 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:12:05,069 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:12:05,069 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:12:05,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:12:05,080 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:12:05,080 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (1, 1)
2025-04-21 10:12:05,081 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:12:05,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:12:05,083 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:12:05,083 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:12:05,083 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:12:05,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:12:05,085 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 10:12:05,086 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1000, 2000, 2001)
2025-04-21 10:12:05,111 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:12:05,112 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:12:05,113 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:12:05,113 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:12:05,113 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:12:05,113 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:12:05,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:12:05,115 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:12:05,118 - sqlalchemy.engine.Engine - INFO - [generated in 0.00213s] (1001, datetime.datetime(2025, 4, 21, 9, 12, 5, 83290))
2025-04-21 10:12:05,119 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:12:07,229 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 10:12:07,233 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 400 耗时: 0.0045秒
2025-04-21 10:13:05,126 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:13:05,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:13:05,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:13:05,129 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:13:05,131 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:13:05,133 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:13:05,134 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:13:05,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:13:05,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:13:05,140 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:13:05,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:13:05,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:13:05,142 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:05,143 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:13:05,145 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (1001, datetime.datetime(2025, 4, 21, 9, 13, 5, 128210))
2025-04-21 10:13:05,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:13:05,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:13:05,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:13:05,148 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:13:05,150 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:13:05,150 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:13:05,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:13:05,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:13:05,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:13:05,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:05,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:13:05,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:13:05,159 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:13:05,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:13:05,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:13:05,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:13:05,160 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:13:05,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:13:05,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:13:18,993 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 10:13:18,997 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:18,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:13:18,999 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:13:19,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:13:19,001 - sqlalchemy.engine.Engine - INFO - [cached since 0.003231s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:13:19,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,003 - services.task_edit_service - INFO - 启动普通任务: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-21 10:13:19,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,004 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 10:13:19,005 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1, datetime.datetime(2025, 4, 21, 10, 13, 19, 4155), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-21 10:13:19,005 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,019 - services.task_edit_service - INFO - 更新任务定义状态为运行中: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-21 10:13:19,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:13:19,020 - sqlalchemy.engine.Engine - INFO - [cached since 0.02221s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:13:19,022 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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_remarks, created_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)
2025-04-21 10:13:19,023 - sqlalchemy.engine.Engine - INFO - [generated in 0.00105s] ('13c6521a-d48a-40df-a7fb-3308473956a0', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 21, 10, 13, 19, 21252), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', None, datetime.datetime(2025, 4, 21, 10, 13, 19, 3155), None, datetime.datetime(2025, 4, 21, 10, 13, 19, 22253), datetime.datetime(2025, 4, 21, 10, 13, 19, 22253), 0)
2025-04-21 10:13:19,025 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,035 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,035 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 10:13:19,036 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('13c6521a-d48a-40df-a7fb-3308473956a0',)
2025-04-21 10:13:19,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,038 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 13c6521a-d48a-40df-a7fb-3308473956a0 (优先级 1) 添加到队列 0
2025-04-21 10:13:19,038 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0449秒
2025-04-21 10:13:19,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 13c6521a-d48a-40df-a7fb-3308473956a0, 优先级: 1
2025-04-21 10:13:19,097 - services.execution.task_executor - DEBUG - 任务 13c6521a-d48a-40df-a7fb-3308473956a0 设置超时时间: 3600秒
2025-04-21 10:13:19,098 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,101 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 10:13:19,108 - sqlalchemy.engine.Engine - INFO - [cached since 0.07269s ago] ('13c6521a-d48a-40df-a7fb-3308473956a0',)
2025-04-21 10:13:19,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:13:19,112 - sqlalchemy.engine.Engine - INFO - [cached since 0.1134s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:13:19,114 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 10:13:19,114 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (datetime.datetime(2025, 4, 21, 10, 13, 19, 113147), datetime.datetime(2025, 4, 21, 10, 13, 19, 114147), '13c6521a-d48a-40df-a7fb-3308473956a0')
2025-04-21 10:13:19,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,125 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 10:13:19,125 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 10, 13, 19, 125149), '13c6521a-d48a-40df-a7fb-3308473956a0')
2025-04-21 10:13:19,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,132 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 10:13:19,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,134 - 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-21 10:13:19,135 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('f192bee5-b03c-4f88-a971-cd47c8a4bdfd', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '13c6521a-d48a-40df-a7fb-3308473956a0', datetime.datetime(2025, 4, 21, 10, 13, 19, 132146), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 10, 13, 19, 134147), datetime.datetime(2025, 4, 21, 10, 13, 19, 134147), 0)
2025-04-21 10:13:19,136 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,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-21 10:13:19,143 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('f192bee5-b03c-4f88-a971-cd47c8a4bdfd',)
2025-04-21 10:13:19,144 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 10:13:19,144 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 10:13:19,145 - 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-21 10:13:19,145 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 10, 13, 19, 145403), 'f192bee5-b03c-4f88-a971-cd47c8a4bdfd')
2025-04-21 10:13:19,146 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,153 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 10:13:19,153 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 10:13:19,153 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-21 10:13:19,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,154 - 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-21 10:13:19,155 - sqlalchemy.engine.Engine - INFO - [cached since 0.02066s ago] ('e3f88492-297b-4d0b-bf64-8ed8519d92ce', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(vwed_taskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '13c6521a-d48a-40df-a7fb-3308473956a0', datetime.datetime(2025, 4, 21, 10, 13, 19, 154402), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 21, 10, 13, 19, 154402), datetime.datetime(2025, 4, 21, 10, 13, 19, 154402), 0)
2025-04-21 10:13:19,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,162 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e3f88492-297b-4d0b-bf64-8ed8519d92ce
2025-04-21 10:13:19,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,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-21 10:13:19,163 - sqlalchemy.engine.Engine - INFO - [cached since 0.0212s ago] ('e3f88492-297b-4d0b-bf64-8ed8519d92ce',)
2025-04-21 10:13:19,164 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 10:13:19,165 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 10:13:19,165 - 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-21 10:13:19,165 - sqlalchemy.engine.Engine - INFO - [cached since 0.02024s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 10, 13, 19, 165405), 'e3f88492-297b-4d0b-bf64-8ed8519d92ce')
2025-04-21 10:13:19,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,174 - sqlalchemy.engine.Engine - INFO - SELECT id FROM vwed_taskrecord WHERE id = %s
2025-04-21 10:13:19,174 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('13c6521a-d48a-40df-a7fb-3308473956a0',)
2025-04-21 10:13:19,175 - services.execution.block_executor - INFO - 从数据库 vwed_taskrecord.id 获取值: 13c6521a-d48a-40df-a7fb-3308473956a0
2025-04-21 10:13:19,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,176 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 10:13:19,176 - services.execution.handlers.foundation - INFO - 任务 13c6521a-d48a-40df-a7fb-3308473956a0 打印: ['13c6521a-d48a-40df-a7fb-3308473956a0']
2025-04-21 10:13:19,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,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-21 10:13:19,178 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('1e1e4822-1171-453d-85fb-7046943e4a70', 1, '{"success": true, "message": "打印成功", "output": {"message": ["13c6521a-d48a-40df-a7fb-3308473956a0"]}}', 1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '13c6521a-d48a-40df-a7fb-3308473956a0', datetime.datetime(2025, 4, 21, 10, 13, 19, 177777), datetime.datetime(2025, 4, 21, 10, 13, 19, 177777), 0)
2025-04-21 10:13:19,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,185 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,185 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 10:13:19,186 - sqlalchemy.engine.Engine - INFO - [cached since 0.04381s ago] ('e3f88492-297b-4d0b-bf64-8ed8519d92ce',)
2025-04-21 10:13:19,187 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 10:13:19,187 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 10:13:19,187 - 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-21 10:13:19,188 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (datetime.datetime(2025, 4, 21, 10, 13, 19, 187804), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 10, 13, 19, 187804), 'e3f88492-297b-4d0b-bf64-8ed8519d92ce')
2025-04-21 10:13:19,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,197 - 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-21 10:13:19,197 - sqlalchemy.engine.Engine - INFO - [cached since 0.01957s ago] ('0b5611ef-1175-4fb1-8478-698f84feb7ec', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["13c6521a-d48a-40df-a7fb-3308473956a0"]}}]}}', -1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '13c6521a-d48a-40df-a7fb-3308473956a0', datetime.datetime(2025, 4, 21, 10, 13, 19, 197796), datetime.datetime(2025, 4, 21, 10, 13, 19, 197796), 0)
2025-04-21 10:13:19,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,205 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,205 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 10:13:19,206 - sqlalchemy.engine.Engine - INFO - [cached since 0.06372s ago] ('f192bee5-b03c-4f88-a971-cd47c8a4bdfd',)
2025-04-21 10:13:19,208 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 10:13:19,208 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 10:13:19,208 - 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-21 10:13:19,208 - sqlalchemy.engine.Engine - INFO - [cached since 0.0206s ago] (datetime.datetime(2025, 4, 21, 10, 13, 19, 208299), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 10, 13, 19, 208299), 'f192bee5-b03c-4f88-a971-cd47c8a4bdfd')
2025-04-21 10:13:19,209 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:13:19,219 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 10:13:19,219 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (datetime.datetime(2025, 4, 21, 10, 13, 19, 216118), '任务执行成功', 1000, 91, datetime.datetime(2025, 4, 21, 10, 13, 19, 219126), '13c6521a-d48a-40df-a7fb-3308473956a0')
2025-04-21 10:13:19,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:13:19,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 13c6521a-d48a-40df-a7fb-3308473956a0, 结果: True
2025-04-21 10:14:05,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:14:05,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:14:05,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:14:05,190 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:14:05,190 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:14:05,190 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:14:05,191 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:14:05,191 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:14:05,191 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 14, 5, 188690))
2025-04-21 10:14:05,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:14:05,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:14:05,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:14:05,193 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:14:05,194 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:14:05,194 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:14:05,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:14:05,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:14:05,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:14:05,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:14:05,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:14:05,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:14:05,196 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:14:05,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:14:05,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:14:05,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:14:05,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:14:05,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:14:05,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:14:20,197 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:14:20,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:14:20,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:14:20,198 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:14:20,198 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:14:20,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:15:05,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:15:05,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:15:05,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:15:05,211 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:15:05,214 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:15:05,214 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:15:05,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:15:05,217 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:15:05,218 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 15, 5, 206058))
2025-04-21 10:15:05,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:15:05,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:15:05,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:15:05,220 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:15:05,220 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:15:05,220 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:15:05,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:15:05,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:15:05,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:15:05,221 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:15:05,223 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:15:05,223 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:15:05,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:15:05,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:15:05,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:15:05,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:15:05,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:15:05,230 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:15:05,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:15:20,238 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:15:20,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:15:20,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:15:20,239 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:15:20,239 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:15:20,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:16:05,260 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:16:05,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:16:05,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:16:05,262 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:16:05,262 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:16:05,265 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:16:05,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:16:05,273 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:16:05,280 - sqlalchemy.engine.Engine - INFO - [cached since 240.2s ago] (1001, datetime.datetime(2025, 4, 21, 9, 16, 5, 260368))
2025-04-21 10:16:05,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:16:05,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:16:05,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:16:05,283 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:16:05,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:16:05,283 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:16:05,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:16:05,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:16:05,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:16:05,284 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:16:05,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:16:05,285 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:16:05,285 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:16:05,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:16:05,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:16:05,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:16:05,285 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:16:05,285 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:16:05,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:16:05,398 - root - INFO - 应用程序关闭中...
2025-04-21 10:16:05,398 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:16:05,399 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:16:05,399 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:16:05,399 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:16:05,399 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:16:05,399 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:16:05,400 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:16:05,402 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:16:05,402 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:16:05,402 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:16:05,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:16:05,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:16:05,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:16:05,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:16:05,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:16:05,403 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:16:05,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:16:05,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:16:05,403 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:16:05,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:16:05,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:16:05,403 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:16:05,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:16:05,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:16:05,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:16:05,404 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:16:05,404 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:16:05,404 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:16:05,404 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:16:05,404 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:16:05,404 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:16:05,405 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:16:06,693 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:16:06,694 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:16:06,753 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:16:06,797 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:16:06,832 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:16:06,835 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:16:06,840 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,843 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:16:06,844 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,847 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:16:06,850 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:16:06,858 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:16:06,860 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,862 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:16:06,862 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,864 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:16:06,864 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,865 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:16:06,865 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,866 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:16:06,867 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,867 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:16:06,868 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,873 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:16:06,874 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,877 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:16:06,877 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,885 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:16:06,889 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,892 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:16:06,895 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,900 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:16:06,902 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:16:06,908 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:16:06,915 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:16:07,278 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:16:07,280 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:16:07,282 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:16:07,284 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:16:07,287 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:16:07,288 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:16:07,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:16:07,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:16:07,292 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:16:07,294 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:16:07,296 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:16:07,298 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:16:07,298 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:16:07,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:16:07,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:16:07,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:16:07,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:16:07,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:16:07,301 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:16:07,301 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:16:07,314 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:16:07,314 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:16:07,317 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:16:07,322 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:16:07,325 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:16:07,328 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:16:07,334 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:16:07,339 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:16:07,349 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:16:07,350 - sqlalchemy.engine.Engine - INFO - [generated in 0.00093s] (1, 1)
2025-04-21 10:16:07,351 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:16:07,353 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:16:07,354 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:16:07,355 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:16:07,356 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:16:07,357 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:16:07,358 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, 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-21 10:16:07,360 - sqlalchemy.engine.Engine - INFO - [generated in 0.00171s] (1000, 2000, 2001)
2025-04-21 10:16:07,375 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:16:07,376 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:16:07,377 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:16:07,377 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:16:07,379 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:16:07,379 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:16:07,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:16:07,381 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:16:07,381 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] (1001, datetime.datetime(2025, 4, 21, 9, 16, 7, 356112))
2025-04-21 10:16:07,383 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:17:07,331 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:17:07,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:17:07,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:17:07,332 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:17:07,332 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:17:07,332 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:17:07,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:17:07,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:17:07,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:17:07,332 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:17:07,332 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:17:07,332 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:17:07,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:17:07,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:17:07,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:17:07,332 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:17:07,332 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:17:07,332 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:17:07,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:17:07,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:17:07,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:17:07,334 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:17:07,334 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:17:07,334 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:17:07,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:17:07,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:17:07,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:17:07,334 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:17:07,334 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:17:07,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:17:07,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:17:07,380 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:17:07,381 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 21, 9, 17, 7, 379314))
2025-04-21 10:17:07,382 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:18:07,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:18:07,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:18:07,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:18:07,357 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:18:07,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:18:07,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:18:07,357 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:18:07,358 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:18:07,358 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 9, 18, 7, 355854))
2025-04-21 10:18:07,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:18:07,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:18:07,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:18:07,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:18:07,359 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:18:07,359 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:18:07,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:18:07,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:18:07,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:18:07,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:18:07,361 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:18:07,361 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:18:07,362 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:18:07,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:18:07,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:18:07,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:18:07,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:18:07,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:18:07,365 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:18:07,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:18:07,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:18:07,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:18:07,365 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:18:07,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:18:07,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:18:07,465 - root - INFO - 应用程序关闭中...
2025-04-21 10:18:07,465 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:18:07,467 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:18:07,467 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:18:07,467 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:18:07,467 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:18:07,468 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:18:07,468 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:18:07,468 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:18:07,468 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:18:07,468 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:18:07,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:18:07,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:18:07,468 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:18:07,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:18:07,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:18:07,469 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:18:07,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:18:07,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:18:07,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:18:07,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:18:07,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:18:07,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:18:07,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:18:07,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:18:07,471 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:18:07,471 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:18:07,471 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:18:07,471 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:18:07,471 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:18:07,472 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:18:07,472 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:18:07,472 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:18:08,658 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:18:08,660 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:18:32,453 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:18:32,454 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:20:01,766 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:20:01,767 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:20:19,549 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:20:19,550 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:20:47,449 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:20:47,449 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:21:08,231 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:21:08,233 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:21:24,408 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:21:24,408 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:21:50,798 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:21:50,799 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:23:25,537 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:23:25,537 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:23:26,273 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:23:26,274 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:23:26,330 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:23:26,383 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:23:26,421 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:23:26,423 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:23:26,424 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,424 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:23:26,424 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,424 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:23:26,425 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,425 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:26,426 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:23:26,426 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,427 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:23:26,429 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,430 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:23:26,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,432 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:23:26,432 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,433 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:23:26,434 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,434 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:23:26,435 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,436 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:23:26,436 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,437 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:23:26,437 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,438 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:23:26,438 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,439 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:23:26,439 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,441 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:23:26,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:23:26,443 - 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 '任务定义版本', 
	created_on DATETIME COMMENT '创建时间', 
	ended_on DATETIME COMMENT '结束时间', 
	ended_reason LONGTEXT COMMENT '结束原因', 
	status INTEGER COMMENT '任务状态（1001: 进行中, 1003: 已完成, 1006: 失败）', 
	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 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 NOT NULL COMMENT '任务下达时间', 
	source_client_info TEXT COMMENT '客户端设备信息（用户代理、浏览器、操作系统等）', 
	source_remarks TEXT COMMENT '任务来源备注信息', 
	created_at DATETIME COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-21 10:23:26,444 - sqlalchemy.engine.Engine - INFO - [no key 0.00045s] {}
2025-04-21 10:23:26,499 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:26,501 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:23:26,867 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:23:26,868 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:23:26,868 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:23:26,868 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:23:26,869 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:23:26,869 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:23:26,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:23:26,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:23:26,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:23:26,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:23:26,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:23:26,871 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:23:26,871 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:23:26,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:23:26,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:23:26,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:23:26,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:23:26,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:23:26,873 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:23:26,873 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:23:26,875 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:23:26,875 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:23:26,877 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:23:26,878 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:23:26,878 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:23:26,878 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:23:26,879 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:23:26,879 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:26,889 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:23:26,889 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (1, 1)
2025-04-21 10:23:26,891 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:23:26,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:26,892 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:23:26,892 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:23:26,893 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:23:26,893 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:26,897 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 10:23:26,898 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (1000, 2000, 2001)
2025-04-21 10:23:26,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:26,924 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:23:26,925 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:23:26,925 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:23:26,925 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:23:26,926 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:23:26,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:26,927 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:23:26,929 - sqlalchemy.engine.Engine - INFO - [generated in 0.00169s] (1001, datetime.datetime(2025, 4, 21, 9, 23, 26, 893439))
2025-04-21 10:23:26,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:37,943 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 10:23:37,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:37,952 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:23:37,954 - sqlalchemy.engine.Engine - INFO - [generated in 0.00297s] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:23:37,955 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:37,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:37,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:23:37,959 - sqlalchemy.engine.Engine - INFO - [cached since 0.0079s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:23:37,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:37,961 - services.task_edit_service - INFO - 启动普通任务: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-21 10:23:37,963 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:37,967 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 10:23:37,968 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] (1, datetime.datetime(2025, 4, 21, 10, 23, 37, 967805), 'ec20528a-4205-4694-84e7-36cd8afab13d')
2025-04-21 10:23:37,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:37,983 - services.task_edit_service - INFO - 更新任务定义状态为运行中: ec20528a-4205-4694-84e7-36cd8afab13d
2025-04-21 10:23:37,985 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:37,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:23:37,991 - sqlalchemy.engine.Engine - INFO - [cached since 0.04033s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:23:37,998 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 10:23:37,999 - sqlalchemy.engine.Engine - INFO - [generated in 0.00084s] ('4a3d0de5-6db4-4ca0-8ca1-c0703d0be867', 'ec20528a-4205-4694-84e7-36cd8afab13d', '定时任务-测试', 2, datetime.datetime(2025, 4, 21, 10, 23, 37, 997812), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [{"name": "input", "type": "String", "label": "input", "remark": "", "defaultValue": "", "required": false}], "outputParams": [], "ro ... (263 characters truncated) ... uired": null}}, "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, 21, 10, 23, 37, 961811), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 10, 23, 37, 998812), datetime.datetime(2025, 4, 21, 10, 23, 37, 998812), 0)
2025-04-21 10:23:38,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 10:23:38,016 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('4a3d0de5-6db4-4ca0-8ca1-c0703d0be867',)
2025-04-21 10:23:38,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,018 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 4a3d0de5-6db4-4ca0-8ca1-c0703d0be867 (优先级 1) 添加到队列 0
2025-04-21 10:23:38,019 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0760秒
2025-04-21 10:23:38,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 4a3d0de5-6db4-4ca0-8ca1-c0703d0be867, 优先级: 1
2025-04-21 10:23:38,091 - services.execution.task_executor - DEBUG - 任务 4a3d0de5-6db4-4ca0-8ca1-c0703d0be867 设置超时时间: 3600秒
2025-04-21 10:23:38,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,092 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 10:23:38,092 - sqlalchemy.engine.Engine - INFO - [cached since 0.0761s ago] ('4a3d0de5-6db4-4ca0-8ca1-c0703d0be867',)
2025-04-21 10:23:38,093 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:23:38,094 - sqlalchemy.engine.Engine - INFO - [cached since 0.142s ago] ('ec20528a-4205-4694-84e7-36cd8afab13d',)
2025-04-21 10:23:38,095 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 10:23:38,100 - sqlalchemy.engine.Engine - INFO - [generated in 0.00510s] (datetime.datetime(2025, 4, 21, 10, 23, 38, 94059), datetime.datetime(2025, 4, 21, 10, 23, 38, 95059), '4a3d0de5-6db4-4ca0-8ca1-c0703d0be867')
2025-04-21 10:23:38,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,109 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,110 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 10:23:38,110 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 10, 23, 38, 110057), '4a3d0de5-6db4-4ca0-8ca1-c0703d0be867')
2025-04-21 10:23:38,111 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,117 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 10:23:38,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,120 - 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-21 10:23:38,120 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('4d68442d-6bf8-48ad-b2c0-07a33232f0b5', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '4a3d0de5-6db4-4ca0-8ca1-c0703d0be867', datetime.datetime(2025, 4, 21, 10, 23, 38, 118058), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 10, 23, 38, 120058), datetime.datetime(2025, 4, 21, 10, 23, 38, 120058), 0)
2025-04-21 10:23:38,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,131 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 10:23:38,131 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] ('4d68442d-6bf8-48ad-b2c0-07a33232f0b5',)
2025-04-21 10:23:38,133 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 10:23:38,133 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 10:23:38,134 - 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-21 10:23:38,135 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 10, 23, 38, 134069), '4d68442d-6bf8-48ad-b2c0-07a33232f0b5')
2025-04-21 10:23:38,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,144 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 10:23:38,144 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 10:23:38,145 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: PrintBp
2025-04-21 10:23:38,145 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,145 - 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-21 10:23:38,146 - sqlalchemy.engine.Engine - INFO - [cached since 0.02612s ago] ('efb2a5b8-b65c-4397-99cd-605c7c2f349c', 'b1', '1', '', '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{"message": "StringUtils.split(vwed_taskrecord.id, \\",\\")"}', '{}', 'PrintBp', 'ec20528a-4205-4694-84e7-36cd8afab13d', '4a3d0de5-6db4-4ca0-8ca1-c0703d0be867', datetime.datetime(2025, 4, 21, 10, 23, 38, 145039), 1001, '{"message": {"type": "Expression", "value": "StringUtils.split(vwed_taskrecord.id, \\",\\")", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 21, 10, 23, 38, 145039), datetime.datetime(2025, 4, 21, 10, 23, 38, 145039), 0)
2025-04-21 10:23:38,146 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,152 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: efb2a5b8-b65c-4397-99cd-605c7c2f349c
2025-04-21 10:23:38,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,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-21 10:23:38,153 - sqlalchemy.engine.Engine - INFO - [cached since 0.02363s ago] ('efb2a5b8-b65c-4397-99cd-605c7c2f349c',)
2025-04-21 10:23:38,155 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 10:23:38,155 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 10:23:38,155 - 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-21 10:23:38,155 - sqlalchemy.engine.Engine - INFO - [cached since 0.02143s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 10, 23, 38, 155628), 'efb2a5b8-b65c-4397-99cd-605c7c2f349c')
2025-04-21 10:23:38,156 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,163 - sqlalchemy.engine.Engine - INFO - SELECT id FROM vwed_taskrecord WHERE id = %s
2025-04-21 10:23:38,164 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] ('4a3d0de5-6db4-4ca0-8ca1-c0703d0be867',)
2025-04-21 10:23:38,164 - services.execution.block_executor - INFO - 从数据库 vwed_taskrecord.id 获取值: 4a3d0de5-6db4-4ca0-8ca1-c0703d0be867
2025-04-21 10:23:38,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,165 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 10:23:38,165 - services.execution.handlers.foundation - INFO - 任务 4a3d0de5-6db4-4ca0-8ca1-c0703d0be867 打印: ['4a3d0de5-6db4-4ca0-8ca1-c0703d0be867']
2025-04-21 10:23:38,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,167 - 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-21 10:23:38,167 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('d7939dae-37f4-43e9-b36d-5c5ecd2df92a', 1, '{"success": true, "message": "打印成功", "output": {"message": ["4a3d0de5-6db4-4ca0-8ca1-c0703d0be867"]}}', 1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '4a3d0de5-6db4-4ca0-8ca1-c0703d0be867', datetime.datetime(2025, 4, 21, 10, 23, 38, 167627), datetime.datetime(2025, 4, 21, 10, 23, 38, 167627), 0)
2025-04-21 10:23:38,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,178 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 10:23:38,183 - sqlalchemy.engine.Engine - INFO - [cached since 0.0533s ago] ('efb2a5b8-b65c-4397-99cd-605c7c2f349c',)
2025-04-21 10:23:38,186 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 10:23:38,186 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 10:23:38,187 - 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-21 10:23:38,188 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (datetime.datetime(2025, 4, 21, 10, 23, 38, 187628), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 10, 23, 38, 187628), 'efb2a5b8-b65c-4397-99cd-605c7c2f349c')
2025-04-21 10:23:38,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,199 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,199 - 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-21 10:23:38,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.03275s ago] ('c8c73c09-1b49-4f65-89f6-3ebc10f69ce1', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {"message": ["4a3d0de5-6db4-4ca0-8ca1-c0703d0be867"]}}]}}', -1, 'ec20528a-4205-4694-84e7-36cd8afab13d', '4a3d0de5-6db4-4ca0-8ca1-c0703d0be867', datetime.datetime(2025, 4, 21, 10, 23, 38, 199543), datetime.datetime(2025, 4, 21, 10, 23, 38, 199543), 0)
2025-04-21 10:23:38,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,208 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 10:23:38,208 - sqlalchemy.engine.Engine - INFO - [cached since 0.07802s ago] ('4d68442d-6bf8-48ad-b2c0-07a33232f0b5',)
2025-04-21 10:23:38,209 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 10:23:38,209 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 10:23:38,209 - 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-21 10:23:38,209 - sqlalchemy.engine.Engine - INFO - [cached since 0.02164s ago] (datetime.datetime(2025, 4, 21, 10, 23, 38, 209429), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 10, 23, 38, 209429), '4d68442d-6bf8-48ad-b2c0-07a33232f0b5')
2025-04-21 10:23:38,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:23:38,218 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 10:23:38,219 - sqlalchemy.engine.Engine - INFO - [generated in 0.00084s] (datetime.datetime(2025, 4, 21, 10, 23, 38, 217539), '任务执行成功', 1000, 108, datetime.datetime(2025, 4, 21, 10, 23, 38, 218534), '4a3d0de5-6db4-4ca0-8ca1-c0703d0be867')
2025-04-21 10:23:38,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:23:38,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 4a3d0de5-6db4-4ca0-8ca1-c0703d0be867, 结果: True
2025-04-21 10:24:26,926 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:24:26,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:24:26,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:24:26,928 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:24:26,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:24:26,928 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:24:26,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:24:26,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:24:26,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:24:26,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:24:26,929 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:24:26,929 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 21, 9, 24, 26, 926582))
2025-04-21 10:24:26,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:24:26,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:24:26,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:24:26,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:24:26,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:24:26,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:24:26,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:24:26,931 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:24:26,931 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:24:26,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:24:26,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:24:26,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:24:26,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:24:26,931 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:24:26,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:24:26,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:24:41,947 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:24:41,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:24:41,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:24:41,947 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:24:41,949 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:24:41,949 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:24:50,111 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:24:50,111 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:24:50,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:24:50,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:24:50,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:24:50,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:24:50,117 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:24:50,117 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:24:50,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:24:50,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:24:50,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:24:50,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:24:50,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:24:50,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:24:50,126 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:24:50,128 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:24:50,128 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:24:50,129 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:24:51,649 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:24:51,650 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:24:52,348 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:24:52,348 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:24:52,402 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:24:52,449 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:24:52,486 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:24:52,489 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:24:52,489 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,490 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:24:52,490 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,491 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:24:52,491 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,491 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:24:52,492 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:24:52,492 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,493 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:24:52,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,494 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:24:52,494 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,495 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:24:52,495 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,497 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:24:52,497 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,498 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:24:52,499 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,500 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:24:52,501 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,501 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:24:52,501 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,504 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:24:52,504 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,505 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:24:52,506 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,508 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:24:52,509 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:24:52,511 - 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 '任务定义版本', 
	created_on DATETIME COMMENT '创建时间', 
	ended_on DATETIME COMMENT '结束时间', 
	ended_reason LONGTEXT COMMENT '结束原因', 
	status INTEGER COMMENT '任务状态（1001: 进行中, 1003: 已完成, 1006: 失败）', 
	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 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 NOT NULL COMMENT '任务下达时间', 
	source_client_info TEXT COMMENT '客户端设备信息（用户代理、浏览器、操作系统等）', 
	source_remarks TEXT COMMENT '任务来源备注信息', 
	created_at DATETIME COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)CHARSET=utf8mb4 ENGINE=InnoDB COLLATE utf8mb4_general_ci


2025-04-21 10:24:52,511 - sqlalchemy.engine.Engine - INFO - [no key 0.00039s] {}
2025-04-21 10:24:52,567 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:24:52,567 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:24:52,922 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:24:52,923 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:24:52,923 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:24:52,923 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:24:52,924 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:24:52,924 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:24:52,924 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:24:52,924 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:24:52,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:24:52,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:24:52,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:24:52,925 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:24:52,926 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:24:52,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:24:52,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:24:52,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:24:52,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:24:52,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:24:52,928 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:24:52,928 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:24:52,941 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:24:52,942 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:24:52,942 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:24:52,944 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:24:52,945 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:24:52,948 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:24:52,948 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:24:52,949 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:24:52,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:24:52,958 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1, 1)
2025-04-21 10:24:52,959 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:24:52,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:24:52,960 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:24:52,961 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:24:52,961 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:24:52,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:24:52,963 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 10:24:52,964 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (1000, 2000, 2001)
2025-04-21 10:24:52,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:24:52,990 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:24:52,991 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:24:52,992 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:24:52,992 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:24:52,992 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:24:52,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:24:52,995 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:24:52,998 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1001, datetime.datetime(2025, 4, 21, 9, 24, 52, 961120))
2025-04-21 10:24:53,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:25:52,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:25:52,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:25:52,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:25:52,952 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:25:52,952 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:25:52,953 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:25:52,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:25:52,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:25:52,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:25:52,954 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:25:52,954 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:25:52,955 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:25:52,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:25:52,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:25:52,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:25:52,956 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:25:52,956 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:25:52,957 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:25:52,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:25:52,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:25:52,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:25:52,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:25:52,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:25:52,958 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:25:52,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:25:52,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:25:52,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:25:52,959 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:25:52,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:25:52,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:25:53,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:25:53,016 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:25:53,017 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 9, 25, 53, 14629))
2025-04-21 10:25:53,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:26:52,967 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:26:52,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:26:52,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:26:52,968 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:26:52,968 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:26:52,969 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:26:52,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:26:52,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:26:52,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:26:52,971 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:26:52,971 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:26:52,971 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:26:52,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:26:52,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:26:52,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:26:52,972 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:26:52,973 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:26:52,973 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:26:52,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:26:52,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:26:52,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:26:52,974 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:26:52,974 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:26:52,974 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:26:52,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:26:52,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:26:52,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:26:52,976 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:26:52,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:26:52,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:26:53,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:26:53,029 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:26:53,030 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 9, 26, 53, 28866))
2025-04-21 10:26:53,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:27:53,038 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:27:53,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:27:53,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:27:53,039 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:27:53,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:27:53,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:27:53,041 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:27:53,041 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:27:53,042 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 9, 27, 53, 37713))
2025-04-21 10:27:53,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:27:53,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:27:53,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:27:53,043 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:27:53,044 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:27:53,044 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:27:53,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:27:53,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:27:53,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:27:53,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:27:53,046 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:27:53,046 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:27:53,046 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:27:53,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:27:53,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:27:53,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:27:53,047 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:27:53,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:27:53,048 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:27:53,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:27:53,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:27:53,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:27:53,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:27:53,050 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:27:53,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:28:53,059 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:28:53,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:28:53,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:28:53,060 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:28:53,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:28:53,061 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:28:53,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:28:53,063 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:28:53,064 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 28, 53, 58864))
2025-04-21 10:28:53,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:28:53,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:28:53,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:28:53,065 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:28:53,065 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:28:53,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:28:53,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:28:53,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:28:53,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:28:53,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:28:53,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:28:53,067 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:28:53,067 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:28:53,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:28:53,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:28:53,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:28:53,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:28:53,067 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:28:53,067 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:28:53,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:28:53,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:28:53,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:28:53,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:28:53,068 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:28:53,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:29:53,080 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:29:53,081 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:29:53,082 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 29, 53, 79282))
2025-04-21 10:29:53,083 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:29:53,110 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:29:53,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:29:53,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:29:53,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:29:53,111 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:29:53,112 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:29:53,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:29:53,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:29:53,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:29:53,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:29:53,113 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:29:53,113 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:29:53,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:29:53,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:29:53,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:29:53,114 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:29:53,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:29:53,114 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:29:53,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:29:53,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:29:53,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:29:53,115 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:29:53,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:29:53,115 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:29:53,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:29:53,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:29:53,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:29:53,116 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:29:53,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:29:53,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:30:53,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:30:53,083 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:30:53,087 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 30, 53, 81724))
2025-04-21 10:30:53,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:30:53,144 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:30:53,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:30:53,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:30:53,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:30:53,150 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:30:53,152 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:30:53,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:30:53,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:30:53,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:30:53,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:30:53,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:30:53,162 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:30:53,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:30:53,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:30:53,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:30:53,164 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:30:53,164 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:30:53,164 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:30:53,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:30:53,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:30:53,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:30:53,166 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:30:53,166 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:30:53,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:30:53,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:30:53,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:30:53,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:30:53,168 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:30:53,168 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:30:53,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:31:53,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:31:53,116 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:31:53,116 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 31, 53, 113586))
2025-04-21 10:31:53,118 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:31:53,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:31:53,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:31:53,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:31:53,210 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:31:53,212 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:31:53,215 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:31:53,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:31:53,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:31:53,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:31:53,221 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:31:53,221 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:31:53,225 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:31:53,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:31:53,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:31:53,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:31:53,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:31:53,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:31:53,234 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:31:53,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:31:53,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:31:53,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:31:53,238 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:31:53,239 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:31:53,241 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:31:53,243 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:31:53,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:31:53,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:31:53,247 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:31:53,248 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:31:53,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:32:53,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:32:53,120 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:32:53,120 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 32, 53, 117512))
2025-04-21 10:32:53,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:32:53,287 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:32:53,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:32:53,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:32:53,288 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:32:53,288 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:32:53,289 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:32:53,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:32:53,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:32:53,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:32:53,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:32:53,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:32:53,292 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:32:53,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:32:53,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:32:53,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:32:53,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:32:53,294 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:32:53,295 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:32:53,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:32:53,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:32:53,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:32:53,297 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:32:53,297 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:32:53,297 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:32:53,298 - root - INFO - 应用程序关闭中...
2025-04-21 10:32:53,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:32:53,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:32:53,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:32:53,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:32:53,299 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:32:53,299 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:32:53,299 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:32:53,299 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:32:53,307 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:32:53,307 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:32:53,307 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:32:53,307 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:32:53,307 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:32:53,308 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:32:53,308 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:32:53,308 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:32:53,308 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:32:53,308 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:32:53,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:32:53,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:32:53,309 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:32:53,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:32:53,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:32:53,309 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:32:53,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:32:53,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:32:53,309 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:32:53,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:32:53,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:32:53,310 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:32:53,310 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:32:53,311 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:32:53,311 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:32:53,311 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:32:53,311 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:32:53,312 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:32:54,582 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:32:54,584 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:32:54,639 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:32:54,690 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:32:54,724 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:32:54,739 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:32:54,739 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,740 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:32:54,742 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,743 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:32:54,743 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,743 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:32:54,743 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:32:54,745 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:32:54,746 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,748 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:32:54,748 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,750 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:32:54,750 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,752 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:32:54,752 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,753 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:32:54,753 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,754 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:32:54,754 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,755 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:32:54,755 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,757 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:32:54,757 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,758 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:32:54,759 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,760 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:32:54,760 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:32:54,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:32:54,761 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:32:55,120 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:32:55,120 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:32:55,120 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:32:55,120 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:32:55,120 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:32:55,120 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:32:55,121 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:32:55,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:32:55,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:32:55,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:32:55,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:32:55,123 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:32:55,123 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:32:55,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:32:55,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:32:55,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:32:55,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:32:55,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:32:55,127 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:32:55,127 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:32:55,128 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:32:55,129 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:32:55,129 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:32:55,130 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:32:55,131 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:32:55,131 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:32:55,131 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:32:55,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:32:55,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:32:55,141 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] (1, 1)
2025-04-21 10:32:55,143 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:32:55,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:32:55,146 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:32:55,147 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:32:55,147 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:32:55,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:32:55,151 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 10:32:55,153 - sqlalchemy.engine.Engine - INFO - [generated in 0.00199s] (1000, 2000, 2001)
2025-04-21 10:32:55,154 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:32:55,156 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:32:55,156 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:32:55,156 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:32:55,158 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:32:55,158 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:32:55,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:32:55,160 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:32:55,160 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1001, datetime.datetime(2025, 4, 21, 9, 32, 55, 148402))
2025-04-21 10:32:55,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:33:55,168 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:33:55,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:33:55,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:33:55,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:33:55,171 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:33:55,171 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:33:55,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:33:55,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:33:55,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:33:55,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:33:55,172 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:33:55,172 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 9, 33, 55, 168900))
2025-04-21 10:33:55,173 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:33:55,173 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:33:55,173 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:33:55,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:33:55,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:33:55,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:33:55,173 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:33:55,173 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:33:55,173 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:33:55,174 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:33:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:33:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:33:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:33:55,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:33:55,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:33:55,174 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:33:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:33:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:33:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:33:55,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:33:55,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:33:55,179 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:33:55,341 - root - INFO - 应用程序关闭中...
2025-04-21 10:33:55,342 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:33:55,342 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:33:55,342 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:33:55,342 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:33:55,345 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:33:55,345 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:33:55,345 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:33:55,345 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:33:55,345 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:33:55,345 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:33:55,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:33:55,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:33:55,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:33:55,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:33:55,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:33:55,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:33:55,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:33:55,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:33:55,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:33:55,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:33:55,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:33:55,347 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:33:55,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:33:55,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:33:55,347 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:33:55,347 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:33:55,347 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:33:55,347 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:33:55,347 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:33:55,347 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:33:55,349 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:33:55,349 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:33:56,517 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:33:56,517 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:33:56,570 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:33:56,615 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:33:56,642 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:33:56,669 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:33:56,669 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,670 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:33:56,670 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,671 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:33:56,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:33:56,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:33:56,672 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,673 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:33:56,674 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,675 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:33:56,678 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,678 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:33:56,679 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,679 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:33:56,680 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,681 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:33:56,681 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,682 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:33:56,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,685 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:33:56,685 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,686 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:33:56,686 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,687 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:33:56,687 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,688 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:33:56,689 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:33:56,689 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:33:56,690 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:33:57,045 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:33:57,045 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:33:57,046 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:33:57,046 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:33:57,047 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:33:57,047 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:33:57,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:33:57,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:33:57,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:33:57,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:33:57,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:33:57,048 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:33:57,048 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:33:57,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:33:57,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:33:57,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:33:57,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:33:57,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:33:57,052 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:33:57,052 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:33:57,073 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:33:57,074 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:33:57,075 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:33:57,081 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:33:57,081 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:33:57,082 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:33:57,083 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:33:57,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:33:57,093 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:33:57,093 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (1, 1)
2025-04-21 10:33:57,095 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:33:57,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:33:57,096 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:33:57,096 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:33:57,097 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:33:57,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:33:57,098 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 10:33:57,099 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1000, 2000, 2001)
2025-04-21 10:33:57,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:33:57,100 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:33:57,100 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:33:57,100 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:33:57,101 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:33:57,101 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:33:57,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:33:57,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:33:57,102 - sqlalchemy.engine.Engine - INFO - [generated in 0.00018s] (1001, datetime.datetime(2025, 4, 21, 9, 33, 57, 97562))
2025-04-21 10:33:57,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:34:51,083 - root - INFO - 应用程序关闭中...
2025-04-21 10:34:51,083 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:34:51,084 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:34:51,084 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:34:51,084 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:34:51,085 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:34:51,085 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:34:51,086 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:34:51,086 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:34:51,087 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:34:51,087 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:34:51,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:34:51,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:34:51,087 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:34:51,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:34:51,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:34:51,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:34:51,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:34:51,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:34:51,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:34:51,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:34:51,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:34:51,089 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:34:51,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:34:51,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:34:51,089 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:34:51,089 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:34:51,089 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:34:51,089 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:34:51,089 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:34:51,090 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:34:51,090 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:34:51,091 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:34:52,050 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:34:52,051 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:34:52,109 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:34:52,154 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:34:52,188 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:34:52,207 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:34:52,207 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,208 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:34:52,208 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,209 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:34:52,209 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,209 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:34:52,209 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:34:52,209 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,210 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:34:52,210 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,212 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:34:52,212 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,214 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:34:52,214 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,216 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:34:52,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,218 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:34:52,218 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,218 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:34:52,219 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,220 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:34:52,220 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,222 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:34:52,222 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,223 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:34:52,223 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,226 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:34:52,226 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:34:52,227 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:34:52,227 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:34:52,563 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:34:52,564 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:34:52,564 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:34:52,565 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:34:52,566 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:34:52,567 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:34:52,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:34:52,568 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:34:52,568 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:34:52,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:34:52,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:34:52,570 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:34:52,570 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:34:52,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:34:52,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:34:52,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:34:52,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:34:52,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:34:52,574 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:34:52,574 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:34:52,595 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:34:52,596 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:34:52,598 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:34:52,601 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:34:52,601 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:34:52,602 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:34:52,603 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:34:52,605 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:34:52,614 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:34:52,615 - sqlalchemy.engine.Engine - INFO - [generated in 0.00125s] (1, 1)
2025-04-21 10:34:52,617 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:34:52,617 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:34:52,621 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:34:52,622 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:34:52,622 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:34:52,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:34:52,625 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 10:34:52,626 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] (1000, 2000, 2001)
2025-04-21 10:34:52,627 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:34:52,627 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:34:52,628 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:34:52,628 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:34:52,628 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:34:52,628 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:34:52,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:34:52,629 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:34:52,630 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1001, datetime.datetime(2025, 4, 21, 9, 34, 52, 623696))
2025-04-21 10:34:52,630 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:35:52,623 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:35:52,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:35:52,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:35:52,625 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:35:52,625 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:35:52,625 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:35:52,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:35:52,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:35:52,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:35:52,626 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:35:52,627 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:35:52,627 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 21, 9, 35, 52, 624152))
2025-04-21 10:35:52,627 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:35:52,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:35:52,629 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:35:52,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:35:52,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:35:52,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:35:52,630 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:35:52,630 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:35:52,631 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:35:52,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:35:52,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:35:52,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:35:52,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:35:52,633 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:35:52,633 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:35:52,633 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:35:52,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:35:52,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:35:52,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:35:52,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:35:52,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:35:52,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:35:52,846 - root - INFO - 应用程序关闭中...
2025-04-21 10:35:52,846 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:35:52,846 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:35:52,846 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:35:52,846 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:35:52,846 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:35:52,847 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:35:52,847 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:35:52,847 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:35:52,847 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:35:52,847 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:35:52,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:35:52,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:35:52,848 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:35:52,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:35:52,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:35:52,848 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:35:52,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:35:52,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:35:52,848 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:35:52,849 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:35:52,849 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:35:52,849 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:35:52,849 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:35:52,849 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:35:52,849 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:35:52,849 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:35:52,850 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:35:52,851 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:35:52,852 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:35:52,855 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:35:52,855 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:35:52,856 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:35:54,071 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:35:54,071 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:35:54,129 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:35:54,184 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:35:54,228 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:35:54,249 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:35:54,249 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,250 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:35:54,250 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,251 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:35:54,251 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:35:54,253 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:35:54,253 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,255 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:35:54,255 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,256 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:35:54,256 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,259 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:35:54,259 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,260 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:35:54,260 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,263 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:35:54,267 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,267 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:35:54,267 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:35:54,270 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,271 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:35:54,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,272 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:35:54,272 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,274 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:35:54,274 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:35:54,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:35:54,275 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:35:54,628 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:35:54,628 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:35:54,628 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:35:54,628 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:35:54,628 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:35:54,629 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:35:54,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:35:54,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:35:54,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:35:54,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:35:54,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:35:54,629 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:35:54,629 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:35:54,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:35:54,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:35:54,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:35:54,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:35:54,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:35:54,632 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:35:54,632 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:35:54,632 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:35:54,633 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:35:54,633 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:35:54,634 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:35:54,634 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:35:54,634 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:35:54,634 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:35:54,636 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:35:54,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:35:54,647 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1, 1)
2025-04-21 10:35:54,647 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:35:54,647 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:35:54,648 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:35:54,648 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:35:54,648 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:35:54,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:35:54,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 10:35:54,651 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (1000, 2000, 2001)
2025-04-21 10:35:54,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:35:54,653 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:35:54,653 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:35:54,654 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:35:54,654 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:35:54,654 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:35:54,655 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:35:54,656 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:35:54,657 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (1001, datetime.datetime(2025, 4, 21, 9, 35, 54, 648966))
2025-04-21 10:35:54,657 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:36:54,669 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:36:54,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:36:54,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:36:54,671 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:36:54,671 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:36:54,671 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:36:54,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:36:54,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:36:54,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:36:54,671 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:36:54,672 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:36:54,672 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:36:54,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:36:54,676 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:36:54,676 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 9, 36, 54, 670479))
2025-04-21 10:36:54,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:36:54,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:36:54,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:36:54,677 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:36:54,677 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:36:54,677 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:36:54,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:36:54,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:36:54,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:36:54,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:36:54,679 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:36:54,679 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:36:54,679 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:36:54,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:36:54,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:36:54,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:36:54,679 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:36:54,679 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:36:54,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:36:54,853 - root - INFO - 应用程序关闭中...
2025-04-21 10:36:54,853 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:36:54,853 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:36:54,853 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:36:54,853 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:36:54,854 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:36:54,854 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:36:54,854 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:36:54,854 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:36:54,854 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:36:54,854 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:36:54,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:36:54,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:36:54,854 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:36:54,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:36:54,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:36:54,855 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:36:54,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:36:54,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:36:54,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:36:54,855 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:36:54,855 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:36:54,856 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:36:54,856 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:36:54,856 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:36:54,856 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:36:54,856 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:36:54,856 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:36:54,856 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:36:54,857 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:36:54,858 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:36:54,859 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:36:56,100 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:36:56,101 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:36:56,162 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:36:56,214 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:36:56,251 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:36:56,271 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:36:56,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,273 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:36:56,273 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,273 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:36:56,273 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,274 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:36:56,274 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:36:56,275 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,276 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:36:56,276 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,277 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:36:56,277 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,279 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:36:56,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,280 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:36:56,280 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,281 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:36:56,281 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,283 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:36:56,286 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,288 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:36:56,289 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,291 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:36:56,291 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,293 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:36:56,293 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,294 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:36:56,294 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:36:56,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:36:56,296 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:36:56,655 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:36:56,655 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:36:56,655 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:36:56,656 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:36:56,656 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:36:56,656 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:36:56,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:36:56,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:36:56,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:36:56,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:36:56,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:36:56,658 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:36:56,658 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:36:56,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:36:56,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:36:56,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:36:56,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:36:56,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:36:56,661 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:36:56,661 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:36:56,662 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:36:56,663 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:36:56,663 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:36:56,664 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:36:56,664 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:36:56,664 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:36:56,664 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:36:56,665 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:36:56,674 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:36:56,674 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1, 1)
2025-04-21 10:36:56,675 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:36:56,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:36:56,676 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:36:56,676 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:36:56,676 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:36:56,677 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:36:56,678 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 10:36:56,679 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1000, 2000, 2001)
2025-04-21 10:36:56,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:36:56,680 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:36:56,680 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:36:56,680 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:36:56,680 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:36:56,681 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:36:56,681 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:36:56,682 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:36:56,682 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] (1001, datetime.datetime(2025, 4, 21, 9, 36, 56, 676334))
2025-04-21 10:36:56,683 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:37:56,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:37:56,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:37:56,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:37:56,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:37:56,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:37:56,714 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:37:56,714 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:37:56,715 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:37:56,715 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (1001, datetime.datetime(2025, 4, 21, 9, 37, 56, 712383))
2025-04-21 10:37:56,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:37:56,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:37:56,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:37:56,716 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:37:56,716 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:37:56,717 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:37:56,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:37:56,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:37:56,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:37:56,717 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:37:56,718 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:37:56,718 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:37:56,718 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:37:56,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:37:56,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:37:56,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:37:56,719 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:37:56,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:37:56,719 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:37:56,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:37:56,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:37:56,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:37:56,719 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:37:56,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:37:56,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:38:56,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:38:56,721 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:38:56,722 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 9, 38, 56, 718649))
2025-04-21 10:38:56,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:38:56,764 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:38:56,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:38:56,765 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:38:56,766 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:38:56,768 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:38:56,770 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:38:56,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:38:56,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:38:56,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:38:56,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:38:56,777 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:38:56,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:38:56,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:38:56,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:38:56,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:38:56,778 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:38:56,778 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:38:56,778 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:38:56,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:38:56,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:38:56,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:38:56,778 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:38:56,779 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:38:56,779 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:38:56,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:38:56,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:38:56,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:38:56,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:38:56,780 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:38:56,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:39:56,742 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:39:56,743 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:39:56,744 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 39, 56, 741166))
2025-04-21 10:39:56,746 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:39:56,860 - root - INFO - 应用程序关闭中...
2025-04-21 10:39:56,860 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:39:56,860 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:39:56,860 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:39:56,860 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:39:56,862 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:39:56,862 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:39:56,862 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:39:56,862 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:39:56,862 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:39:56,862 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:39:56,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:39:56,862 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:39:56,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:39:56,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:39:56,865 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:39:56,865 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:39:56,865 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:39:56,865 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:39:56,865 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:39:56,865 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:39:56,866 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:39:56,866 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:39:58,179 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:39:58,180 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:39:58,235 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:39:58,281 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:39:58,314 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:39:58,333 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:39:58,334 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,334 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:39:58,335 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,335 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:39:58,335 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:39:58,336 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:39:58,336 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,338 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:39:58,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:39:58,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,344 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:39:58,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,345 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:39:58,346 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,347 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:39:58,347 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,350 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:39:58,353 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,355 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:39:58,356 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,362 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:39:58,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,368 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:39:58,371 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,375 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:39:58,376 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:39:58,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:39:58,382 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:39:58,728 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:39:58,728 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:39:58,728 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:39:58,729 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:39:58,729 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:39:58,729 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:39:58,729 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:39:58,729 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:39:58,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:39:58,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:39:58,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:39:58,730 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:39:58,730 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:39:58,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:39:58,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:39:58,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:39:58,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:39:58,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:39:58,733 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:39:58,733 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:39:58,734 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:39:58,735 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:39:58,735 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:39:58,736 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:39:58,736 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:39:58,737 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:39:58,737 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:39:58,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:39:58,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:39:58,747 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1, 1)
2025-04-21 10:39:58,747 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:39:58,748 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:39:58,748 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:39:58,748 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:39:58,749 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:39:58,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:39:58,751 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 10:39:58,752 - sqlalchemy.engine.Engine - INFO - [generated in 0.00084s] (1000, 2000, 2001)
2025-04-21 10:39:58,770 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:39:58,773 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:39:58,773 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:39:58,773 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:39:58,773 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:39:58,774 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:39:58,775 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:39:58,776 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:39:58,776 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1001, datetime.datetime(2025, 4, 21, 9, 39, 58, 749727))
2025-04-21 10:39:58,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:40:58,769 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:40:58,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:40:58,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:40:58,770 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:40:58,771 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:40:58,771 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:40:58,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:40:58,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:40:58,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:40:58,775 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:40:58,775 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:40:58,776 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 21, 9, 40, 58, 769637))
2025-04-21 10:40:58,776 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:40:58,777 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:40:58,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:40:58,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:40:58,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:40:58,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:40:58,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:40:58,777 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:40:58,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:40:58,778 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:40:58,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:40:58,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:40:58,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:40:58,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:40:58,780 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:40:58,780 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:40:58,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:40:58,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:40:58,781 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:40:58,781 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:40:58,781 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:40:58,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:41:58,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:41:58,784 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:41:58,789 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 9, 41, 58, 782190))
2025-04-21 10:41:58,793 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:41:58,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:41:58,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:41:58,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:41:58,815 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:41:58,815 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:41:58,816 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:41:58,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:41:58,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:41:58,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:41:58,823 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:41:58,824 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:41:58,824 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:41:58,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:41:58,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:41:58,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:41:58,828 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:41:58,829 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:41:58,829 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:41:58,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:41:58,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:41:58,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:41:58,829 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:41:58,830 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:41:58,830 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:41:58,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:41:58,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:41:58,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:41:58,830 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:41:58,830 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:41:58,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:42:58,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:42:58,810 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:42:58,810 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 9, 42, 58, 807279))
2025-04-21 10:42:58,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:42:58,868 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:42:58,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:42:58,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:42:58,870 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:42:58,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:42:58,870 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:42:58,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:42:58,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:42:58,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:42:58,871 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:42:58,871 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:42:58,871 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:42:58,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:42:58,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:42:58,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:42:58,871 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:42:58,871 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:42:58,871 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:42:58,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:42:58,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:42:58,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:42:58,873 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:42:58,873 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:42:58,873 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:42:58,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:42:58,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:42:58,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:42:58,874 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:42:58,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:42:58,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:43:58,837 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:43:58,838 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:43:58,838 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 43, 58, 835891))
2025-04-21 10:43:58,840 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:43:58,912 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:43:58,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:43:58,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:43:58,913 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:43:58,913 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:43:58,913 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:43:58,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:43:58,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:43:58,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:43:58,914 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:43:58,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:43:58,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:43:58,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:43:58,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:43:58,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:43:58,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:43:58,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:43:58,917 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:43:58,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:43:58,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:43:58,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:43:58,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:43:58,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:43:58,917 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:43:58,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:43:58,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:43:58,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:43:58,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:43:58,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:43:58,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:44:58,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:44:58,845 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:44:58,845 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 44, 58, 843967))
2025-04-21 10:44:58,846 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:44:58,938 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:44:58,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:44:58,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:44:58,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:44:58,940 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:44:58,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:44:58,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:44:58,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:44:58,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:44:58,941 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:44:58,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:44:58,942 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:44:58,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:44:58,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:44:58,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:44:58,942 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:44:58,943 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:44:58,943 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:44:58,943 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:44:58,943 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:44:58,943 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:44:58,943 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:44:58,944 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:44:58,944 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:44:58,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:44:58,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:44:58,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:44:58,945 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:44:58,945 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:44:58,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:45:58,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:45:58,851 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:45:58,851 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 45, 58, 849214))
2025-04-21 10:45:58,853 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:45:58,958 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:45:58,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:45:58,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:45:58,959 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:45:58,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:45:58,959 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:45:58,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:45:58,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:45:58,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:45:58,960 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:45:58,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:45:58,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:45:58,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:45:58,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:45:58,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:45:58,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:45:58,962 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:45:58,963 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:45:58,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:45:58,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:45:58,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:45:58,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:45:58,964 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:45:58,964 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:45:58,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:45:58,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:45:58,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:45:58,965 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:45:58,965 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:45:58,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:46:58,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:46:58,863 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:46:58,868 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 46, 58, 862951))
2025-04-21 10:46:58,870 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:46:58,990 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:46:58,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:46:58,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:46:58,990 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:46:58,990 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:46:58,993 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:46:58,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:46:58,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:46:58,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:46:58,993 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:46:58,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:46:58,994 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:46:58,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:46:58,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:46:58,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:46:58,994 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:46:58,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:46:58,995 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:46:58,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:46:58,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:46:58,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:46:58,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:46:58,995 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:46:58,995 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:46:58,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:46:58,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:46:58,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:46:58,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:46:58,996 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:46:59,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:47:58,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:47:58,886 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:47:58,888 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 47, 58, 883422))
2025-04-21 10:47:58,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:47:59,023 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:47:59,024 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:47:59,024 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:47:59,024 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:47:59,024 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:47:59,024 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:47:59,024 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:47:59,024 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:47:59,024 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:47:59,024 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:47:59,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:47:59,025 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:47:59,026 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:47:59,026 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:47:59,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:47:59,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:47:59,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:47:59,026 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:47:59,026 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:47:59,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:48:58,914 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:48:58,917 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:48:58,921 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 48, 58, 912311))
2025-04-21 10:48:58,926 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:48:59,084 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:48:59,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:48:59,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:48:59,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:48:59,088 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:48:59,089 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:48:59,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:48:59,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:48:59,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:48:59,090 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:48:59,090 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:48:59,092 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:48:59,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:48:59,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:48:59,093 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:48:59,093 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:48:59,094 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:48:59,094 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:48:59,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:48:59,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:48:59,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:48:59,094 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:48:59,094 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:48:59,094 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:48:59,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:48:59,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:48:59,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:48:59,096 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:48:59,096 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:48:59,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:49:58,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:49:58,935 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:49:58,939 - sqlalchemy.engine.Engine - INFO - [cached since 600.2s ago] (1001, datetime.datetime(2025, 4, 21, 9, 49, 58, 932070))
2025-04-21 10:49:58,944 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:49:59,134 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:49:59,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:49:59,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:49:59,137 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:49:59,137 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:49:59,138 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:49:59,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:49:59,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:49:59,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:49:59,140 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:49:59,140 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:49:59,141 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:49:59,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:49:59,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:49:59,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:49:59,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:49:59,143 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:49:59,143 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:49:59,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:49:59,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:49:59,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:49:59,144 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:49:59,144 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:49:59,144 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:49:59,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:49:59,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:49:59,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:49:59,144 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:49:59,150 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:49:59,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:50:11,062 - root - INFO - 请求开始: POST /api/vwed-task/create 来自 127.0.0.1
2025-04-21 10:50:11,067 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:50:11,069 - 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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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-21 10:50:11,069 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] {'label_1': '第一级父任务', 'param_1': 1}
2025-04-21 10:50:11,075 - 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-21 10:50:11,075 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] {'template_if_enable_1': 1, 'param_1': 1}
2025-04-21 10:50:11,077 - 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, create_date, remark, tenant_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, %(create_date)s, %(remark)s, %(tenant_id)s, %(user_token)s, %(created_at)s, %(updated_at)s, %(is_deleted)s)
2025-04-21 10:50:11,079 - sqlalchemy.engine.Engine - INFO - [generated in 0.00233s] {'id': '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'label': '第一级父任务', 'created_by': None, 'version': 1, 'detail': '{"inputParams": [], "outputParams": [], "rootBlock": null}', 'template_name': 'userTemplate', 'period': 3000, 'periodic_task': 0, 'status': 0, 'if_enable': 0, 'delay': 3000, 'release_sites': True, 'create_date': datetime.datetime(2025, 4, 21, 10, 50, 11, 76097), 'remark': '父任务测试', 'tenant_id': 'default', 'user_token': None, 'created_at': datetime.datetime(2025, 4, 21, 10, 50, 11, 77125), 'updated_at': datetime.datetime(2025, 4, 21, 10, 50, 11, 77125), 'is_deleted': 0}
2025-04-21 10:50:11,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:50:11,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:50:11,103 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:50:11,105 - sqlalchemy.engine.Engine - INFO - [generated in 0.00214s] {'pk_1': '9e0e17e3-7bad-4632-9725-1c6a469c5e2a'}
2025-04-21 10:50:11,108 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 10:50:11,109 - root - INFO - 请求完成: POST /api/vwed-task/create 状态码: 200 耗时: 0.0470秒
2025-04-21 10:50:18,459 - root - INFO - 请求开始: POST /api/vwed-task/create 来自 127.0.0.1
2025-04-21 10:50:18,461 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:50:18,462 - 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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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-21 10:50:18,462 - sqlalchemy.engine.Engine - INFO - [cached since 7.394s ago] {'label_1': '第一级父任务', 'param_1': 1}
2025-04-21 10:50:18,464 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 10:50:18,465 - root - ERROR - 创建任务失败: 任务名称 '第一级父任务' 已存在，请使用其他名称
2025-04-21 10:50:18,465 - app.task_api - ERROR - 创建任务失败: 创建任务失败: 任务名称 '第一级父任务' 已存在，请使用其他名称
2025-04-21 10:50:18,466 - root - INFO - 请求完成: POST /api/vwed-task/create 状态码: 500 耗时: 0.0067秒
2025-04-21 10:50:46,580 - root - INFO - 请求开始: POST /api/vwed-task/create 来自 127.0.0.1
2025-04-21 10:50:46,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:50:46,582 - 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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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-21 10:50:46,582 - sqlalchemy.engine.Engine - INFO - [cached since 35.51s ago] {'label_1': '第一级子任务', 'param_1': 1}
2025-04-21 10:50:46,583 - 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-21 10:50:46,583 - sqlalchemy.engine.Engine - INFO - [cached since 35.51s ago] {'template_if_enable_1': 1, 'param_1': 1}
2025-04-21 10:50:46,584 - 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, create_date, remark, tenant_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, %(create_date)s, %(remark)s, %(tenant_id)s, %(user_token)s, %(created_at)s, %(updated_at)s, %(is_deleted)s)
2025-04-21 10:50:46,585 - sqlalchemy.engine.Engine - INFO - [cached since 35.51s ago] {'id': 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'label': '第一级子任务', 'created_by': None, 'version': 1, 'detail': '{"inputParams": [], "outputParams": [], "rootBlock": null}', 'template_name': 'userTemplate', 'period': 3000, 'periodic_task': 0, 'status': 0, 'if_enable': 0, 'delay': 3000, 'release_sites': True, 'create_date': datetime.datetime(2025, 4, 21, 10, 50, 46, 584958), 'remark': '子任务测试', 'tenant_id': 'default', 'user_token': None, 'created_at': datetime.datetime(2025, 4, 21, 10, 50, 46, 584958), 'updated_at': datetime.datetime(2025, 4, 21, 10, 50, 46, 584958), 'is_deleted': 0}
2025-04-21 10:50:46,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:50:46,599 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:50:46,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:50:46,600 - sqlalchemy.engine.Engine - INFO - [cached since 35.5s ago] {'pk_1': 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983'}
2025-04-21 10:50:46,601 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 10:50:46,602 - root - INFO - 请求完成: POST /api/vwed-task/create 状态码: 200 耗时: 0.0213秒
2025-04-21 10:50:58,934 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:50:58,935 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:50:58,936 - sqlalchemy.engine.Engine - INFO - [cached since 660.2s ago] (1001, datetime.datetime(2025, 4, 21, 9, 50, 58, 933888))
2025-04-21 10:50:58,938 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:50:59,182 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:50:59,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:50:59,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:50:59,186 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:50:59,186 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:50:59,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:50:59,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:50:59,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:50:59,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:50:59,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:50:59,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:50:59,196 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:50:59,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:50:59,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:50:59,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:50:59,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:50:59,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:50:59,204 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:50:59,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:50:59,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:50:59,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:50:59,204 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:50:59,204 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:50:59,205 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:50:59,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:50:59,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:50:59,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:50:59,206 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:50:59,206 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:50:59,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:51:58,938 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:51:58,939 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:51:58,941 - sqlalchemy.engine.Engine - INFO - [cached since 720.2s ago] (1001, datetime.datetime(2025, 4, 21, 9, 51, 58, 938525))
2025-04-21 10:51:58,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:51:59,202 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:51:59,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:51:59,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:51:59,204 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:51:59,205 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:51:59,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:51:59,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:51:59,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:51:59,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:51:59,211 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:51:59,213 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:51:59,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:52:14,229 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:52:14,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:52:14,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:52:14,229 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:52:14,230 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:52:14,230 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:52:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:52:14,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:52:14,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:52:14,231 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:52:14,231 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:52:14,232 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:52:14,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:52:14,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:52:14,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:52:14,232 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:52:14,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:52:14,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:52:58,943 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:52:58,944 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:52:58,945 - sqlalchemy.engine.Engine - INFO - [cached since 780.2s ago] (1001, datetime.datetime(2025, 4, 21, 9, 52, 58, 941072))
2025-04-21 10:52:58,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:52:59,267 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:52:59,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:52:59,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:52:59,269 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:52:59,269 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:52:59,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:52:59,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:52:59,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:52:59,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:52:59,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:52:59,273 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:52:59,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:53:14,295 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:53:14,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:53:14,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:53:14,295 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:53:14,295 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:53:14,296 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:53:14,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:53:14,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:53:14,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:53:14,300 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:53:14,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:53:14,302 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:53:14,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:53:14,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:53:14,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:53:14,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:53:14,307 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:53:14,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:53:25,443 - root - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-21 10:53:25,446 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:53:25,447 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:53:25,448 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 10:53:25,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:53:25,452 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:53:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 10:53:25,453 - sqlalchemy.engine.Engine - INFO - [cached since 0.004978s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 10:53:25,454 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 10:53:25,457 - sqlalchemy.engine.Engine - INFO - [generated in 0.00338s] (2, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 21, 10, 53, 25, 454059), 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983')
2025-04-21 10:53:25,458 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:53:25,473 - root - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0295秒
2025-04-21 10:53:58,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:53:58,951 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:53:58,952 - sqlalchemy.engine.Engine - INFO - [cached since 840.2s ago] (1001, datetime.datetime(2025, 4, 21, 9, 53, 58, 949316))
2025-04-21 10:53:58,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:53:59,338 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:53:59,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:53:59,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:53:59,341 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:53:59,342 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:53:59,343 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:53:59,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:53:59,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:53:59,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:53:59,345 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:53:59,346 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:53:59,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:54:14,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:54:14,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:54:14,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:54:14,360 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:54:14,360 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:54:14,361 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:54:14,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:54:14,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:54:14,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:54:14,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:54:14,362 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:54:14,362 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:54:14,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:54:14,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:54:14,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:54:14,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:54:14,363 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:54:14,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:54:58,949 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:54:58,949 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:54:58,949 - sqlalchemy.engine.Engine - INFO - [cached since 900.2s ago] (1001, datetime.datetime(2025, 4, 21, 9, 54, 58, 948245))
2025-04-21 10:54:58,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:54:59,399 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:54:59,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:54:59,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:54:59,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:54:59,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:54:59,404 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:54:59,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:54:59,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:54:59,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:54:59,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:54:59,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:54:59,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:55:14,430 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:55:14,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:55:14,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:55:14,430 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:55:14,430 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:55:14,430 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:55:14,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:55:14,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:55:14,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:55:14,430 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:55:14,430 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:55:14,432 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:55:14,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:55:14,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:55:14,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:55:14,432 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:55:14,432 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:55:14,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:55:40,952 - root - INFO - 应用程序关闭中...
2025-04-21 10:55:40,953 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 10:55:40,953 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 10:55:40,954 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 10:55:40,954 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 10:55:40,955 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 10:55:40,955 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 10:55:40,957 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 10:55:40,957 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 10:55:40,957 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 10:55:40,958 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 10:55:40,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:55:40,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:55:40,959 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:55:40,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:55:40,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:55:40,960 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 10:55:40,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:55:40,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:55:40,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 10:55:40,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:55:40,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:55:40,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 10:55:40,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:55:40,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:55:40,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 10:55:40,964 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 10:55:40,964 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 10:55:40,965 - root - INFO - 增强版任务调度器已停止
2025-04-21 10:55:40,965 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 10:55:40,965 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 10:55:40,966 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 10:55:40,966 - data.session - INFO - 数据库连接已关闭
2025-04-21 10:55:42,570 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:55:42,570 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:55:43,304 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 10:55:43,304 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 10:55:43,361 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 10:55:43,407 - data.session - INFO - 正在初始化数据库...
2025-04-21 10:55:43,446 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 10:55:43,449 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:55:43,449 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,450 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:55:43,451 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,451 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:55:43,452 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,452 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:55:43,452 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 10:55:43,453 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,454 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 10:55:43,454 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,455 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 10:55:43,455 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,457 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 10:55:43,457 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,458 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 10:55:43,458 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,460 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 10:55:43,460 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,461 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 10:55:43,461 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,463 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 10:55:43,463 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,465 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 10:55:43,465 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,467 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 10:55:43,467 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,468 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 10:55:43,469 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 10:55:43,471 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:55:43,471 - data.session - INFO - 数据库表初始化完成
2025-04-21 10:55:43,834 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 10:55:43,834 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 10:55:43,834 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 10:55:43,835 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 10:55:43,835 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 10:55:43,835 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 10:55:43,835 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 10:55:43,835 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 10:55:43,835 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 10:55:43,835 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 10:55:43,835 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:55:43,835 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 10:55:43,837 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 10:55:43,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:55:43,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:55:43,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:55:43,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:55:43,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:55:43,839 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 10:55:43,839 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 10:55:43,842 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:55:43,843 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 10:55:43,843 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:55:43,844 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 10:55:43,844 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:55:43,845 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 10:55:43,845 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 10:55:43,845 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:55:43,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 10:55:43,855 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1, 1)
2025-04-21 10:55:43,856 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 10:55:43,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:55:43,856 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 10:55:43,857 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 10:55:43,857 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 10:55:43,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:55:43,859 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 10:55:43,859 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (1000, 2000, 2001)
2025-04-21 10:55:43,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:55:43,861 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 10:55:43,861 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 10:55:43,862 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 10:55:43,862 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 10:55:43,863 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 10:55:43,864 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:55:43,865 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:55:43,865 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1001, datetime.datetime(2025, 4, 21, 9, 55, 43, 857485))
2025-04-21 10:55:43,868 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:55:45,379 - root - INFO - 请求开始: GET /api/vwed-task/list 来自 127.0.0.1
2025-04-21 10:55:45,383 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:55:45,386 - sqlalchemy.engine.Engine - INFO - SELECT count(*) AS count_1 
FROM (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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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) AS anon_1
2025-04-21 10:55:45,386 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] {}
2025-04-21 10:55:45,400 - 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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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 ORDER BY vwed_taskdef.create_date DESC 
 LIMIT %(param_1)s, %(param_2)s
2025-04-21 10:55:45,401 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] {'param_1': 0, 'param_2': 10}
2025-04-21 10:55:45,402 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 10:55:45,403 - root - INFO - 请求完成: GET /api/vwed-task/list 状态码: 200 耗时: 0.0235秒
2025-04-21 10:56:43,872 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:56:43,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:56:43,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:56:43,874 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:56:43,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:56:43,875 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:56:43,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:56:43,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:56:43,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:56:43,876 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:56:43,876 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:56:43,877 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 9, 56, 43, 873598))
2025-04-21 10:56:43,877 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:56:43,877 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:56:43,877 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:56:43,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:56:43,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:56:43,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:56:43,878 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:56:43,878 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:56:43,878 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:56:43,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:56:43,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:56:43,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:56:43,880 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:56:43,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:56:43,880 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:56:43,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:56:43,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:56:43,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:56:43,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:56:43,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:56:43,880 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:56:43,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:57:43,900 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:57:43,902 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:57:43,902 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 9, 57, 43, 897337))
2025-04-21 10:57:43,904 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:57:58,882 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:57:58,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:57:58,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:57:58,883 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:57:58,884 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:57:58,887 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:57:58,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:57:58,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:57:58,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:57:58,895 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:57:58,897 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:57:58,898 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:57:58,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:57:58,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:57:58,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:57:58,902 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:57:58,902 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:57:58,904 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:57:58,906 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:57:58,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:57:58,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:57:58,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:57:58,913 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:57:58,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:57:58,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:57:58,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:57:58,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:57:58,920 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:57:58,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:57:58,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:58:43,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:58:43,912 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:58:43,912 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 9, 58, 43, 909287))
2025-04-21 10:58:43,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:58:58,923 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:58:58,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:58:58,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:58:58,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:58:58,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:58:58,925 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:58:58,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:58:58,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:58:58,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:58:58,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:58:58,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:58:58,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:58:58,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:58:58,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:58:58,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:58:58,929 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:58:58,929 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:58:58,929 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:58:58,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:58:58,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:58:58,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:58:58,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:58:58,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:58:58,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:58:58,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:58:58,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:58:58,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:58:58,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:58:58,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:58:58,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 10:59:43,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 10:59:43,939 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 10:59:43,986 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 9, 59, 43, 923541))
2025-04-21 10:59:43,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 10:59:58,982 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 10:59:58,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 10:59:58,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 10:59:58,984 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 10:59:58,984 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 10:59:58,984 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 10:59:58,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 10:59:58,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 10:59:58,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 10:59:58,985 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 10:59:58,985 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 10:59:58,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 10:59:58,986 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 10:59:58,986 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 10:59:58,986 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 10:59:58,986 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 10:59:58,986 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 10:59:58,987 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 10:59:58,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 10:59:58,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 10:59:58,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 10:59:58,987 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 10:59:58,987 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 10:59:58,988 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 10:59:58,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 10:59:58,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 10:59:58,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 10:59:58,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 10:59:58,989 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 10:59:58,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:00:43,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:00:43,999 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:00:43,999 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 0, 43, 997956))
2025-04-21 11:00:44,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:00:59,019 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:00:59,020 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:00:59,020 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:00:59,020 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:00:59,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:00:59,020 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:00:59,020 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:00:59,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:00:59,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:00:59,021 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:00:59,021 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:00:59,021 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:00:59,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:00:59,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:00:59,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:00:59,021 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:00:59,021 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:00:59,022 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:00:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:00:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:00:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:00:59,022 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:00:59,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:00:59,022 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:00:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:00:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:00:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:00:59,022 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:00:59,023 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:00:59,027 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:01:44,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:01:44,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:01:44,022 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 1, 44, 17798))
2025-04-21 11:01:44,025 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:01:59,064 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:01:59,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:01:59,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:01:59,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:01:59,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:01:59,066 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:01:59,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:01:59,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:01:59,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:01:59,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:01:59,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:01:59,071 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:01:59,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:01:59,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:01:59,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:01:59,075 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:01:59,077 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:01:59,079 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:01:59,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:01:59,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:01:59,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:01:59,082 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:01:59,082 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:01:59,083 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:01:59,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:01:59,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:01:59,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:01:59,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:01:59,090 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:01:59,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:02:44,036 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:02:44,037 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:02:44,037 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 2, 44, 36967))
2025-04-21 11:02:44,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:02:59,106 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:02:59,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:02:59,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:02:59,107 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:02:59,107 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:02:59,107 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:02:59,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:02:59,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:02:59,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:02:59,107 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:02:59,107 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:02:59,107 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:02:59,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:02:59,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:02:59,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:02:59,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:02:59,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:02:59,108 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:02:59,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:02:59,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:02:59,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:02:59,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:02:59,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:02:59,108 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:02:59,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:02:59,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:02:59,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:02:59,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:02:59,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:02:59,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:03:39,173 - root - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-21 11:03:39,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:03:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:03:39,178 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:03:39,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:03:39,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:03:39,180 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:03:39,180 - sqlalchemy.engine.Engine - INFO - [cached since 0.00282s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:03:39,182 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 11:03:39,182 - sqlalchemy.engine.Engine - INFO - [generated in 0.00089s] (2, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (121 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 21, 11, 3, 39, 182964), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 11:03:39,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:03:39,199 - root - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0255秒
2025-04-21 11:03:41,819 - root - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-21 11:03:41,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:03:41,820 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:03:41,820 - sqlalchemy.engine.Engine - INFO - [cached since 2.642s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:03:41,821 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:03:41,822 - root - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0030秒
2025-04-21 11:03:44,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:03:44,033 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:03:44,034 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 3, 44, 30343))
2025-04-21 11:03:44,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:03:59,165 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:03:59,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:03:59,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:03:59,166 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:03:59,166 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:03:59,166 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:03:59,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:03:59,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:03:59,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:03:59,167 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:03:59,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:03:59,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:03:59,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:03:59,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:03:59,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:03:59,168 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:03:59,168 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:03:59,168 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:03:59,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:03:59,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:03:59,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:03:59,168 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:03:59,169 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:03:59,169 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:03:59,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:03:59,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:03:59,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:03:59,169 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:03:59,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:03:59,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:04:11,947 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 11:04:11,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:11,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:04:11,955 - sqlalchemy.engine.Engine - INFO - [cached since 32.78s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:04:11,957 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:11,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:11,966 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:04:11,970 - sqlalchemy.engine.Engine - INFO - [cached since 32.79s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:04:11,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:11,974 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 11:04:11,974 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:11,975 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 11:04:11,976 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1, datetime.datetime(2025, 4, 21, 11, 4, 11, 975692), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 11:04:11,977 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:11,992 - services.task_edit_service - INFO - 更新任务定义状态为运行中: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 11:04:11,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:11,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:04:11,996 - sqlalchemy.engine.Engine - INFO - [cached since 32.82s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:04:12,000 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 11:04:12,000 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] ('f1edeeb2-1e59-4eb4-8388-9861098d3012', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 2, datetime.datetime(2025, 4, 21, 11, 4, 11, 997683), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (121 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 11, 4, 11, 974687), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 11, 4, 11, 999758), datetime.datetime(2025, 4, 21, 11, 4, 11, 999758), 0)
2025-04-21 11:04:12,001 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,011 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,012 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:04:12,012 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('f1edeeb2-1e59-4eb4-8388-9861098d3012',)
2025-04-21 11:04:12,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,014 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f1edeeb2-1e59-4eb4-8388-9861098d3012 (优先级 1) 添加到队列 0
2025-04-21 11:04:12,014 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0670秒
2025-04-21 11:04:12,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: f1edeeb2-1e59-4eb4-8388-9861098d3012, 优先级: 1
2025-04-21 11:04:12,083 - services.execution.task_executor - DEBUG - 任务 f1edeeb2-1e59-4eb4-8388-9861098d3012 设置超时时间: 3600秒
2025-04-21 11:04:12,083 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,084 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:04:12,084 - sqlalchemy.engine.Engine - INFO - [cached since 0.07193s ago] ('f1edeeb2-1e59-4eb4-8388-9861098d3012',)
2025-04-21 11:04:12,086 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:04:12,086 - sqlalchemy.engine.Engine - INFO - [cached since 32.91s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:04:12,087 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:04:12,088 - sqlalchemy.engine.Engine - INFO - [generated in 0.00139s] (datetime.datetime(2025, 4, 21, 11, 4, 12, 87270), datetime.datetime(2025, 4, 21, 11, 4, 12, 87270), 'f1edeeb2-1e59-4eb4-8388-9861098d3012')
2025-04-21 11:04:12,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,101 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:04:12,101 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 11, 4, 12, 101964), 'f1edeeb2-1e59-4eb4-8388-9861098d3012')
2025-04-21 11:04:12,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,112 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 11:04:12,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,115 - 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-21 11:04:12,116 - sqlalchemy.engine.Engine - INFO - [generated in 0.00111s] ('89498e53-05c6-4b67-94a8-72f8dbfb97ac', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'f1edeeb2-1e59-4eb4-8388-9861098d3012', datetime.datetime(2025, 4, 21, 11, 4, 12, 112894), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 4, 12, 115517), datetime.datetime(2025, 4, 21, 11, 4, 12, 115517), 0)
2025-04-21 11:04:12,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,126 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:04:12,126 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('89498e53-05c6-4b67-94a8-72f8dbfb97ac',)
2025-04-21 11:04:12,128 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 11:04:12,128 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 11:04:12,128 - 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-21 11:04:12,129 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 4, 12, 128297), '89498e53-05c6-4b67-94a8-72f8dbfb97ac')
2025-04-21 11:04:12,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,136 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 11:04:12,136 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 11:04:12,137 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983
2025-04-21 11:04:12,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,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-21 11:04:12,138 - sqlalchemy.engine.Engine - INFO - [cached since 0.02332s ago] ('4163d1f9-2beb-43e6-91db-0416094a6cff', 'b1', '1', '', '{}', '{}', '{}', 'SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'f1edeeb2-1e59-4eb4-8388-9861098d3012', datetime.datetime(2025, 4, 21, 11, 4, 12, 137661), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 4, 12, 138607), datetime.datetime(2025, 4, 21, 11, 4, 12, 138607), 0)
2025-04-21 11:04:12,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,149 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4163d1f9-2beb-43e6-91db-0416094a6cff
2025-04-21 11:04:12,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,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-21 11:04:12,150 - sqlalchemy.engine.Engine - INFO - [cached since 0.02509s ago] ('4163d1f9-2beb-43e6-91db-0416094a6cff',)
2025-04-21 11:04:12,151 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 11:04:12,151 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 11:04:12,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-21 11:04:12,151 - sqlalchemy.engine.Engine - INFO - [cached since 0.02328s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 4, 12, 151618), '4163d1f9-2beb-43e6-91db-0416094a6cff')
2025-04-21 11:04:12,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,159 - services.execution.block_executor - ERROR - 未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器
2025-04-21 11:04:12,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,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-21 11:04:12,163 - sqlalchemy.engine.Engine - INFO - [cached since 0.03824s ago] ('4163d1f9-2beb-43e6-91db-0416094a6cff',)
2025-04-21 11:04:12,164 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 11:04:12,164 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 11:04:12,165 - 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-21 11:04:12,165 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (datetime.datetime(2025, 4, 21, 11, 4, 12, 164761), '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', 2000, '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', datetime.datetime(2025, 4, 21, 11, 4, 12, 165721), '4163d1f9-2beb-43e6-91db-0416094a6cff')
2025-04-21 11:04:12,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,173 - 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-21 11:04:12,174 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('9af732b6-7230-4637-be0a-e1f86db8167c', 3, '{"success": false, "message": "未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器", "block_id": 1}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'f1edeeb2-1e59-4eb4-8388-9861098d3012', datetime.datetime(2025, 4, 21, 11, 4, 12, 173621), datetime.datetime(2025, 4, 21, 11, 4, 12, 173621), 0)
2025-04-21 11:04:12,174 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,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-21 11:04:12,181 - sqlalchemy.engine.Engine - INFO - [cached since 0.05635s ago] ('89498e53-05c6-4b67-94a8-72f8dbfb97ac',)
2025-04-21 11:04:12,182 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 11:04:12,183 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 11:04:12,183 - 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-21 11:04:12,183 - sqlalchemy.engine.Engine - INFO - [cached since 0.01837s ago] (datetime.datetime(2025, 4, 21, 11, 4, 12, 183945), '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', 2000, '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', datetime.datetime(2025, 4, 21, 11, 4, 12, 183945), '89498e53-05c6-4b67-94a8-72f8dbfb97ac')
2025-04-21 11:04:12,183 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,191 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:12,191 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:04:12,191 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 21, 11, 4, 12, 190980), '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', 2000, 91, datetime.datetime(2025, 4, 21, 11, 4, 12, 191980), 'f1edeeb2-1e59-4eb4-8388-9861098d3012')
2025-04-21 11:04:12,192 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:12,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: f1edeeb2-1e59-4eb4-8388-9861098d3012, 结果: False
2025-04-21 11:04:44,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:04:44,052 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:04:44,052 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 4, 44, 51122))
2025-04-21 11:04:44,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:04:59,212 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:04:59,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:04:59,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:04:59,213 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:04:59,213 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:04:59,213 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:04:59,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:04:59,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:04:59,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:04:59,214 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:04:59,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:04:59,215 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:04:59,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:04:59,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:04:59,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:04:59,216 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:04:59,216 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:04:59,216 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:04:59,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:04:59,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:04:59,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:04:59,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:04:59,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:04:59,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:05:14,214 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:05:14,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:05:14,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:05:14,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:05:14,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:05:14,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:05:44,050 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:05:44,051 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:05:44,052 - sqlalchemy.engine.Engine - INFO - [cached since 600.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 5, 44, 49920))
2025-04-21 11:05:44,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:05:59,256 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:05:59,256 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:05:59,256 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:05:59,258 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:05:59,258 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:05:59,258 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:05:59,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:05:59,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:05:59,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:05:59,261 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:05:59,261 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:05:59,261 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:05:59,262 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:05:59,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:05:59,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:05:59,264 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:05:59,264 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:05:59,265 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:05:59,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:05:59,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:05:59,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:05:59,268 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:05:59,268 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:05:59,275 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:06:14,282 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:06:14,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:06:14,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:06:14,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:06:14,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:06:14,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:06:44,051 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:06:44,052 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:06:44,057 - sqlalchemy.engine.Engine - INFO - [cached since 660.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 6, 44, 50012))
2025-04-21 11:06:44,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:06:59,288 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:06:59,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:06:59,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:06:59,289 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:06:59,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:06:59,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:06:59,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:06:59,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:06:59,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:06:59,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:06:59,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:06:59,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:06:59,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:06:59,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:06:59,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:06:59,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:06:59,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:06:59,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:06:59,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:06:59,291 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:06:59,291 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:06:59,291 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:06:59,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:06:59,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:07:14,300 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:07:14,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:07:14,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:07:14,303 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:07:14,303 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:07:14,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:07:44,078 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:07:44,080 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:07:44,080 - sqlalchemy.engine.Engine - INFO - [cached since 720.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 7, 44, 77305))
2025-04-21 11:07:44,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:07:59,308 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:07:59,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:07:59,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:07:59,312 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:07:59,312 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:07:59,312 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:07:59,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:07:59,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:07:59,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:07:59,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:07:59,314 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:07:59,314 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:07:59,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:07:59,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:07:59,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:07:59,315 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:07:59,315 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:07:59,315 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:07:59,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:07:59,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:07:59,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:07:59,316 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:07:59,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:07:59,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:07:59,544 - root - INFO - 应用程序关闭中...
2025-04-21 11:07:59,544 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:07:59,544 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:07:59,544 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:07:59,544 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:07:59,544 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:07:59,547 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:07:59,547 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:07:59,547 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:07:59,547 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:07:59,547 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:07:59,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:07:59,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:07:59,548 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:07:59,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:07:59,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:07:59,548 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-21 11:07:59,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:07:59,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:07:59,548 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 11:07:59,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:07:59,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:07:59,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 11:07:59,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:07:59,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:07:59,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 11:07:59,549 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:07:59,549 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:07:59,549 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:07:59,549 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:07:59,549 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:07:59,550 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:07:59,550 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:08:00,748 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:08:00,749 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:08:00,814 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:08:00,864 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:08:00,901 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:08:00,921 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:08:00,922 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,922 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:08:00,923 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,924 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:08:00,924 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,924 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:08:00,925 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:08:00,925 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,927 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:08:00,927 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,929 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:08:00,929 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,930 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:08:00,930 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,931 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:08:00,931 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,932 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:08:00,933 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,933 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:08:00,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,935 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:08:00,935 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,936 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:08:00,936 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,937 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:08:00,937 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:08:00,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:08:00,939 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:08:00,940 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:08:01,287 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:08:01,288 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:08:01,288 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:08:01,288 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:08:01,288 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:08:01,288 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:08:01,289 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:08:01,289 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:08:01,289 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:08:01,289 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:08:01,289 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:08:01,289 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:08:01,290 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:08:01,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:08:01,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:08:01,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:08:01,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:08:01,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:08:01,313 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:08:01,313 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:08:01,331 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:08:01,333 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:08:01,333 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:08:01,334 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:08:01,335 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:08:01,335 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:08:01,336 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:08:01,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:08:01,349 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:08:01,349 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (1, 1)
2025-04-21 11:08:01,350 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:08:01,350 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:08:01,351 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:08:01,352 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:08:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:08:01,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:08:01,354 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:08:01,355 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (1000, 2000, 2001)
2025-04-21 11:08:01,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:08:01,381 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:08:01,381 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:08:01,382 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:08:01,382 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:08:01,383 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:08:01,386 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:08:01,387 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:08:01,387 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (1001, datetime.datetime(2025, 4, 21, 10, 8, 1, 352787))
2025-04-21 11:08:01,389 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:09:01,350 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:09:01,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:09:01,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:09:01,351 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:09:01,351 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:09:01,351 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:09:01,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:09:01,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:09:01,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:09:01,351 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:09:01,351 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:09:01,351 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:09:01,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:09:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:09:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:09:01,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:09:01,352 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:09:01,352 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:09:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:09:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:09:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:09:01,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:09:01,352 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:09:01,352 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:09:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:09:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:09:01,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:09:01,353 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:09:01,353 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:09:01,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:09:01,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:09:01,399 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:09:01,399 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 10, 9, 1, 398168))
2025-04-21 11:09:01,401 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:09:01,490 - root - INFO - 应用程序关闭中...
2025-04-21 11:09:01,491 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:09:01,491 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:09:01,491 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:09:01,491 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:09:01,491 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:09:01,491 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:09:01,498 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:09:01,499 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:09:01,499 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:09:01,499 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:09:01,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:09:01,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:09:01,499 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:09:01,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:09:01,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:09:01,500 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 11:09:01,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:09:01,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:09:01,500 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 11:09:01,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:09:01,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:09:01,500 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 11:09:01,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:09:01,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:09:01,500 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 11:09:01,501 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:09:01,501 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:09:01,501 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:09:01,501 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:09:01,501 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:09:01,503 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:09:01,503 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:09:02,757 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:09:02,757 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:09:02,818 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:09:02,870 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:09:02,909 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:09:02,911 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:09:02,911 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,912 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:09:02,912 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,913 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:09:02,913 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,914 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:09:02,914 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:09:02,915 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,916 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:09:02,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,918 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:09:02,918 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,919 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:09:02,919 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,920 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:09:02,920 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,924 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:09:02,924 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,925 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:09:02,925 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,926 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:09:02,926 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,927 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:09:02,927 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,930 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:09:02,930 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,931 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:09:02,931 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:09:02,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:09:02,934 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:09:03,289 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:09:03,289 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:09:03,290 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:09:03,290 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:09:03,290 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:09:03,290 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:09:03,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:09:03,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:09:03,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:09:03,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:09:03,292 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:09:03,292 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:09:03,292 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:09:03,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:09:03,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:09:03,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:09:03,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:09:03,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:09:03,296 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:09:03,296 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:09:03,298 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:09:03,299 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:09:03,299 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:09:03,300 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:09:03,300 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:09:03,300 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:09:03,301 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:09:03,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:09:03,309 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:09:03,309 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (1, 1)
2025-04-21 11:09:03,311 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:09:03,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:09:03,315 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:09:03,317 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:09:03,317 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:09:03,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:09:03,319 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:09:03,319 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1000, 2000, 2001)
2025-04-21 11:09:03,321 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:09:03,321 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:09:03,322 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:09:03,324 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:09:03,326 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:09:03,331 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:09:03,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:09:03,336 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:09:03,338 - sqlalchemy.engine.Engine - INFO - [generated in 0.00146s] (1001, datetime.datetime(2025, 4, 21, 10, 9, 3, 318198))
2025-04-21 11:09:03,341 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:10:03,334 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:10:03,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:10:03,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:10:03,336 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:10:03,336 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:10:03,336 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:10:03,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:10:03,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:10:03,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:10:03,337 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:10:03,337 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:10:03,337 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:10:03,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:10:03,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:10:03,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:10:03,338 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:10:03,338 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:10:03,338 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:10:03,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:10:03,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:10:03,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:10:03,338 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:10:03,338 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:10:03,338 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:10:03,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:10:03,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:10:03,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:10:03,339 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:10:03,339 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:10:03,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:10:03,347 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:10:03,348 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:10:03,349 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 10, 10, 3, 344584))
2025-04-21 11:10:03,352 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:10:03,518 - root - INFO - 应用程序关闭中...
2025-04-21 11:10:03,519 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:10:03,521 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:10:03,521 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:10:03,521 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:10:03,521 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:10:03,521 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:10:03,521 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:10:03,523 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:10:03,523 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:10:03,523 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:10:03,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:10:03,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:10:03,524 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:10:03,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:10:03,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:10:03,524 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 11:10:03,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:10:03,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:10:03,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 11:10:03,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:10:03,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:10:03,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 11:10:03,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:10:03,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:10:03,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 11:10:03,525 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:10:03,525 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:10:03,525 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:10:03,525 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:10:03,527 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:10:03,527 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:10:03,527 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:10:04,712 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:10:04,715 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:10:04,771 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:10:04,818 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:10:04,838 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:10:04,865 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:10:04,866 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,867 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:10:04,867 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,867 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:10:04,867 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,868 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:10:04,868 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:10:04,868 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,870 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:10:04,871 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,871 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:10:04,872 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,874 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:10:04,874 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,875 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:10:04,875 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,876 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:10:04,876 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,877 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:10:04,877 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,877 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:10:04,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,878 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:10:04,879 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,879 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:10:04,880 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,883 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:10:04,883 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:10:04,883 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:10:04,885 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:10:05,220 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:10:05,220 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:10:05,220 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:10:05,221 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:10:05,221 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:10:05,222 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:10:05,222 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:10:05,223 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:10:05,223 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:10:05,223 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:10:05,224 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:10:05,224 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:10:05,224 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:10:05,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:10:05,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:10:05,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:10:05,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:10:05,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:10:05,227 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:10:05,227 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:10:05,228 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:10:05,229 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:10:05,229 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:10:05,230 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:10:05,230 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:10:05,231 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:10:05,231 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:10:05,231 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:10:05,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:10:05,245 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1, 1)
2025-04-21 11:10:05,247 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:10:05,248 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:10:05,250 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:10:05,253 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:10:05,253 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:10:05,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:10:05,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:10:05,255 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1000, 2000, 2001)
2025-04-21 11:10:05,256 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:10:05,257 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:10:05,257 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:10:05,258 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:10:05,258 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:10:05,258 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:10:05,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:10:05,260 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:10:05,260 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (1001, datetime.datetime(2025, 4, 21, 10, 10, 5, 253078))
2025-04-21 11:10:05,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:11:05,251 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:11:05,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:11:05,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:11:05,252 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:11:05,252 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:11:05,252 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:11:05,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:11:05,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:11:05,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:11:05,255 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:11:05,256 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:11:05,258 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:11:05,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:11:05,262 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:11:05,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:11:05,264 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:11:05,265 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:11:05,266 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:11:05,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:11:05,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:11:05,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:11:05,271 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:11:05,274 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:11:05,276 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:11:05,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:11:05,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:11:05,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:11:05,282 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:11:05,282 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:11:05,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:11:05,295 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:11:05,298 - sqlalchemy.engine.Engine - INFO - [cached since 60.04s ago] (1001, datetime.datetime(2025, 4, 21, 10, 11, 5, 271561))
2025-04-21 11:11:05,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:11:05,302 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:12:05,305 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:12:05,305 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:12:05,306 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 10, 12, 5, 304466))
2025-04-21 11:12:05,307 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:12:05,308 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:12:05,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:12:05,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:12:05,308 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:12:05,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:12:05,308 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:12:05,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:12:05,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:12:05,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:12:05,309 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:12:05,309 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:12:05,310 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:12:05,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:12:05,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:12:05,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:12:05,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:12:05,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:12:05,310 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:12:05,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:12:05,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:12:05,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:12:05,311 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:12:05,311 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:12:05,311 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:12:05,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:12:05,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:12:05,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:12:05,311 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:12:05,311 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:12:05,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:13:05,325 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:13:05,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:13:05,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:13:05,330 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:13:05,332 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:13:05,334 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:13:05,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:13:05,340 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:13:05,344 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 13, 5, 324640))
2025-04-21 11:13:05,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:13:05,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:13:05,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:13:05,351 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:13:05,353 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:13:05,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:13:05,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:13:05,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:13:05,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:13:05,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:13:05,361 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:13:05,363 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:13:05,363 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:13:05,367 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:13:05,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:13:05,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:13:05,372 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:13:05,372 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:13:05,373 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:13:05,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:13:05,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:13:05,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:13:05,373 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:13:05,374 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:13:05,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:14:05,364 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:14:05,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:14:05,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:14:05,370 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:14:05,370 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:14:05,372 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:14:05,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:14:05,376 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:14:05,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:14:05,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:14:05,383 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:14:05,386 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 14, 5, 365077))
2025-04-21 11:14:05,389 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:14:05,391 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:14:05,394 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:14:05,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:14:05,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:14:05,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:14:05,400 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:14:05,400 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:14:05,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:14:05,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:14:20,410 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:14:20,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:14:20,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:14:20,411 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:14:20,411 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:14:20,411 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:14:20,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:14:20,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:14:20,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:14:20,411 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:14:20,411 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:14:20,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:15:05,403 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:15:05,406 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:15:05,410 - sqlalchemy.engine.Engine - INFO - [cached since 300.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 15, 5, 402568))
2025-04-21 11:15:05,415 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:15:05,463 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:15:05,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:15:05,465 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:15:05,467 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:15:05,468 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:15:05,469 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:15:05,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:15:05,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:15:05,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:15:05,474 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:15:05,475 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:15:05,477 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:15:05,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:15:05,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:15:05,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:15:05,479 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:15:05,479 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:15:05,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:15:20,504 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:15:20,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:15:20,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:15:20,506 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:15:20,506 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:15:20,506 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:15:20,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:15:20,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:15:20,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:15:20,508 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:15:20,508 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:15:20,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:16:05,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:16:05,404 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:16:05,405 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 16, 5, 403848))
2025-04-21 11:16:05,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:16:05,541 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:16:05,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:16:05,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:16:05,542 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:16:05,542 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:16:05,542 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:16:05,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:16:05,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:16:05,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:16:05,543 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:16:05,543 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:16:05,543 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:16:05,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:16:05,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:16:05,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:16:05,543 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:16:05,543 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:16:05,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:16:20,557 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:16:20,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:16:20,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:16:20,559 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:16:20,559 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:16:20,562 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:16:20,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:16:20,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:16:20,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:16:20,565 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:16:20,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:16:20,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:17:05,426 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:17:05,426 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:17:05,426 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 17, 5, 425438))
2025-04-21 11:17:05,428 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:17:05,610 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:17:05,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:17:05,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:17:05,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:17:05,611 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:17:05,611 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:17:05,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:17:05,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:17:05,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:17:05,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:17:05,612 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:17:05,613 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:17:05,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:17:05,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:17:05,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:17:05,613 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:17:05,613 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:17:05,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:17:20,632 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:17:20,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:17:20,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:17:20,632 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:17:20,632 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:17:20,632 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:17:20,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:17:20,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:17:20,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:17:20,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:17:20,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:17:20,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:18:05,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:18:05,434 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:18:05,434 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (1001, datetime.datetime(2025, 4, 21, 10, 18, 5, 431067))
2025-04-21 11:18:05,435 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:18:05,572 - root - INFO - 应用程序关闭中...
2025-04-21 11:18:05,573 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:18:05,573 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:18:05,573 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:18:05,574 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:18:05,576 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:18:05,577 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:18:05,577 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:18:05,577 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:18:05,577 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:18:05,577 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:18:05,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:18:05,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:18:05,579 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:18:05,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:18:05,581 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:18:05,581 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 11:18:05,581 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:18:05,581 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:18:05,581 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 11:18:05,581 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:18:05,581 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:18:05,583 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 11:18:05,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:18:05,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:18:05,583 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 11:18:05,583 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:18:05,584 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:18:05,584 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:18:05,584 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:18:05,584 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:18:05,584 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:18:05,585 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:18:06,853 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:18:06,853 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:18:06,916 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:18:06,968 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:18:06,994 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:18:07,019 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:18:07,019 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,020 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:18:07,020 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,022 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:18:07,022 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,022 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:18:07,023 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:18:07,023 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,025 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:18:07,025 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,026 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:18:07,026 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,029 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:18:07,029 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,030 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:18:07,030 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,031 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:18:07,032 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,032 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:18:07,033 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,034 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:18:07,034 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,036 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:18:07,036 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,037 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:18:07,037 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,038 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:18:07,038 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:18:07,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:18:07,039 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:18:07,420 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:18:07,421 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:18:07,422 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:18:07,424 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:18:07,426 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:18:07,426 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:18:07,428 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:18:07,430 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:18:07,432 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:18:07,434 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:18:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:18:07,438 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:18:07,439 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:18:07,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:18:07,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:18:07,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:18:07,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:18:07,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:18:07,447 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:18:07,449 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:18:07,473 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:18:07,474 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:18:07,478 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:18:07,483 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:18:07,484 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:18:07,487 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:18:07,488 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:18:07,489 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:18:07,503 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:18:07,504 - sqlalchemy.engine.Engine - INFO - [generated in 0.00197s] (1, 1)
2025-04-21 11:18:07,510 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:18:07,511 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:18:07,516 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:18:07,519 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:18:07,521 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:18:07,523 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:18:07,528 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:18:07,532 - sqlalchemy.engine.Engine - INFO - [generated in 0.00438s] (1000, 2000, 2001)
2025-04-21 11:18:07,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:18:07,537 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:18:07,537 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:18:07,538 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:18:07,538 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:18:07,538 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:18:07,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:18:07,541 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:18:07,542 - sqlalchemy.engine.Engine - INFO - [generated in 0.00079s] (1001, datetime.datetime(2025, 4, 21, 10, 18, 7, 523675))
2025-04-21 11:18:07,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:19:07,504 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:19:07,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:19:07,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:19:07,506 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:19:07,507 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:19:07,510 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:19:07,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:19:07,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:19:07,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:19:07,517 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:19:07,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:19:07,519 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:19:07,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:19:07,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:19:07,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:19:07,521 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:19:07,521 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:19:07,521 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:19:07,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:19:07,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:19:07,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:19:07,521 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:19:07,521 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:19:07,522 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:19:07,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:19:07,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:19:07,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:19:07,522 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:19:07,522 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:19:07,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:19:07,551 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:19:07,555 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:19:07,557 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 10, 19, 7, 551734))
2025-04-21 11:19:07,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:20:07,570 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:20:07,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:20:07,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:20:07,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:20:07,573 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:20:07,575 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:20:07,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:20:07,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:20:07,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:20:07,582 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:20:07,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:20:07,586 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:20:07,586 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:20:07,589 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:20:07,592 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 20, 7, 571055))
2025-04-21 11:20:07,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:20:07,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:20:07,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:20:07,596 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:20:07,597 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:20:07,597 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:20:07,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:20:07,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:20:07,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:20:07,603 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:20:07,607 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:20:07,609 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:20:07,610 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:20:07,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:20:07,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:20:07,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:20:07,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:20:07,614 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:20:07,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:21:07,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:21:07,630 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:21:07,631 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 21, 7, 624512))
2025-04-21 11:21:07,636 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:21:07,637 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:21:07,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:21:07,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:21:07,639 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:21:07,640 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:21:07,640 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:21:07,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:21:07,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:21:07,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:21:07,642 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:21:07,642 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:21:07,642 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:21:07,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:21:07,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:21:07,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:21:07,643 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:21:07,643 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:21:07,643 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:21:07,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:21:07,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:21:07,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:21:07,644 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:21:07,644 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:21:07,644 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:21:07,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:21:07,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:21:07,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:21:07,645 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:21:07,645 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:21:07,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:22:07,651 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:22:07,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:22:07,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:22:07,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:22:07,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:22:07,652 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:22:07,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:22:07,653 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:22:07,653 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 22, 7, 650927))
2025-04-21 11:22:07,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:22:07,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:22:07,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:22:07,654 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:22:07,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:22:07,654 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:22:07,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:22:07,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:22:07,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:22:07,655 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:22:07,655 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:22:07,655 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:22:07,655 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:22:07,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:22:07,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:22:07,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:22:07,656 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:22:07,656 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:22:07,656 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:22:07,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:22:07,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:22:07,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:22:07,657 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:22:07,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:22:07,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:22:07,776 - root - INFO - 应用程序关闭中...
2025-04-21 11:22:07,776 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:22:07,776 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:22:07,776 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:22:07,776 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:22:07,776 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:22:07,776 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:22:07,776 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:22:07,777 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:22:07,777 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:22:07,777 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:22:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:22:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:22:07,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:22:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:22:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:22:07,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 11:22:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:22:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:22:07,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 11:22:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:22:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:22:07,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 11:22:07,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:22:07,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:22:07,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 11:22:07,779 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:22:07,779 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:22:07,779 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:22:07,779 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:22:07,779 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:22:07,780 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:22:07,781 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:22:09,169 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:22:09,169 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:22:09,227 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:22:09,278 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:22:09,308 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:22:09,332 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:22:09,334 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,335 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:22:09,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,342 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:22:09,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:22:09,347 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:22:09,348 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,350 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:22:09,352 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,357 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:22:09,359 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,362 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:22:09,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:22:09,368 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,373 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:22:09,374 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,377 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:22:09,379 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,385 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:22:09,387 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,389 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:22:09,392 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,397 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:22:09,397 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,399 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:22:09,399 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:09,402 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:22:09,403 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:22:09,429 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:22:09,430 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:22:09,430 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:22:09,430 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:22:09,431 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:22:09,431 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:22:41,038 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:22:41,038 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:22:41,094 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:22:41,140 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:22:41,159 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:22:41,179 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:22:41,179 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,180 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:22:41,180 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,181 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:22:41,181 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,182 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:22:41,182 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:22:41,183 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,184 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:22:41,184 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,186 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:22:41,187 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,187 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:22:41,188 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,190 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:22:41,190 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,191 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:22:41,191 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,192 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:22:41,192 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,192 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:22:41,193 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,194 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:22:41,194 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,195 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:22:41,195 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,197 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:22:41,197 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:22:41,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:22:41,199 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:22:41,218 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:22:41,219 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:22:41,219 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:22:41,220 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:22:41,220 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:22:41,221 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:28:30,871 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:28:30,871 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:28:31,622 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:28:31,622 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:28:31,681 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:28:31,735 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:28:31,765 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:28:31,783 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:28:31,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,784 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:28:31,784 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,785 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:28:31,785 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:28:31,785 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:28:31,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,787 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:28:31,787 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,788 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:28:31,789 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,790 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:28:31,790 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,792 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:28:31,792 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,794 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:28:31,794 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,795 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:28:31,798 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,800 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:28:31,800 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,801 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:28:31,802 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,802 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:28:31,803 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,803 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:28:31,804 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:28:31,807 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:28:31,808 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:28:31,825 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:28:31,826 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:28:31,826 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:28:31,826 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:28:31,826 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:28:31,826 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:30:53,676 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:30:53,677 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:30:53,746 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:30:53,803 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:30:53,822 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:30:53,841 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:30:53,841 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,843 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:30:53,843 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,843 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:30:53,844 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:30:53,844 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:30:53,844 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,846 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:30:53,846 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,847 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:30:53,847 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,851 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:30:53,851 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,852 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:30:53,852 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,853 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:30:53,853 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,854 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:30:53,854 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,855 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:30:53,855 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,856 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:30:53,856 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,857 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:30:53,857 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,859 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:30:53,859 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:30:53,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:30:53,861 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:30:54,230 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:30:54,231 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:30:54,231 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:30:54,231 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:30:54,232 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:30:54,232 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:30:54,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:30:54,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:30:54,233 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:30:54,233 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:30:54,233 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:30:54,233 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:30:54,233 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:30:54,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:30:54,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:30:54,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:30:54,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:30:54,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:30:54,235 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:30:54,235 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:30:54,245 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:30:54,246 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:30:54,246 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:30:54,247 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:30:54,247 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:30:54,247 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:30:54,248 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:30:54,249 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:30:54,259 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:30:54,259 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (1, 1)
2025-04-21 11:30:54,260 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:30:54,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:30:54,261 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:30:54,261 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:30:54,262 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:30:54,262 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:30:54,264 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:30:54,264 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (1000, 2000, 2001)
2025-04-21 11:30:54,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:30:54,278 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:30:54,278 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:30:54,278 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:30:54,278 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:30:54,279 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:30:54,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:30:54,280 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:30:54,280 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1001, datetime.datetime(2025, 4, 21, 10, 30, 54, 262639))
2025-04-21 11:30:54,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:31:54,289 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:31:54,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:31:54,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:31:54,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:31:54,296 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:31:54,298 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:31:54,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:31:54,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:31:54,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:31:54,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:31:54,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:31:54,303 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 10, 31, 54, 289952))
2025-04-21 11:31:54,306 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:31:54,306 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:31:54,306 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:31:54,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:31:54,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:31:54,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:31:54,314 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:31:54,318 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:31:54,320 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:31:54,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:31:54,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:31:54,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:31:54,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:31:54,328 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:31:54,329 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:31:54,331 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:31:54,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:31:54,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:31:54,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:31:54,337 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:31:54,337 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:31:54,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:32:54,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:32:54,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:32:54,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:32:54,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:32:54,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:32:54,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:32:54,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:32:54,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:32:54,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:32:54,358 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:32:54,358 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:32:54,359 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 32, 54, 355717))
2025-04-21 11:32:54,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:32:54,359 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:32:54,359 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:32:54,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:32:54,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:32:54,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:32:54,361 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:32:54,362 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:32:54,362 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:32:54,363 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:32:54,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:32:54,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:32:54,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:32:54,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:32:54,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:32:54,364 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:32:54,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:32:54,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:32:54,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:32:54,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:32:54,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:32:54,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:33:54,377 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:33:54,377 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:33:54,377 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 33, 54, 376114))
2025-04-21 11:33:54,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:33:54,407 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:33:54,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:33:54,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:33:54,408 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:33:54,408 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:33:54,408 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:33:54,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:33:54,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:33:54,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:33:54,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:33:54,409 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:33:54,409 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:33:54,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:33:54,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:33:54,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:33:54,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:33:54,409 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:33:54,409 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:33:54,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:33:54,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:33:54,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:33:54,413 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:33:54,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:33:54,413 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:33:54,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:33:54,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:33:54,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:33:54,413 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:33:54,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:33:54,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:34:54,389 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:34:54,390 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:34:54,391 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 34, 54, 389136))
2025-04-21 11:34:54,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:34:54,437 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:34:54,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:34:54,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:34:54,438 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:34:54,438 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:34:54,438 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:34:54,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:34:54,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:34:54,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:34:54,438 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:34:54,439 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:34:54,439 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:34:54,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:34:54,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:34:54,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:34:54,439 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:34:54,439 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:34:54,439 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:34:54,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:34:54,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:34:54,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:34:54,441 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:34:54,441 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:34:54,441 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:34:54,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:34:54,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:34:54,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:34:54,441 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:34:54,441 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:34:54,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:34:54,559 - root - INFO - 应用程序关闭中...
2025-04-21 11:34:54,559 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:34:54,560 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:34:54,560 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:34:54,560 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:34:54,560 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:34:54,560 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:34:54,561 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:34:54,561 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:34:54,561 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:34:54,561 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:34:54,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:34:54,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:34:54,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:34:54,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:34:54,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:34:54,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 11:34:54,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:34:54,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:34:54,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 11:34:54,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:34:54,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:34:54,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 11:34:54,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:34:54,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:34:54,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 11:34:54,562 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:34:54,562 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:34:54,562 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:34:54,563 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:34:54,563 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:34:54,563 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:34:54,563 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:34:56,046 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:34:56,048 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:34:56,115 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:34:56,161 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:34:56,199 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:34:56,220 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:34:56,221 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,222 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:34:56,223 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,223 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:34:56,223 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:34:56,225 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:34:56,226 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,227 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:34:56,227 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,229 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:34:56,229 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,231 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:34:56,231 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,232 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:34:56,233 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,234 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:34:56,235 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,235 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:34:56,237 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,239 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:34:56,239 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,240 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:34:56,241 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,242 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:34:56,244 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,244 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:34:56,245 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:34:56,246 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:34:56,247 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:34:56,615 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:34:56,615 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:34:56,616 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:34:56,616 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:34:56,617 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:34:56,617 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:34:56,617 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:34:56,617 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:34:56,617 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:34:56,621 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:34:56,621 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:34:56,622 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:34:56,622 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:34:56,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:34:56,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:34:56,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:34:56,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:34:56,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:34:56,624 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:34:56,624 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:34:56,636 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:34:56,637 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:34:56,638 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:34:56,638 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:34:56,639 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:34:56,639 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:34:56,644 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:34:56,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:34:56,661 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:34:56,665 - sqlalchemy.engine.Engine - INFO - [generated in 0.00467s] (1, 1)
2025-04-21 11:34:56,668 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:34:56,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:34:56,674 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:34:56,676 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:34:56,676 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:34:56,677 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:34:56,683 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:34:56,685 - sqlalchemy.engine.Engine - INFO - [generated in 0.00189s] (1000, 2000, 2001)
2025-04-21 11:34:56,686 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:34:56,687 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:34:56,688 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:34:56,688 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:34:56,688 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:34:56,689 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:34:56,690 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:34:56,691 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:34:56,691 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (1001, datetime.datetime(2025, 4, 21, 10, 34, 56, 676727))
2025-04-21 11:34:56,693 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:35:56,643 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:35:56,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:35:56,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:35:56,651 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:35:56,651 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:35:56,651 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:35:56,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:35:56,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:35:56,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:35:56,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:35:56,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:35:56,704 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:35:56,706 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:35:56,708 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 10, 35, 56, 704663))
2025-04-21 11:35:56,709 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:35:56,765 - root - INFO - 应用程序关闭中...
2025-04-21 11:35:56,765 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:35:56,765 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:35:56,765 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:35:56,765 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:35:56,765 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:35:56,765 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:35:56,765 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:35:56,765 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:35:56,766 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:35:56,766 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:35:56,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:35:56,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:35:56,766 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:35:56,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:35:56,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:35:56,767 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 11:35:56,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:35:56,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:35:56,768 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 11:35:56,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:35:56,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:35:56,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 11:35:56,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:35:56,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:35:56,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 11:35:56,773 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:35:56,773 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:35:56,773 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:35:56,773 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:35:56,773 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:35:56,775 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:35:56,775 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:35:58,069 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:35:58,069 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:35:58,132 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:35:58,183 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:35:58,200 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:35:58,215 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:35:58,215 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,216 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:35:58,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,216 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:35:58,217 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:35:58,218 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:35:58,218 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,219 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:35:58,219 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,224 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:35:58,224 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,225 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:35:58,226 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,227 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:35:58,227 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,228 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:35:58,228 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,228 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:35:58,229 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,230 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:35:58,231 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,232 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:35:58,232 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,234 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:35:58,235 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,237 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:35:58,237 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:35:58,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:35:58,239 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:35:58,627 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:35:58,629 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:35:58,631 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:35:58,633 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:35:58,635 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:35:58,636 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:35:58,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:35:58,639 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:35:58,641 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:35:58,643 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:35:58,645 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:35:58,647 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:35:58,649 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:35:58,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:35:58,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:35:58,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:35:58,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:35:58,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:35:58,655 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:35:58,657 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:35:58,682 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:35:58,684 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:35:58,687 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:35:58,691 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:35:58,693 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:35:58,697 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:35:58,698 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:35:58,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:35:58,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:35:58,710 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] (1, 1)
2025-04-21 11:35:58,711 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:35:58,711 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:35:58,712 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:35:58,712 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:35:58,713 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:35:58,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:35:58,715 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:35:58,715 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1000, 2000, 2001)
2025-04-21 11:35:58,716 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:35:58,717 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:35:58,717 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:35:58,718 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:35:58,718 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:35:58,718 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:35:58,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:35:58,720 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:35:58,720 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1001, datetime.datetime(2025, 4, 21, 10, 35, 58, 713727))
2025-04-21 11:35:58,721 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:36:58,653 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:36:58,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:36:58,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:36:58,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:36:58,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:36:58,660 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:36:58,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:36:58,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:36:58,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:36:58,662 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:36:58,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:36:58,662 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:36:58,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:36:58,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:36:58,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:36:58,663 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:36:58,663 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:36:58,663 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:36:58,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:36:58,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:36:58,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:36:58,663 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:36:58,663 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:36:58,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:36:58,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:36:58,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:36:58,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:36:58,664 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:36:58,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:36:58,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:36:58,732 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:36:58,732 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:36:58,732 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 10, 36, 58, 731536))
2025-04-21 11:36:58,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:37:58,729 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:37:58,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:37:58,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:37:58,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:37:58,732 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:37:58,732 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:37:58,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:37:58,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:37:58,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:37:58,734 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:37:58,734 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:37:58,735 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 10, 37, 58, 729961))
2025-04-21 11:37:58,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:37:58,736 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:37:58,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:37:58,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:37:58,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:37:58,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:37:58,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:37:58,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:37:58,741 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:37:58,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:37:58,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:37:58,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:37:58,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:37:58,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:37:58,742 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:37:58,742 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:37:58,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:37:58,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:37:58,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:37:58,743 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:37:58,743 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:37:58,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:38:30,387 - root - INFO - 应用程序关闭中...
2025-04-21 11:38:30,387 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:38:30,387 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:38:30,387 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:38:30,387 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:38:30,387 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:38:30,387 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:38:30,387 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:38:30,387 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:38:30,387 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:38:30,387 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:38:30,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:38:30,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:38:30,388 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:38:30,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:38:30,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:38:30,388 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 11:38:30,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:38:30,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:38:30,388 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 11:38:30,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:38:30,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:38:30,389 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 11:38:30,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:38:30,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:38:30,389 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 11:38:30,389 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:38:30,389 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:38:30,389 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:38:30,389 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:38:30,390 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:38:30,390 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:38:30,390 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:38:31,642 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:38:31,642 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:38:31,705 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:38:31,755 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:38:31,776 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:38:31,794 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:38:31,794 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,797 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:38:31,797 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,798 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:38:31,798 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,799 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:38:31,799 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:38:31,800 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,801 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:38:31,801 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,802 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:38:31,803 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,805 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:38:31,805 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,806 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:38:31,807 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,809 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:38:31,810 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,811 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:38:31,811 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,813 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:38:31,813 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,814 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:38:31,815 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,817 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:38:31,818 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,818 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:38:31,819 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:38:31,830 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:38:31,831 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:38:32,217 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:38:32,217 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:38:32,218 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:38:32,218 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:38:32,218 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:38:32,218 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:38:32,218 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:38:32,218 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:38:32,218 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:38:32,218 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:38:32,218 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:38:32,218 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:38:32,218 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:38:32,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:38:32,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:38:32,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:38:32,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:38:32,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:38:32,221 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:38:32,221 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:38:32,246 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:38:32,247 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:38:32,247 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:38:32,248 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:38:32,249 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:38:32,249 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:38:32,250 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:38:32,250 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:38:32,259 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:38:32,260 - sqlalchemy.engine.Engine - INFO - [generated in 0.00080s] (1, 1)
2025-04-21 11:38:32,261 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:38:32,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:38:32,263 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:38:32,263 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:38:32,263 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:38:32,264 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:38:32,266 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:38:32,266 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (1000, 2000, 2001)
2025-04-21 11:38:32,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:38:32,268 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:38:32,268 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:38:32,269 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:38:32,269 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:38:32,270 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:38:32,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:38:32,271 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:38:32,273 - sqlalchemy.engine.Engine - INFO - [generated in 0.00174s] (1001, datetime.datetime(2025, 4, 21, 10, 38, 32, 264080))
2025-04-21 11:38:32,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:39:32,284 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:39:32,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:39:32,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:39:32,286 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:39:32,287 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:39:32,287 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:39:32,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:39:32,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:39:32,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:39:32,289 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:39:32,289 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:39:32,289 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 10, 39, 32, 285153))
2025-04-21 11:39:32,289 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:39:32,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:39:32,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:39:32,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:39:32,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:39:32,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:39:32,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:39:32,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:39:32,291 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:39:32,291 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:39:32,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:39:32,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:39:32,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:39:32,293 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:39:32,293 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:39:32,293 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:39:32,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:39:32,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:39:32,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:39:32,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:39:32,294 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:39:32,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:39:37,320 - root - INFO - 应用程序关闭中...
2025-04-21 11:39:37,320 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:39:37,320 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:39:37,320 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:39:37,320 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:39:37,320 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:39:37,320 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:39:37,321 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:39:37,321 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:39:37,321 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:39:37,321 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:39:37,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:39:37,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:39:37,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:39:37,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:39:37,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:39:37,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 11:39:37,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:39:37,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:39:37,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 11:39:37,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:39:37,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:39:37,322 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 11:39:37,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:39:37,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:39:37,322 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 11:39:37,322 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:39:37,322 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:39:37,322 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:39:37,322 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:39:37,323 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:39:37,323 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:39:37,323 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:39:38,554 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:39:38,554 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:39:38,615 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:39:38,661 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:39:38,689 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:39:38,714 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:39:38,715 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,716 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:39:38,717 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,718 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:39:38,718 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:39:38,719 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:39:38,720 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,721 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:39:38,721 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,722 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:39:38,723 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,724 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:39:38,724 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,725 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:39:38,726 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,728 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:39:38,728 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,729 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:39:38,729 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,737 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:39:38,740 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,741 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:39:38,742 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,744 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:39:38,744 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,745 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:39:38,747 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:39:38,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:39:38,750 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:39:39,112 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:39:39,112 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:39:39,113 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:39:39,113 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:39:39,113 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:39:39,113 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:39:39,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:39:39,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:39:39,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:39:39,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:39:39,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:39:39,116 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:39:39,117 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:39:39,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:39:39,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:39:39,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:39:39,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:39:39,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:39:39,120 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:39:39,120 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:39:39,133 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:39:39,134 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:39:39,135 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:39:39,135 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:39:39,136 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:39:39,136 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:39:39,136 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:39:39,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:39:39,147 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:39:39,147 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (1, 1)
2025-04-21 11:39:39,148 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:39:39,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:39:39,153 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:39:39,153 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:39:39,154 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:39:39,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:39:39,155 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:39:39,156 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1000, 2000, 2001)
2025-04-21 11:39:39,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:39:39,158 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:39:39,158 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:39:39,158 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:39:39,158 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:39:39,158 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:39:39,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:39:39,159 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:39:39,160 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (1001, datetime.datetime(2025, 4, 21, 10, 39, 39, 154043))
2025-04-21 11:39:39,160 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:40:39,143 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:40:39,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:40:39,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:40:39,145 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:40:39,145 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:40:39,146 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:40:39,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:40:39,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:40:39,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:40:39,149 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:40:39,149 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:40:39,150 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (1001, datetime.datetime(2025, 4, 21, 10, 40, 39, 144606))
2025-04-21 11:40:39,150 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:40:39,151 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:40:39,151 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:40:39,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:40:39,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:40:39,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:40:39,152 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:40:39,152 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:40:39,152 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:40:39,154 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:40:39,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:40:39,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:40:39,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:40:39,162 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:40:39,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:40:39,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:40:39,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:40:39,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:40:39,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:40:39,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:40:39,171 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:40:39,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:41:39,192 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:41:39,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:41:39,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:41:39,193 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:41:39,195 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:41:39,195 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:41:39,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:41:39,195 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:41:39,196 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 10, 41, 39, 192920))
2025-04-21 11:41:39,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:41:39,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:41:39,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:41:39,197 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:41:39,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:41:39,197 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:41:39,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:41:39,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:41:39,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:41:39,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:41:39,198 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:41:39,198 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:41:39,198 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:41:39,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:41:39,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:41:39,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:41:39,198 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:41:39,198 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:41:39,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:41:39,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:41:39,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:41:39,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:41:39,199 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:41:39,199 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:41:39,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:42:39,222 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:42:39,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:42:39,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:42:39,223 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:42:39,224 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:42:39,224 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:42:39,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:42:39,224 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:42:39,225 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 42, 39, 222436))
2025-04-21 11:42:39,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:42:39,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:42:39,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:42:39,226 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:42:39,226 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:42:39,226 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:42:39,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:42:39,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:42:39,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:42:39,227 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:42:39,227 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:42:39,227 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:42:39,228 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:42:39,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:42:39,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:42:39,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:42:39,229 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:42:39,229 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:42:39,229 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:42:39,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:42:39,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:42:39,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:42:39,229 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:42:39,230 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:42:39,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:43:39,241 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:43:39,244 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:43:39,247 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 43, 39, 240544))
2025-04-21 11:43:39,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:43:39,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:43:39,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:43:39,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:43:39,270 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:43:39,270 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:43:39,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:43:39,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:43:39,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:43:39,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:43:39,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:43:39,273 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:43:39,273 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:43:39,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:43:39,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:43:39,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:43:39,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:43:39,273 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:43:39,274 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:43:39,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:43:39,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:43:39,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:43:39,274 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:43:39,274 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:43:39,274 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:43:39,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:43:39,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:43:39,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:43:39,274 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:43:39,274 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:43:39,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:44:39,272 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:44:39,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:44:39,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:44:39,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:44:39,273 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:44:39,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:44:39,279 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:44:39,279 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 44, 39, 272239))
2025-04-21 11:44:39,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:44:39,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:44:54,294 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:44:54,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:44:54,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:44:54,296 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:44:54,299 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:44:54,301 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:44:54,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:44:54,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:44:54,307 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:44:54,309 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:44:54,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:44:54,311 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:44:54,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:44:54,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:44:54,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:44:54,312 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:44:54,312 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:44:54,312 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:44:54,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:44:54,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:44:54,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:44:54,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:44:54,313 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:44:54,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:45:39,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:45:39,279 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:45:39,280 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 45, 39, 279622))
2025-04-21 11:45:39,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:45:39,325 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:45:39,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:45:39,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:45:39,325 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:45:39,325 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:45:39,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:45:54,333 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:45:54,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:45:54,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:45:54,337 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:45:54,337 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:45:54,337 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:45:54,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:45:54,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:45:54,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:45:54,337 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:45:54,337 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:45:54,337 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:45:54,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:45:54,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:45:54,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:45:54,339 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:45:54,339 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:45:54,340 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:45:54,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:45:54,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:45:54,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:45:54,341 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:45:54,341 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:45:54,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:46:39,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:46:39,287 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:46:39,288 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 46, 39, 286874))
2025-04-21 11:46:39,289 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:46:39,393 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:46:39,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:46:39,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:46:39,397 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:46:39,397 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:46:39,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:46:54,415 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:46:54,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:46:54,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:46:54,416 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:46:54,416 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:46:54,416 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:46:54,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:46:54,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:46:54,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:46:54,417 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:46:54,417 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:46:54,418 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:46:54,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:46:54,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:46:54,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:46:54,419 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:46:54,419 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:46:54,419 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:46:54,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:46:54,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:46:54,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:46:54,419 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:46:54,419 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:46:54,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:47:39,298 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:47:39,299 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:47:39,300 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (1001, datetime.datetime(2025, 4, 21, 10, 47, 39, 297307))
2025-04-21 11:47:39,301 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:47:39,422 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:47:39,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:47:39,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:47:39,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:47:39,423 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:47:39,429 - root - INFO - 应用程序关闭中...
2025-04-21 11:47:39,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:47:39,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:47:39,429 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:47:39,429 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:47:39,429 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:47:39,429 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:47:39,432 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:47:39,432 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:47:39,432 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:47:39,433 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:47:39,433 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:47:39,433 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:47:39,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:47:39,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:47:39,433 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:47:39,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:47:39,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:47:39,433 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-21 11:47:39,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:47:39,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:47:39,433 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-21 11:47:39,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:47:39,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:47:39,434 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-21 11:47:39,434 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-21 11:47:39,434 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:47:39,434 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:47:39,434 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:47:39,434 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:47:39,435 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:47:39,435 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:47:39,435 - data.session - INFO - 数据库连接已关闭
2025-04-21 11:47:40,788 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:47:40,789 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:47:40,853 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:47:40,911 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:47:40,942 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:47:40,968 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:47:40,970 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:40,973 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:47:40,977 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:40,979 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:47:40,981 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:40,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:47:40,988 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:47:40,992 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:40,997 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:47:40,997 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:40,998 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:47:40,999 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:41,000 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:47:41,000 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:41,001 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:47:41,002 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:41,003 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:47:41,003 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:41,004 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:47:41,004 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:41,005 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:47:41,009 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:41,013 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:47:41,016 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:41,020 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:47:41,021 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:41,022 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:47:41,022 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:47:41,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:47:41,025 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:47:41,390 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:47:41,392 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:47:41,392 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:47:41,395 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:47:41,398 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:47:41,398 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:47:41,400 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:47:41,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:47:41,404 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:47:41,405 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:47:41,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:47:41,406 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:47:41,409 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:47:41,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:47:41,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:47:41,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:47:41,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:47:41,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:47:41,417 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:47:41,417 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:47:41,418 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:47:41,420 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:47:41,420 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:47:41,421 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:47:41,422 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:47:41,422 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:47:41,423 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:47:41,423 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:47:41,434 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:47:41,435 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] (1, 1)
2025-04-21 11:47:41,436 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:47:41,437 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:47:41,438 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:47:41,439 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:47:41,439 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:47:41,442 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:47:41,444 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:47:41,446 - sqlalchemy.engine.Engine - INFO - [generated in 0.00218s] (1000, 2000, 2001)
2025-04-21 11:47:41,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:47:41,470 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:47:41,470 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:47:41,471 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:47:41,471 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:47:41,471 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:47:41,472 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:47:41,473 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:47:41,473 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1001, datetime.datetime(2025, 4, 21, 10, 47, 41, 439816))
2025-04-21 11:47:41,476 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:47:46,014 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:47:46,017 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:47:46,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:47:46,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:47:46,026 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:47:46,027 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:47:46,027 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:47:46,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:47:46,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:47:46,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:47:46,029 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:47:46,030 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:47:46,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:47:46,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:47:46,030 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:47:46,030 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:47:46,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:47:46,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:51:35,658 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:51:35,658 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:51:36,442 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 11:51:36,443 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 11:51:36,510 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 11:51:36,561 - data.session - INFO - 正在初始化数据库...
2025-04-21 11:51:36,586 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 11:51:36,611 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:51:36,612 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,613 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:51:36,614 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,614 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:51:36,614 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,614 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:36,614 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 11:51:36,615 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,616 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 11:51:36,616 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,617 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 11:51:36,617 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,618 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 11:51:36,619 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,619 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 11:51:36,620 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,621 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 11:51:36,621 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,621 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 11:51:36,621 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,622 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 11:51:36,622 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,623 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 11:51:36,623 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,624 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 11:51:36,624 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,625 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 11:51:36,627 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 11:51:36,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:36,629 - data.session - INFO - 数据库表初始化完成
2025-04-21 11:51:36,991 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 11:51:36,991 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 11:51:36,992 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 11:51:36,993 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 11:51:36,993 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 11:51:36,993 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 11:51:36,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 11:51:36,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 11:51:36,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 11:51:36,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 11:51:36,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:51:36,994 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 11:51:36,995 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 11:51:36,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:51:36,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:51:36,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:51:36,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:51:36,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:51:36,996 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 11:51:36,996 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 11:51:36,998 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:51:36,999 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 11:51:36,999 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:51:37,002 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 11:51:37,002 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:51:37,002 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 11:51:37,003 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 11:51:37,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:37,016 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 11:51:37,019 - sqlalchemy.engine.Engine - INFO - [generated in 0.00301s] (1, 1)
2025-04-21 11:51:37,020 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 11:51:37,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:37,021 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 11:51:37,021 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 11:51:37,021 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 11:51:37,022 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:37,024 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 11:51:37,024 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1000, 2000, 2001)
2025-04-21 11:51:37,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:37,027 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 11:51:37,027 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 11:51:37,027 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 11:51:37,028 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 11:51:37,028 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 11:51:37,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:37,031 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:51:37,032 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (1001, datetime.datetime(2025, 4, 21, 10, 51, 37, 22277))
2025-04-21 11:51:37,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,579 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 11:51:41,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,586 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:51:41,586 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:51:41,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,588 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,588 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:51:41,589 - sqlalchemy.engine.Engine - INFO - [cached since 0.002878s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:51:41,589 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,590 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 11:51:41,590 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,592 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 11:51:41,593 - sqlalchemy.engine.Engine - INFO - [generated in 0.00103s] (1, datetime.datetime(2025, 4, 21, 11, 51, 41, 592470), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 11:51:41,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,600 - services.task_edit_service - INFO - 更新任务定义状态为运行中: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 11:51:41,600 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,601 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:51:41,601 - sqlalchemy.engine.Engine - INFO - [cached since 0.01506s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:51:41,603 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 11:51:41,603 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('7e0c999a-323f-48d2-8e48-61b2208de8d0', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 2, datetime.datetime(2025, 4, 21, 11, 51, 41, 601533), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (121 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 11, 51, 41, 590466), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 11, 51, 41, 603540), datetime.datetime(2025, 4, 21, 11, 51, 41, 603540), 0)
2025-04-21 11:51:41,604 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:51:41,612 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('7e0c999a-323f-48d2-8e48-61b2208de8d0',)
2025-04-21 11:51:41,613 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,614 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7e0c999a-323f-48d2-8e48-61b2208de8d0 (优先级 1) 添加到队列 0
2025-04-21 11:51:41,614 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0351秒
2025-04-21 11:51:41,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 7e0c999a-323f-48d2-8e48-61b2208de8d0, 优先级: 1
2025-04-21 11:51:41,698 - services.execution.task_executor - DEBUG - 任务 7e0c999a-323f-48d2-8e48-61b2208de8d0 设置超时时间: 3600秒
2025-04-21 11:51:41,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,702 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:51:41,703 - sqlalchemy.engine.Engine - INFO - [cached since 0.0913s ago] ('7e0c999a-323f-48d2-8e48-61b2208de8d0',)
2025-04-21 11:51:41,705 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:51:41,706 - sqlalchemy.engine.Engine - INFO - [cached since 0.1206s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:51:41,708 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:51:41,712 - sqlalchemy.engine.Engine - INFO - [generated in 0.00382s] (datetime.datetime(2025, 4, 21, 11, 51, 41, 708356), datetime.datetime(2025, 4, 21, 11, 51, 41, 708356), '7e0c999a-323f-48d2-8e48-61b2208de8d0')
2025-04-21 11:51:41,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,727 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:51:41,729 - sqlalchemy.engine.Engine - INFO - [generated in 0.00182s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 11, 51, 41, 727456), '7e0c999a-323f-48d2-8e48-61b2208de8d0')
2025-04-21 11:51:41,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,737 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 11:51:41,739 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,741 - 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-21 11:51:41,742 - sqlalchemy.engine.Engine - INFO - [generated in 0.00104s] ('a66315e3-9433-4f94-bf9d-a5858c6b4441', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '7e0c999a-323f-48d2-8e48-61b2208de8d0', datetime.datetime(2025, 4, 21, 11, 51, 41, 738624), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 51, 41, 741438), datetime.datetime(2025, 4, 21, 11, 51, 41, 741438), 0)
2025-04-21 11:51:41,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:51:41,760 - sqlalchemy.engine.Engine - INFO - [generated in 0.00412s] ('a66315e3-9433-4f94-bf9d-a5858c6b4441',)
2025-04-21 11:51:41,762 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 11:51:41,763 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 11:51:41,766 - 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-21 11:51:41,767 - sqlalchemy.engine.Engine - INFO - [generated in 0.00110s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 51, 41, 766450), 'a66315e3-9433-4f94-bf9d-a5858c6b4441')
2025-04-21 11:51:41,768 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,775 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 11:51:41,776 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 11:51:41,778 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983
2025-04-21 11:51:41,779 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,781 - 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-21 11:51:41,784 - sqlalchemy.engine.Engine - INFO - [cached since 0.04289s ago] ('d0c503a4-0087-4e53-8234-42275bb279c9', 'b1', '1', '', '{}', '{}', '{}', 'SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '7e0c999a-323f-48d2-8e48-61b2208de8d0', datetime.datetime(2025, 4, 21, 11, 51, 41, 779487), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 51, 41, 781772), datetime.datetime(2025, 4, 21, 11, 51, 41, 781772), 0)
2025-04-21 11:51:41,785 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,795 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: d0c503a4-0087-4e53-8234-42275bb279c9
2025-04-21 11:51:41,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,798 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:51:41,802 - sqlalchemy.engine.Engine - INFO - [cached since 0.04623s ago] ('d0c503a4-0087-4e53-8234-42275bb279c9',)
2025-04-21 11:51:41,807 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 11:51:41,808 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 11:51:41,809 - 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-21 11:51:41,811 - sqlalchemy.engine.Engine - INFO - [cached since 0.04463s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 51, 41, 809436), 'd0c503a4-0087-4e53-8234-42275bb279c9')
2025-04-21 11:51:41,816 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,829 - services.execution.block_executor - ERROR - 未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器
2025-04-21 11:51:41,831 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,838 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:51:41,842 - sqlalchemy.engine.Engine - INFO - [cached since 0.08647s ago] ('d0c503a4-0087-4e53-8234-42275bb279c9',)
2025-04-21 11:51:41,852 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 11:51:41,857 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 11:51:41,858 - 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-21 11:51:41,861 - sqlalchemy.engine.Engine - INFO - [generated in 0.00265s] (datetime.datetime(2025, 4, 21, 11, 51, 41, 858457), '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', 2000, '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', datetime.datetime(2025, 4, 21, 11, 51, 41, 858457), 'd0c503a4-0087-4e53-8234-42275bb279c9')
2025-04-21 11:51:41,881 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,909 - 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-21 11:51:41,910 - sqlalchemy.engine.Engine - INFO - [generated in 0.00114s] ('011926b4-7f80-4d37-80be-77d8d9f3d040', 3, '{"success": false, "message": "未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器", "block_id": 1}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '7e0c999a-323f-48d2-8e48-61b2208de8d0', datetime.datetime(2025, 4, 21, 11, 51, 41, 909437), datetime.datetime(2025, 4, 21, 11, 51, 41, 909437), 0)
2025-04-21 11:51:41,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,922 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:51:41,926 - sqlalchemy.engine.Engine - INFO - [cached since 0.17s ago] ('a66315e3-9433-4f94-bf9d-a5858c6b4441',)
2025-04-21 11:51:41,927 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 11:51:41,927 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 11:51:41,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-21 11:51:41,931 - sqlalchemy.engine.Engine - INFO - [cached since 0.07331s ago] (datetime.datetime(2025, 4, 21, 11, 51, 41, 928494), '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', 2000, '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', datetime.datetime(2025, 4, 21, 11, 51, 41, 928494), 'a66315e3-9433-4f94-bf9d-a5858c6b4441')
2025-04-21 11:51:41,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:51:41,944 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:51:41,945 - sqlalchemy.engine.Engine - INFO - [generated in 0.00103s] (datetime.datetime(2025, 4, 21, 11, 51, 41, 940789), '未找到块类型 SubTask::a0734d2a-c7a8-4ae9-99ce-c6cd82355983 的处理器', 2000, 216, datetime.datetime(2025, 4, 21, 11, 51, 41, 944356), '7e0c999a-323f-48d2-8e48-61b2208de8d0')
2025-04-21 11:51:41,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:51:41,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 7e0c999a-323f-48d2-8e48-61b2208de8d0, 结果: False
2025-04-21 11:52:02,671 - root - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-21 11:52:02,673 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:02,673 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:02,674 - sqlalchemy.engine.Engine - INFO - [cached since 21.09s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:02,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:02,677 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:02,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:02,678 - sqlalchemy.engine.Engine - INFO - [cached since 21.09s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:02,679 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 11:52:02,679 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (3, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (83 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 21, 11, 52, 2, 679327), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 11:52:02,680 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:02,693 - root - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0218秒
2025-04-21 11:52:04,538 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 11:52:04,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,539 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:04,539 - sqlalchemy.engine.Engine - INFO - [cached since 22.95s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:04,540 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:04,541 - sqlalchemy.engine.Engine - INFO - [cached since 22.96s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:04,542 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,543 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 11:52:04,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,543 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 11:52:04,544 - sqlalchemy.engine.Engine - INFO - [cached since 22.95s ago] (1, datetime.datetime(2025, 4, 21, 11, 52, 4, 543260), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 11:52:04,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,552 - services.task_edit_service - INFO - 更新任务定义状态为运行中: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 11:52:04,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,553 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:04,556 - sqlalchemy.engine.Engine - INFO - [cached since 22.97s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:04,557 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 11:52:04,557 - sqlalchemy.engine.Engine - INFO - [cached since 22.95s ago] ('7d8dc0a9-ed5f-43d9-8825-161a007cc462', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 3, datetime.datetime(2025, 4, 21, 11, 52, 4, 557427), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (83 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 11, 52, 4, 543260), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 11, 52, 4, 557427), datetime.datetime(2025, 4, 21, 11, 52, 4, 557427), 0)
2025-04-21 11:52:04,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,569 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:04,569 - sqlalchemy.engine.Engine - INFO - [cached since 22.96s ago] ('7d8dc0a9-ed5f-43d9-8825-161a007cc462',)
2025-04-21 11:52:04,570 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,571 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7d8dc0a9-ed5f-43d9-8825-161a007cc462 (优先级 1) 添加到队列 0
2025-04-21 11:52:04,571 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0330秒
2025-04-21 11:52:04,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 7d8dc0a9-ed5f-43d9-8825-161a007cc462, 优先级: 1
2025-04-21 11:52:04,611 - services.execution.task_executor - DEBUG - 任务 7d8dc0a9-ed5f-43d9-8825-161a007cc462 设置超时时间: 3600秒
2025-04-21 11:52:04,614 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,615 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:04,616 - sqlalchemy.engine.Engine - INFO - [cached since 23s ago] ('7d8dc0a9-ed5f-43d9-8825-161a007cc462',)
2025-04-21 11:52:04,619 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:04,619 - sqlalchemy.engine.Engine - INFO - [cached since 23.03s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:04,622 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:04,627 - sqlalchemy.engine.Engine - INFO - [cached since 22.92s ago] (datetime.datetime(2025, 4, 21, 11, 52, 4, 622018), datetime.datetime(2025, 4, 21, 11, 52, 4, 622018), '7d8dc0a9-ed5f-43d9-8825-161a007cc462')
2025-04-21 11:52:04,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,639 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,643 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:04,643 - sqlalchemy.engine.Engine - INFO - [cached since 22.92s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 11, 52, 4, 643001), '7d8dc0a9-ed5f-43d9-8825-161a007cc462')
2025-04-21 11:52:04,643 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,649 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 11:52:04,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,655 - 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-21 11:52:04,658 - sqlalchemy.engine.Engine - INFO - [cached since 22.92s ago] ('9cb0b923-3aaf-4932-b51d-97c3e7d833b4', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '7d8dc0a9-ed5f-43d9-8825-161a007cc462', datetime.datetime(2025, 4, 21, 11, 52, 4, 650960), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 52, 4, 655004), datetime.datetime(2025, 4, 21, 11, 52, 4, 655004), 0)
2025-04-21 11:52:04,660 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,668 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:52:04,672 - sqlalchemy.engine.Engine - INFO - [cached since 22.92s ago] ('9cb0b923-3aaf-4932-b51d-97c3e7d833b4',)
2025-04-21 11:52:04,673 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 11:52:04,675 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 11:52:04,678 - 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-21 11:52:04,679 - sqlalchemy.engine.Engine - INFO - [cached since 22.91s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 52, 4, 678505), '9cb0b923-3aaf-4932-b51d-97c3e7d833b4')
2025-04-21 11:52:04,680 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,687 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 11:52:04,688 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 11:52:04,688 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTask
2025-04-21 11:52:04,689 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,689 - 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-21 11:52:04,690 - sqlalchemy.engine.Engine - INFO - [cached since 22.95s ago] ('63f84199-7e41-4036-8ce6-62970d458037', 'b1', '1', '', '{}', '{}', '{}', 'SubTask', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '7d8dc0a9-ed5f-43d9-8825-161a007cc462', datetime.datetime(2025, 4, 21, 11, 52, 4, 688493), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 52, 4, 689492), datetime.datetime(2025, 4, 21, 11, 52, 4, 689492), 0)
2025-04-21 11:52:04,691 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,699 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 63f84199-7e41-4036-8ce6-62970d458037
2025-04-21 11:52:04,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:52:04,700 - sqlalchemy.engine.Engine - INFO - [cached since 22.95s ago] ('63f84199-7e41-4036-8ce6-62970d458037',)
2025-04-21 11:52:04,701 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 11:52:04,701 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 11:52:04,702 - 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-21 11:52:04,702 - sqlalchemy.engine.Engine - INFO - [cached since 22.94s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 52, 4, 702862), '63f84199-7e41-4036-8ce6-62970d458037')
2025-04-21 11:52:04,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,709 - services.execution.block_executor - ERROR - 未找到块类型 SubTask 的处理器
2025-04-21 11:52:04,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,710 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:52:04,710 - sqlalchemy.engine.Engine - INFO - [cached since 22.95s ago] ('63f84199-7e41-4036-8ce6-62970d458037',)
2025-04-21 11:52:04,711 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 11:52:04,712 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 11:52:04,712 - 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-21 11:52:04,712 - sqlalchemy.engine.Engine - INFO - [cached since 22.85s ago] (datetime.datetime(2025, 4, 21, 11, 52, 4, 712373), '未找到块类型 SubTask 的处理器', 2000, '未找到块类型 SubTask 的处理器', datetime.datetime(2025, 4, 21, 11, 52, 4, 712373), '63f84199-7e41-4036-8ce6-62970d458037')
2025-04-21 11:52:04,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,720 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,723 - 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-21 11:52:04,725 - sqlalchemy.engine.Engine - INFO - [cached since 22.82s ago] ('ec370859-aa0f-4629-8545-c093d4e76b4d', 3, '{"success": false, "message": "未找到块类型 SubTask 的处理器", "block_id": 1}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '7d8dc0a9-ed5f-43d9-8825-161a007cc462', datetime.datetime(2025, 4, 21, 11, 52, 4, 723375), datetime.datetime(2025, 4, 21, 11, 52, 4, 723375), 0)
2025-04-21 11:52:04,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,733 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:52:04,733 - sqlalchemy.engine.Engine - INFO - [cached since 22.98s ago] ('9cb0b923-3aaf-4932-b51d-97c3e7d833b4',)
2025-04-21 11:52:04,734 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 11:52:04,735 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 11:52:04,735 - 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-21 11:52:04,735 - sqlalchemy.engine.Engine - INFO - [cached since 22.88s ago] (datetime.datetime(2025, 4, 21, 11, 52, 4, 735402), '未找到块类型 SubTask 的处理器', 2000, '未找到块类型 SubTask 的处理器', datetime.datetime(2025, 4, 21, 11, 52, 4, 735402), '9cb0b923-3aaf-4932-b51d-97c3e7d833b4')
2025-04-21 11:52:04,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,742 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:04,743 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:04,743 - sqlalchemy.engine.Engine - INFO - [cached since 22.8s ago] (datetime.datetime(2025, 4, 21, 11, 52, 4, 742410), '未找到块类型 SubTask 的处理器', 2000, 103, datetime.datetime(2025, 4, 21, 11, 52, 4, 743402), '7d8dc0a9-ed5f-43d9-8825-161a007cc462')
2025-04-21 11:52:04,744 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:04,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 7d8dc0a9-ed5f-43d9-8825-161a007cc462, 结果: False
2025-04-21 11:52:31,540 - root - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-21 11:52:31,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:31,542 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:31,543 - sqlalchemy.engine.Engine - INFO - [cached since 49.96s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:31,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:31,546 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:31,547 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:31,547 - sqlalchemy.engine.Engine - INFO - [cached since 49.96s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:31,548 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 11:52:31,548 - sqlalchemy.engine.Engine - INFO - [cached since 28.87s ago] (4, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 21, 11, 52, 31, 548664), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 11:52:31,548 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:31,564 - root - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0243秒
2025-04-21 11:52:37,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:37,030 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:52:37,030 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 21, 10, 52, 37, 28982))
2025-04-21 11:52:37,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,327 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 11:52:39,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,329 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:39,329 - sqlalchemy.engine.Engine - INFO - [cached since 57.74s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:39,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:39,332 - sqlalchemy.engine.Engine - INFO - [cached since 57.75s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:39,332 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,333 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 11:52:39,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,333 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 11:52:39,334 - sqlalchemy.engine.Engine - INFO - [cached since 57.74s ago] (1, datetime.datetime(2025, 4, 21, 11, 52, 39, 333437), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 11:52:39,334 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,350 - services.task_edit_service - INFO - 更新任务定义状态为运行中: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 11:52:39,351 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,351 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:39,351 - sqlalchemy.engine.Engine - INFO - [cached since 57.77s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:39,352 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 11:52:39,353 - sqlalchemy.engine.Engine - INFO - [cached since 57.75s ago] ('7016484a-68b6-40d2-9907-c11b361bffce', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 11, 52, 39, 352620), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 11, 52, 39, 333437), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 11, 52, 39, 352620), datetime.datetime(2025, 4, 21, 11, 52, 39, 352620), 0)
2025-04-21 11:52:39,353 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,363 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,363 - sqlalchemy.engine.Engine - INFO - [cached since 57.75s ago] ('7016484a-68b6-40d2-9907-c11b361bffce',)
2025-04-21 11:52:39,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,365 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7016484a-68b6-40d2-9907-c11b361bffce (优先级 1) 添加到队列 0
2025-04-21 11:52:39,365 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0376秒
2025-04-21 11:52:39,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 7016484a-68b6-40d2-9907-c11b361bffce, 优先级: 1
2025-04-21 11:52:39,462 - services.execution.task_executor - DEBUG - 任务 7016484a-68b6-40d2-9907-c11b361bffce 设置超时时间: 3600秒
2025-04-21 11:52:39,462 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,463 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,463 - sqlalchemy.engine.Engine - INFO - [cached since 57.85s ago] ('7016484a-68b6-40d2-9907-c11b361bffce',)
2025-04-21 11:52:39,464 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:39,464 - sqlalchemy.engine.Engine - INFO - [cached since 57.88s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 11:52:39,465 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,465 - sqlalchemy.engine.Engine - INFO - [cached since 57.76s ago] (datetime.datetime(2025, 4, 21, 11, 52, 39, 465964), datetime.datetime(2025, 4, 21, 11, 52, 39, 465964), '7016484a-68b6-40d2-9907-c11b361bffce')
2025-04-21 11:52:39,466 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,475 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,476 - sqlalchemy.engine.Engine - INFO - [cached since 57.75s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 11, 52, 39, 474931), '7016484a-68b6-40d2-9907-c11b361bffce')
2025-04-21 11:52:39,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,486 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 11:52:39,487 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,488 - 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-21 11:52:39,488 - sqlalchemy.engine.Engine - INFO - [cached since 57.75s ago] ('24e290c0-a158-4bfc-9429-ed96be8b5889', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '7016484a-68b6-40d2-9907-c11b361bffce', datetime.datetime(2025, 4, 21, 11, 52, 39, 487966), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 52, 39, 488967), datetime.datetime(2025, 4, 21, 11, 52, 39, 488967), 0)
2025-04-21 11:52:39,489 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,497 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:52:39,497 - sqlalchemy.engine.Engine - INFO - [cached since 57.74s ago] ('24e290c0-a158-4bfc-9429-ed96be8b5889',)
2025-04-21 11:52:39,498 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 11:52:39,498 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 11:52:39,499 - 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-21 11:52:39,499 - sqlalchemy.engine.Engine - INFO - [cached since 57.73s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 52, 39, 499967), '24e290c0-a158-4bfc-9429-ed96be8b5889')
2025-04-21 11:52:39,500 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,506 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 11:52:39,507 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 11:52:39,507 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 11:52:39,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,510 - 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-21 11:52:39,511 - sqlalchemy.engine.Engine - INFO - [cached since 57.77s ago] ('5f6b7780-3060-4805-873e-27c82a51a34d', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '7016484a-68b6-40d2-9907-c11b361bffce', datetime.datetime(2025, 4, 21, 11, 52, 39, 507840), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 52, 39, 510856), datetime.datetime(2025, 4, 21, 11, 52, 39, 510856), 0)
2025-04-21 11:52:39,512 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,518 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 5f6b7780-3060-4805-873e-27c82a51a34d
2025-04-21 11:52:39,519 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,521 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:52:39,521 - sqlalchemy.engine.Engine - INFO - [cached since 57.77s ago] ('5f6b7780-3060-4805-873e-27c82a51a34d',)
2025-04-21 11:52:39,522 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 11:52:39,522 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 11:52:39,523 - 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-21 11:52:39,523 - sqlalchemy.engine.Engine - INFO - [cached since 57.76s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 52, 39, 523926), '5f6b7780-3060-4805-873e-27c82a51a34d')
2025-04-21 11:52:39,524 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,530 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 11:52:39,531 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 11:52:39,531 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,531 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,531 - sqlalchemy.engine.Engine - INFO - [cached since 57.92s ago] ('7016484a-68b6-40d2-9907-c11b361bffce',)
2025-04-21 11:52:39,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,533 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:39,533 - sqlalchemy.engine.Engine - INFO - [cached since 57.95s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 11:52:39,533 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,534 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,534 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:39,535 - sqlalchemy.engine.Engine - INFO - [cached since 57.95s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 11:52:39,535 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 11:52:39,536 - sqlalchemy.engine.Engine - INFO - [cached since 57.93s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 11, 52, 39, 535346), None, None, 1002, None, None, None, '7016484a-68b6-40d2-9907-c11b361bffce', '7016484a-68b6-40d2-9907-c11b361bffce', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 11, 52, 39, 534347), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 11, 52, 39, 535346), datetime.datetime(2025, 4, 21, 11, 52, 39, 535346), 0)
2025-04-21 11:52:39,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,544 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,544 - sqlalchemy.engine.Engine - INFO - [cached since 57.93s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:52:39,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,546 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 faddc40b-6375-4804-a2b5-ed94132ac929 (优先级 1) 添加到队列 0
2025-04-21 11:52:39,546 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,547 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,547 - sqlalchemy.engine.Engine - INFO - [cached since 57.93s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:52:39,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: faddc40b-6375-4804-a2b5-ed94132ac929, 优先级: 1
2025-04-21 11:52:39,650 - services.execution.task_executor - DEBUG - 任务 faddc40b-6375-4804-a2b5-ed94132ac929 设置超时时间: 3600秒
2025-04-21 11:52:39,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,652 - sqlalchemy.engine.Engine - INFO - [cached since 58.04s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:52:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 11:52:39,654 - sqlalchemy.engine.Engine - INFO - [cached since 58.07s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 11:52:39,655 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,656 - sqlalchemy.engine.Engine - INFO - [cached since 57.95s ago] (datetime.datetime(2025, 4, 21, 11, 52, 39, 655077), datetime.datetime(2025, 4, 21, 11, 52, 39, 655077), 'faddc40b-6375-4804-a2b5-ed94132ac929')
2025-04-21 11:52:39,656 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,664 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,665 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:39,666 - sqlalchemy.engine.Engine - INFO - [cached since 57.94s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 11, 52, 39, 665240), 'faddc40b-6375-4804-a2b5-ed94132ac929')
2025-04-21 11:52:39,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,673 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 11:52:39,674 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,674 - 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-21 11:52:39,674 - sqlalchemy.engine.Engine - INFO - [cached since 57.93s ago] ('dd0c649a-1db4-4850-934a-b69d922e3d9a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'faddc40b-6375-4804-a2b5-ed94132ac929', datetime.datetime(2025, 4, 21, 11, 52, 39, 673238), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 52, 39, 674234), datetime.datetime(2025, 4, 21, 11, 52, 39, 674234), 0)
2025-04-21 11:52:39,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,681 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,683 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 11:52:39,684 - sqlalchemy.engine.Engine - INFO - [cached since 57.93s ago] ('dd0c649a-1db4-4850-934a-b69d922e3d9a',)
2025-04-21 11:52:39,684 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 11:52:39,685 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 11:52:39,685 - 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-21 11:52:39,685 - sqlalchemy.engine.Engine - INFO - [cached since 57.92s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 52, 39, 685120), 'dd0c649a-1db4-4850-934a-b69d922e3d9a')
2025-04-21 11:52:39,686 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,692 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 11:52:39,692 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 11:52:39,692 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 11:52:39,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,693 - 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-21 11:52:39,693 - sqlalchemy.engine.Engine - INFO - [cached since 57.95s ago] ('247c549e-76bb-45a1-9e57-1352c55c9a46', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'faddc40b-6375-4804-a2b5-ed94132ac929', datetime.datetime(2025, 4, 21, 11, 52, 39, 692607), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 11, 52, 39, 693607), datetime.datetime(2025, 4, 21, 11, 52, 39, 693607), 0)
2025-04-21 11:52:39,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,700 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 247c549e-76bb-45a1-9e57-1352c55c9a46
2025-04-21 11:52:39,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:39,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-21 11:52:39,701 - sqlalchemy.engine.Engine - INFO - [cached since 57.95s ago] ('247c549e-76bb-45a1-9e57-1352c55c9a46',)
2025-04-21 11:52:39,701 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 11:52:39,702 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 11:52:39,702 - 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-21 11:52:39,702 - sqlalchemy.engine.Engine - INFO - [cached since 57.94s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 11, 52, 39, 702576), '247c549e-76bb-45a1-9e57-1352c55c9a46')
2025-04-21 11:52:39,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:39,709 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 11:52:42,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:42,570 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:42,574 - sqlalchemy.engine.Engine - INFO - [cached since 60.96s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:52:42,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:45,590 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:45,591 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:45,591 - sqlalchemy.engine.Engine - INFO - [cached since 63.98s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:52:45,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:48,615 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:48,619 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:48,620 - sqlalchemy.engine.Engine - INFO - [cached since 67.01s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:52:48,622 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:51,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:51,629 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:51,630 - sqlalchemy.engine.Engine - INFO - [cached since 70.02s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:52:51,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:52,003 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:52:52,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:52:52,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:52:52,012 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:52:52,013 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:52:52,015 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:52:52,019 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:52:52,019 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:52:52,019 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:52:52,019 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:52:52,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:52:52,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:52:54,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:54,624 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:54,625 - sqlalchemy.engine.Engine - INFO - [cached since 73.01s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:52:54,626 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:52:57,608 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:52:57,608 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:52:57,616 - sqlalchemy.engine.Engine - INFO - [cached since 76s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:52:57,617 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:00,622 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:00,624 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:00,625 - sqlalchemy.engine.Engine - INFO - [cached since 79.01s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:00,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:03,624 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:03,627 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:03,630 - sqlalchemy.engine.Engine - INFO - [cached since 82.02s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:03,632 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:06,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:06,619 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:06,619 - sqlalchemy.engine.Engine - INFO - [cached since 85.01s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:06,621 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:07,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:53:07,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:53:07,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:53:07,041 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:53:07,041 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:53:07,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:53:09,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:09,609 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:09,610 - sqlalchemy.engine.Engine - INFO - [cached since 88s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:09,611 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:12,635 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:12,637 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:12,637 - sqlalchemy.engine.Engine - INFO - [cached since 91.03s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:12,640 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:15,664 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:15,666 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:15,666 - sqlalchemy.engine.Engine - INFO - [cached since 94.05s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:15,668 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:18,689 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:18,689 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:18,689 - sqlalchemy.engine.Engine - INFO - [cached since 97.08s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:18,692 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:21,708 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:21,708 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:21,709 - sqlalchemy.engine.Engine - INFO - [cached since 100.1s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:21,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:24,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:24,725 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:24,726 - sqlalchemy.engine.Engine - INFO - [cached since 103.1s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:24,727 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:27,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:27,754 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:27,754 - sqlalchemy.engine.Engine - INFO - [cached since 106.1s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:27,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:30,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:30,764 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:30,764 - sqlalchemy.engine.Engine - INFO - [cached since 109.2s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:30,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:33,789 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:33,789 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:33,789 - sqlalchemy.engine.Engine - INFO - [cached since 112.2s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:33,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:36,792 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:36,793 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:36,793 - sqlalchemy.engine.Engine - INFO - [cached since 115.2s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:36,795 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:37,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:37,040 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:53:37,041 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 10, 53, 37, 39995))
2025-04-21 11:53:37,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:39,822 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:39,823 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:39,824 - sqlalchemy.engine.Engine - INFO - [cached since 118.2s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:39,825 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:42,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:42,840 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:42,841 - sqlalchemy.engine.Engine - INFO - [cached since 121.2s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:42,843 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:45,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:45,862 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:45,863 - sqlalchemy.engine.Engine - INFO - [cached since 124.3s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:45,870 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:48,885 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:48,886 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:48,886 - sqlalchemy.engine.Engine - INFO - [cached since 127.3s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:48,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:51,898 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:53:51,901 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 11:53:51,902 - sqlalchemy.engine.Engine - INFO - [cached since 130.3s ago] ('faddc40b-6375-4804-a2b5-ed94132ac929',)
2025-04-21 11:53:51,904 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:53:52,039 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:53:52,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:53:52,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:53:52,040 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:53:52,041 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:53:52,041 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:53:52,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:53:52,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:53:52,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:53:52,065 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:53:52,065 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:53:52,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:53:52,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:53:52,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:53:52,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:53:52,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:53:52,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:53:52,066 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:53:52,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:53:52,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:53:52,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:53:52,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:53:52,067 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:53:52,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:54:07,076 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:54:07,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:54:07,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:54:07,076 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:54:07,076 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:54:07,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:54:37,066 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:54:37,068 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:54:37,072 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 10, 54, 37, 65675))
2025-04-21 11:54:37,077 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:54:52,084 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:54:52,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:54:52,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:54:52,085 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:54:52,085 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:54:52,087 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:54:52,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:54:52,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:54:52,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:54:52,093 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:54:52,094 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:54:52,096 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:54:52,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:54:52,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:54:52,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:54:52,102 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:54:52,104 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:54:52,106 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:54:52,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:54:52,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:54:52,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:54:52,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:54:52,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:54:52,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:55:07,134 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 11:55:07,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:55:07,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:55:07,135 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:55:07,136 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 11:55:07,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 11:55:37,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 11:55:37,063 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 11:55:37,063 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (1001, datetime.datetime(2025, 4, 21, 10, 55, 37, 61361))
2025-04-21 11:55:37,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 11:55:52,177 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 11:55:52,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:55:52,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:55:52,179 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 11:55:52,179 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 11:55:52,179 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 11:55:52,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 11:55:52,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:55:52,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:55:52,181 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 11:55:52,181 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 11:55:52,181 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 11:55:52,181 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 11:55:52,181 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:55:52,181 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:55:52,181 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 11:55:52,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 11:55:52,182 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 11:55:52,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 11:55:52,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:55:52,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:55:52,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 11:55:52,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 11:55:52,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 11:55:59,350 - root - INFO - 应用程序关闭中...
2025-04-21 11:55:59,350 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 11:55:59,351 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 11:55:59,351 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 11:55:59,351 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 11:55:59,351 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 11:55:59,352 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 11:55:59,352 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 11:55:59,352 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 11:55:59,352 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 11:55:59,352 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 11:55:59,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 11:55:59,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 11:55:59,353 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 11:55:59,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 11:55:59,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 11:55:59,353 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-21 11:55:59,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 11:55:59,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 11:55:59,353 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-21 11:55:59,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 11:55:59,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 11:55:59,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 1
2025-04-21 11:55:59,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 11:55:59,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 11:55:59,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 0
2025-04-21 11:55:59,354 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 11:55:59,355 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 11:55:59,355 - root - INFO - 增强版任务调度器已停止
2025-04-21 11:55:59,355 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 11:55:59,355 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 11:55:59,355 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 11:55:59,356 - data.session - INFO - 数据库连接已关闭
2025-04-21 13:45:03,838 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 13:45:03,839 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 13:45:04,600 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 13:45:04,600 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 13:45:04,670 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 13:45:04,728 - data.session - INFO - 正在初始化数据库...
2025-04-21 13:45:04,766 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 13:45:04,784 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 13:45:04,784 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,785 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 13:45:04,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,786 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 13:45:04,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,788 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:04,788 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 13:45:04,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,789 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 13:45:04,789 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,791 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 13:45:04,791 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,792 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 13:45:04,792 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,794 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 13:45:04,794 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,795 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 13:45:04,795 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,796 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 13:45:04,796 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,797 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 13:45:04,798 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,803 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 13:45:04,803 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,805 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 13:45:04,805 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,807 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 13:45:04,807 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:45:04,809 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:04,812 - data.session - INFO - 数据库表初始化完成
2025-04-21 13:45:05,195 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 13:45:05,195 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 13:45:05,196 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 13:45:05,196 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 13:45:05,196 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 13:45:05,196 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 13:45:05,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 13:45:05,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 13:45:05,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 13:45:05,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 13:45:05,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:45:05,198 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 13:45:05,199 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 13:45:05,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:45:05,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:45:05,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:45:05,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:45:05,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:45:05,201 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 13:45:05,201 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 13:45:05,222 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:45:05,223 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 13:45:05,224 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:45:05,225 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 13:45:05,226 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:45:05,227 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 13:45:05,227 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:45:05,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:05,239 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 13:45:05,240 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (1, 1)
2025-04-21 13:45:05,240 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 13:45:05,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:05,241 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 13:45:05,241 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 13:45:05,241 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 13:45:05,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:05,244 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 13:45:05,244 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1000, 2000, 2001)
2025-04-21 13:45:05,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:05,246 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 13:45:05,246 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 13:45:05,246 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 13:45:05,246 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 13:45:05,246 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:45:05,248 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:05,248 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:45:05,248 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1001, datetime.datetime(2025, 4, 21, 12, 45, 5, 242429))
2025-04-21 13:45:05,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,040 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 13:45:09,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:45:09,049 - sqlalchemy.engine.Engine - INFO - [generated in 0.00374s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:45:09,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:45:09,059 - sqlalchemy.engine.Engine - INFO - [cached since 0.01378s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:45:09,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,065 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 13:45:09,069 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,070 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:45:09,073 - sqlalchemy.engine.Engine - INFO - [cached since 0.02798s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:45:09,078 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 13:45:09,081 - sqlalchemy.engine.Engine - INFO - [generated in 0.00236s] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 13, 45, 9, 77718), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 13, 45, 9, 65726), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 13, 45, 9, 78718), datetime.datetime(2025, 4, 21, 13, 45, 9, 78718), 0)
2025-04-21 13:45:09,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,103 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:45:09,104 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,104 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 67ca63a3-06ac-4ccd-a953-13df81d7cce9 (优先级 1) 添加到队列 0
2025-04-21 13:45:09,105 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0644秒
2025-04-21 13:45:09,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9, 优先级: 1
2025-04-21 13:45:09,106 - services.execution.task_executor - DEBUG - 任务 67ca63a3-06ac-4ccd-a953-13df81d7cce9 设置超时时间: 3600秒
2025-04-21 13:45:09,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,107 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,107 - sqlalchemy.engine.Engine - INFO - [cached since 0.005161s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:45:09,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:45:09,110 - sqlalchemy.engine.Engine - INFO - [cached since 0.0647s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:45:09,112 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,112 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (datetime.datetime(2025, 4, 21, 13, 45, 9, 111376), datetime.datetime(2025, 4, 21, 13, 45, 9, 112377), '67ca63a3-06ac-4ccd-a953-13df81d7cce9')
2025-04-21 13:45:09,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,122 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,122 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 13, 45, 9, 121534), '67ca63a3-06ac-4ccd-a953-13df81d7cce9')
2025-04-21 13:45:09,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,128 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 13:45:09,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,131 - 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-21 13:45:09,132 - sqlalchemy.engine.Engine - INFO - [generated in 0.00103s] ('3f1df8b2-b583-440d-9829-a67e69cbab95', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '67ca63a3-06ac-4ccd-a953-13df81d7cce9', datetime.datetime(2025, 4, 21, 13, 45, 9, 129665), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 45, 9, 131662), datetime.datetime(2025, 4, 21, 13, 45, 9, 131662), 0)
2025-04-21 13:45:09,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,140 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:45:09,141 - sqlalchemy.engine.Engine - INFO - [generated in 0.00103s] ('3f1df8b2-b583-440d-9829-a67e69cbab95',)
2025-04-21 13:45:09,142 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 13:45:09,142 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 13:45:09,143 - 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-21 13:45:09,144 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 45, 9, 143171), '3f1df8b2-b583-440d-9829-a67e69cbab95')
2025-04-21 13:45:09,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,153 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 13:45:09,153 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 13:45:09,153 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 13:45:09,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,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-21 13:45:09,155 - sqlalchemy.engine.Engine - INFO - [cached since 0.02414s ago] ('44802b50-9ce7-43f1-bea9-5c9aa00a6e64', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '67ca63a3-06ac-4ccd-a953-13df81d7cce9', datetime.datetime(2025, 4, 21, 13, 45, 9, 153162), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 45, 9, 155163), datetime.datetime(2025, 4, 21, 13, 45, 9, 155163), 0)
2025-04-21 13:45:09,156 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,162 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 44802b50-9ce7-43f1-bea9-5c9aa00a6e64
2025-04-21 13:45:09,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,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-21 13:45:09,163 - sqlalchemy.engine.Engine - INFO - [cached since 0.02289s ago] ('44802b50-9ce7-43f1-bea9-5c9aa00a6e64',)
2025-04-21 13:45:09,164 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 13:45:09,164 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 13:45:09,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-21 13:45:09,165 - sqlalchemy.engine.Engine - INFO - [cached since 0.02121s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 45, 9, 164162), '44802b50-9ce7-43f1-bea9-5c9aa00a6e64')
2025-04-21 13:45:09,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,172 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 13:45:09,172 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 13:45:09,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,173 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,174 - sqlalchemy.engine.Engine - INFO - [cached since 0.07163s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:45:09,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,177 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:45:09,178 - sqlalchemy.engine.Engine - INFO - [cached since 0.1319s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:45:09,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,181 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:45:09,181 - sqlalchemy.engine.Engine - INFO - [cached since 0.1356s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:45:09,182 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 13:45:09,183 - sqlalchemy.engine.Engine - INFO - [cached since 0.1037s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 13, 45, 9, 182163), None, None, 1002, None, None, None, '67ca63a3-06ac-4ccd-a953-13df81d7cce9', '67ca63a3-06ac-4ccd-a953-13df81d7cce9', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 13, 45, 9, 179163), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 13, 45, 9, 182163), datetime.datetime(2025, 4, 21, 13, 45, 9, 182163), 0)
2025-04-21 13:45:09,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,190 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,191 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,193 - sqlalchemy.engine.Engine - INFO - [cached since 0.09059s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:09,194 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,195 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 4363b0db-8d35-4e40-8d45-60c35a6e533e (优先级 1) 添加到队列 0
2025-04-21 13:45:09,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,196 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,196 - sqlalchemy.engine.Engine - INFO - [cached since 0.0946s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:09,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e, 优先级: 1
2025-04-21 13:45:09,206 - services.execution.task_executor - DEBUG - 任务 4363b0db-8d35-4e40-8d45-60c35a6e533e 设置超时时间: 3600秒
2025-04-21 13:45:09,208 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,209 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,209 - sqlalchemy.engine.Engine - INFO - [cached since 0.1071s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:09,210 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:45:09,211 - sqlalchemy.engine.Engine - INFO - [cached since 0.1649s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:45:09,212 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,213 - sqlalchemy.engine.Engine - INFO - [cached since 0.1014s ago] (datetime.datetime(2025, 4, 21, 13, 45, 9, 211731), datetime.datetime(2025, 4, 21, 13, 45, 9, 212834), '4363b0db-8d35-4e40-8d45-60c35a6e533e')
2025-04-21 13:45:09,214 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,223 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,224 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:09,224 - sqlalchemy.engine.Engine - INFO - [cached since 0.1024s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 13, 45, 9, 224191), '4363b0db-8d35-4e40-8d45-60c35a6e533e')
2025-04-21 13:45:09,226 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,235 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 13:45:09,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,240 - 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-21 13:45:09,241 - sqlalchemy.engine.Engine - INFO - [cached since 0.1105s ago] ('3eb6f731-b11a-4c9c-94f8-02d22fa6246a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '4363b0db-8d35-4e40-8d45-60c35a6e533e', datetime.datetime(2025, 4, 21, 13, 45, 9, 236711), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 45, 9, 240715), datetime.datetime(2025, 4, 21, 13, 45, 9, 240715), 0)
2025-04-21 13:45:09,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,252 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:45:09,252 - sqlalchemy.engine.Engine - INFO - [cached since 0.1125s ago] ('3eb6f731-b11a-4c9c-94f8-02d22fa6246a',)
2025-04-21 13:45:09,253 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 13:45:09,253 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 13:45:09,254 - 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-21 13:45:09,254 - sqlalchemy.engine.Engine - INFO - [cached since 0.1118s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 45, 9, 254986), '3eb6f731-b11a-4c9c-94f8-02d22fa6246a')
2025-04-21 13:45:09,255 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,262 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 13:45:09,263 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 13:45:09,263 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 13:45:09,264 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,264 - 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-21 13:45:09,265 - sqlalchemy.engine.Engine - INFO - [cached since 0.1346s ago] ('99e71bc8-9628-4f0f-8ddf-6988d33a230d', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '4363b0db-8d35-4e40-8d45-60c35a6e533e', datetime.datetime(2025, 4, 21, 13, 45, 9, 264753), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 45, 9, 264753), datetime.datetime(2025, 4, 21, 13, 45, 9, 264753), 0)
2025-04-21 13:45:09,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,277 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 99e71bc8-9628-4f0f-8ddf-6988d33a230d
2025-04-21 13:45:09,277 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:09,279 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:45:09,279 - sqlalchemy.engine.Engine - INFO - [cached since 0.1398s ago] ('99e71bc8-9628-4f0f-8ddf-6988d33a230d',)
2025-04-21 13:45:09,284 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 13:45:09,284 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 13:45:09,285 - 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-21 13:45:09,286 - sqlalchemy.engine.Engine - INFO - [cached since 0.1428s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 45, 9, 285553), '99e71bc8-9628-4f0f-8ddf-6988d33a230d')
2025-04-21 13:45:09,289 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:09,299 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 13:45:12,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:12,222 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:12,223 - sqlalchemy.engine.Engine - INFO - [cached since 3.121s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:12,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:15,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:15,235 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:15,235 - sqlalchemy.engine.Engine - INFO - [cached since 6.134s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:15,237 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:18,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:18,243 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:18,243 - sqlalchemy.engine.Engine - INFO - [cached since 9.141s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:18,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:21,250 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:21,251 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:21,251 - sqlalchemy.engine.Engine - INFO - [cached since 12.15s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:21,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:24,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:24,271 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:24,271 - sqlalchemy.engine.Engine - INFO - [cached since 15.17s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:24,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:27,272 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:27,275 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:27,278 - sqlalchemy.engine.Engine - INFO - [cached since 18.18s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:27,303 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:30,308 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:30,308 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:30,309 - sqlalchemy.engine.Engine - INFO - [cached since 21.21s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:30,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:33,319 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:33,320 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:33,320 - sqlalchemy.engine.Engine - INFO - [cached since 24.22s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:33,321 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:36,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:36,338 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:36,338 - sqlalchemy.engine.Engine - INFO - [cached since 27.24s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:36,340 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:39,341 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:39,342 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:39,342 - sqlalchemy.engine.Engine - INFO - [cached since 30.24s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:39,345 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:42,347 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:42,350 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:42,353 - sqlalchemy.engine.Engine - INFO - [cached since 33.25s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:42,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:45,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:45,371 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:45,372 - sqlalchemy.engine.Engine - INFO - [cached since 36.27s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:45,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:48,374 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:48,375 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:48,375 - sqlalchemy.engine.Engine - INFO - [cached since 39.27s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:48,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:51,374 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:51,377 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:51,379 - sqlalchemy.engine.Engine - INFO - [cached since 42.28s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:51,382 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:54,386 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:54,389 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:54,390 - sqlalchemy.engine.Engine - INFO - [cached since 45.29s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:54,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:45:55,715 - root - INFO - 请求开始: GET /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 13:45:55,717 - root - INFO - 请求完成: GET /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 405 耗时: 0.0021秒
2025-04-21 13:45:57,395 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:45:57,396 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:45:57,397 - sqlalchemy.engine.Engine - INFO - [cached since 48.3s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:45:57,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:00,430 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:00,436 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:00,436 - sqlalchemy.engine.Engine - INFO - [cached since 51.33s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:46:00,437 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:03,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:03,452 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:03,452 - sqlalchemy.engine.Engine - INFO - [cached since 54.35s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:46:03,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:05,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:05,262 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:46:05,265 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 12, 46, 5, 260775))
2025-04-21 13:46:05,270 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:06,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:06,451 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:06,452 - sqlalchemy.engine.Engine - INFO - [cached since 57.35s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:46:06,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:09,445 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:09,450 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:09,452 - sqlalchemy.engine.Engine - INFO - [cached since 60.35s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:46:09,452 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:12,464 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:12,464 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:12,465 - sqlalchemy.engine.Engine - INFO - [cached since 63.36s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:46:12,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:15,479 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:15,480 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:15,482 - sqlalchemy.engine.Engine - INFO - [cached since 66.38s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:46:15,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:18,499 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:18,500 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:18,501 - sqlalchemy.engine.Engine - INFO - [cached since 69.4s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:46:18,503 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:20,194 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:46:20,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:46:20,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:46:20,195 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:46:20,195 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:46:20,195 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:46:20,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:46:20,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:46:20,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:46:20,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:46:20,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:46:20,197 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 13:46:20,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:46:20,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:46:20,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:46:20,197 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:46:20,200 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 13:46:20,200 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:46:20,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:46:20,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:46:20,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:46:20,200 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:46:20,200 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:46:20,201 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:46:20,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:46:20,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:46:20,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:46:20,202 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:46:20,202 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:46:20,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:46:25,459 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 13:46:25,460 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:46:25,460 - sqlalchemy.engine.Engine - INFO - [cached since 76.42s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:46:25,462 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:46:25,463 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 13:46:25,463 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9
2025-04-21 13:46:25,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:25,466 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:25,466 - sqlalchemy.engine.Engine - INFO - [cached since 76.36s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:46:25,467 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:46:25,468 - sqlalchemy.engine.Engine - INFO - [generated in 0.00106s] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9', 1001)
2025-04-21 13:46:25,469 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e, 父任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9
2025-04-21 13:46:25,469 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e
2025-04-21 13:46:25,471 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:46:25,471 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:25,471 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:25,471 - sqlalchemy.engine.Engine - INFO - [cached since 76.37s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:46:25,474 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:46:25,476 - sqlalchemy.engine.Engine - INFO - [cached since 0.008321s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e', 1001)
2025-04-21 13:46:25,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:25,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:25,479 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 13:46:25,479 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] (0, datetime.datetime(2025, 4, 21, 13, 46, 25, 478223), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 13:46:25,479 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:25,495 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0353秒
2025-04-21 13:46:48,125 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 13:46:48,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:48,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:46:48,127 - sqlalchemy.engine.Engine - INFO - [cached since 99.08s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:46:48,128 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:46:48,128 - sqlalchemy.engine.Engine - INFO - [cached since 22.67s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 13:46:48,129 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9
2025-04-21 13:46:48,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:48,129 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:48,129 - sqlalchemy.engine.Engine - INFO - [cached since 99.03s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:46:48,130 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:46:48,131 - sqlalchemy.engine.Engine - INFO - [cached since 22.66s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9', 1001)
2025-04-21 13:46:48,131 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e, 父任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9
2025-04-21 13:46:48,131 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e
2025-04-21 13:46:48,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:46:48,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:46:48,132 - sqlalchemy.engine.Engine - INFO - [cached since 99.03s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:46:48,134 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:46:48,134 - sqlalchemy.engine.Engine - INFO - [cached since 22.67s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e', 1001)
2025-04-21 13:46:48,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:48,136 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:48,137 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 13:46:48,137 - sqlalchemy.engine.Engine - INFO - [cached since 22.66s ago] (0, datetime.datetime(2025, 4, 21, 13, 46, 48, 137767), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 13:46:48,138 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:46:48,144 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0190秒
2025-04-21 13:47:05,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:47:05,263 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:47:05,264 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 12, 47, 5, 263334))
2025-04-21 13:47:05,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:47:20,198 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:47:20,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:47:20,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:47:20,199 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:47:20,199 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:47:20,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:47:20,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:47:20,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:47:20,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:47:20,199 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:47:20,200 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:47:20,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:47:35,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 13:47:35,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:47:35,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:47:35,206 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:47:35,206 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 13:47:35,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:47:35,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:47:35,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:47:35,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:47:35,208 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:47:35,208 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:47:35,208 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:47:35,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:47:35,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:47:35,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:47:35,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:47:35,209 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:47:35,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:48:05,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:48:05,284 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:48:05,286 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 12, 48, 5, 280018))
2025-04-21 13:48:05,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:48:20,211 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:48:20,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:48:20,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:48:20,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:48:20,213 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:48:20,213 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:48:20,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:48:20,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:48:20,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:48:20,215 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:48:20,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:48:20,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:48:35,226 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 13:48:35,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:48:35,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:48:35,227 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:48:35,227 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 13:48:35,228 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:48:35,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:48:35,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:48:35,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:48:35,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:48:35,230 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:48:35,231 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:48:35,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:48:35,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:48:35,233 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:48:35,233 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:48:35,233 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:48:35,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:49:05,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:49:05,321 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:49:05,325 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 12, 49, 5, 318215))
2025-04-21 13:49:05,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:49:20,269 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:49:20,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:49:20,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:49:20,270 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:49:20,270 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:49:20,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:49:20,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:49:20,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:49:20,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:49:20,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:49:20,272 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:49:20,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:49:35,294 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 13:49:35,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:49:35,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:49:35,295 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:49:35,295 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 13:49:35,295 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:49:35,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:49:35,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:49:35,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:49:35,296 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:49:35,297 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:49:35,297 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:49:35,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:49:35,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:49:35,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:49:35,298 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:49:35,298 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:49:35,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:50:05,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:50:05,329 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:50:05,329 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 21, 12, 50, 5, 328461))
2025-04-21 13:50:05,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:50:20,320 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:50:20,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:50:20,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:50:20,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:50:20,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:50:20,321 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:50:20,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:50:20,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:50:20,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:50:20,322 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:50:20,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:50:20,327 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:50:35,312 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 13:50:35,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:50:35,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:50:35,314 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:50:35,315 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 13:50:35,315 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:50:35,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:50:35,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:50:35,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:50:35,316 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:50:35,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:50:35,316 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:50:35,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:50:35,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:50:35,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:50:35,317 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:50:35,317 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:50:35,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:51:05,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:51:05,328 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:51:05,328 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 21, 12, 51, 5, 325324))
2025-04-21 13:51:05,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:51:20,341 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:51:20,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:51:20,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:51:20,342 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:51:20,342 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:51:20,342 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:51:20,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:51:20,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:51:20,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:51:20,342 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:51:20,344 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:51:20,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:51:28,737 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 13:51:28,739 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:51:28,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:51:28,740 - sqlalchemy.engine.Engine - INFO - [cached since 379.7s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:51:28,742 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:51:28,742 - sqlalchemy.engine.Engine - INFO - [cached since 303.3s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 13:51:28,743 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9
2025-04-21 13:51:28,743 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:51:28,747 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:51:28,748 - sqlalchemy.engine.Engine - INFO - [cached since 379.6s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:51:28,749 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:51:28,751 - sqlalchemy.engine.Engine - INFO - [cached since 303.3s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9', 1001)
2025-04-21 13:51:28,752 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e, 父任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9
2025-04-21 13:51:28,753 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e
2025-04-21 13:51:28,754 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:51:28,755 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:51:28,755 - sqlalchemy.engine.Engine - INFO - [cached since 379.7s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:51:28,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:51:28,758 - sqlalchemy.engine.Engine - INFO - [cached since 303.3s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e', 1001)
2025-04-21 13:51:28,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:51:28,761 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:51:28,763 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 13:51:28,764 - sqlalchemy.engine.Engine - INFO - [cached since 303.3s ago] (0, datetime.datetime(2025, 4, 21, 13, 51, 28, 763511), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 13:51:28,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:51:28,780 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0426秒
2025-04-21 13:51:35,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 13:51:35,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:51:35,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:51:35,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:51:35,358 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 13:51:35,358 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:51:35,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:51:35,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:51:35,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:51:35,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:51:35,359 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:51:35,359 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:51:35,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:51:35,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:51:35,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:51:35,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:51:35,359 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:51:35,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:52:05,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:05,337 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:52:05,337 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (1001, datetime.datetime(2025, 4, 21, 12, 52, 5, 336121))
2025-04-21 13:52:05,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:20,396 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:52:20,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:52:20,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:52:20,398 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:52:20,398 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:52:20,399 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:52:20,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:52:20,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:52:20,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:52:20,399 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:52:20,399 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:52:20,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:52:33,455 - root - INFO - 应用程序关闭中...
2025-04-21 13:52:33,456 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 13:52:33,456 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 13:52:33,456 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 13:52:33,457 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 13:52:33,457 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 13:52:33,457 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 13:52:33,457 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 13:52:33,458 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 13:52:33,458 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 13:52:33,458 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 13:52:33,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:52:33,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:52:33,458 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:52:33,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:52:33,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:52:33,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 3
2025-04-21 13:52:33,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:52:33,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:52:33,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 2
2025-04-21 13:52:33,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:52:33,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:52:33,462 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 1
2025-04-21 13:52:33,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:52:33,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:52:33,463 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 0
2025-04-21 13:52:33,463 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 13:52:33,463 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 13:52:33,464 - root - INFO - 增强版任务调度器已停止
2025-04-21 13:52:33,464 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 13:52:33,465 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 13:52:33,468 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 13:52:33,470 - data.session - INFO - 数据库连接已关闭
2025-04-21 13:52:35,618 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 13:52:35,618 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 13:52:36,314 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 13:52:36,314 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 13:52:36,371 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 13:52:36,419 - data.session - INFO - 正在初始化数据库...
2025-04-21 13:52:36,431 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 13:52:36,433 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 13:52:36,433 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,433 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 13:52:36,434 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,434 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 13:52:36,434 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,435 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,435 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 13:52:36,435 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,437 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 13:52:36,437 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,438 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 13:52:36,438 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,441 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 13:52:36,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,442 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 13:52:36,443 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 13:52:36,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,446 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 13:52:36,446 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,448 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 13:52:36,448 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,449 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 13:52:36,449 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,451 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 13:52:36,451 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,453 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 13:52:36,453 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:52:36,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,456 - data.session - INFO - 数据库表初始化完成
2025-04-21 13:52:36,800 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 13:52:36,801 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 13:52:36,801 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 13:52:36,801 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 13:52:36,802 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 13:52:36,804 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 13:52:36,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 13:52:36,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 13:52:36,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 13:52:36,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 13:52:36,805 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:52:36,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 13:52:36,805 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 13:52:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:52:36,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:52:36,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:52:36,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:52:36,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:52:36,808 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 13:52:36,810 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 13:52:36,827 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:52:36,828 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 13:52:36,830 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:52:36,830 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 13:52:36,831 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:52:36,831 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 13:52:36,831 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:52:36,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 13:52:36,841 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (1, 1)
2025-04-21 13:52:36,842 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 13:52:36,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,843 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 13:52:36,843 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 13:52:36,844 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 13:52:36,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,846 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 13:52:36,847 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (1000, 2000, 2001)
2025-04-21 13:52:36,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,849 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:52:36,849 - services.enhanced_scheduler.task_persistence - INFO - 已加载 2 个待处理任务
2025-04-21 13:52:36,849 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,850 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:36,850 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:52:36,851 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,851 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:52:36,851 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1001, datetime.datetime(2025, 4, 21, 12, 52, 36, 844809))
2025-04-21 13:52:36,852 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:36,853 - sqlalchemy.engine.Engine - INFO - [cached since 0.002586s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:52:36,853 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,854 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 4363b0db-8d35-4e40-8d45-60c35a6e533e (优先级 1) 添加到队列 0
2025-04-21 13:52:36,854 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 4363b0db-8d35-4e40-8d45-60c35a6e533e, 优先级: 1
2025-04-21 13:52:36,855 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 67ca63a3-06ac-4ccd-a953-13df81d7cce9 (优先级 1) 添加到队列 0
2025-04-21 13:52:36,855 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 67ca63a3-06ac-4ccd-a953-13df81d7cce9, 优先级: 1
2025-04-21 13:52:36,855 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 2 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 13:52:36,855 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 13:52:36,855 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 13:52:36,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e, 优先级: 1
2025-04-21 13:52:36,921 - services.execution.task_executor - DEBUG - 任务 4363b0db-8d35-4e40-8d45-60c35a6e533e 设置超时时间: 3600秒
2025-04-21 13:52:36,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9, 优先级: 1
2025-04-21 13:52:36,922 - services.execution.task_executor - DEBUG - 任务 67ca63a3-06ac-4ccd-a953-13df81d7cce9 设置超时时间: 3600秒
2025-04-21 13:52:36,923 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,924 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:36,925 - sqlalchemy.engine.Engine - INFO - [cached since 0.07453s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:52:36,925 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,926 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:36,926 - sqlalchemy.engine.Engine - INFO - [cached since 0.07626s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:52:36,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:52:36,928 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:52:36,929 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:52:36,930 - sqlalchemy.engine.Engine - INFO - [cached since 0.001882s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:52:36,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,933 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:36,934 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 13, 52, 36, 933572), '4363b0db-8d35-4e40-8d45-60c35a6e533e')
2025-04-21 13:52:36,934 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,935 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:36,935 - sqlalchemy.engine.Engine - INFO - [cached since 0.001664s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 13, 52, 36, 935264), '67ca63a3-06ac-4ccd-a953-13df81d7cce9')
2025-04-21 13:52:36,935 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,950 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 13:52:36,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,952 - 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-21 13:52:36,953 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('d45d1157-01de-4933-97ed-124dd45fba75', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '4363b0db-8d35-4e40-8d45-60c35a6e533e', datetime.datetime(2025, 4, 21, 13, 52, 36, 950310), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 52, 36, 952310), datetime.datetime(2025, 4, 21, 13, 52, 36, 952310), 0)
2025-04-21 13:52:36,954 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 13:52:36,955 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,955 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,956 - 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-21 13:52:36,956 - sqlalchemy.engine.Engine - INFO - [cached since 0.00422s ago] ('8c69a6cc-a218-4733-a18f-0cd8f2b9269b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '67ca63a3-06ac-4ccd-a953-13df81d7cce9', datetime.datetime(2025, 4, 21, 13, 52, 36, 955311), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 52, 36, 956303), datetime.datetime(2025, 4, 21, 13, 52, 36, 956303), 0)
2025-04-21 13:52:36,957 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,963 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,964 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:52:36,965 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('d45d1157-01de-4933-97ed-124dd45fba75',)
2025-04-21 13:52:36,966 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 13:52:36,966 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 13:52:36,967 - 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-21 13:52:36,968 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 52, 36, 967677), 'd45d1157-01de-4933-97ed-124dd45fba75')
2025-04-21 13:52:36,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,969 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:52:36,969 - sqlalchemy.engine.Engine - INFO - [cached since 0.005364s ago] ('8c69a6cc-a218-4733-a18f-0cd8f2b9269b',)
2025-04-21 13:52:36,970 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 13:52:36,970 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 13:52:36,970 - 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-21 13:52:36,971 - sqlalchemy.engine.Engine - INFO - [cached since 0.003822s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 52, 36, 970885), '8c69a6cc-a218-4733-a18f-0cd8f2b9269b')
2025-04-21 13:52:36,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,975 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 13:52:36,975 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 13:52:36,976 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 13:52:36,976 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,976 - 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-21 13:52:36,977 - sqlalchemy.engine.Engine - INFO - [cached since 0.02531s ago] ('c62bcb65-ce5d-48ca-a595-fcc837ba2f6e', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '4363b0db-8d35-4e40-8d45-60c35a6e533e', datetime.datetime(2025, 4, 21, 13, 52, 36, 976983), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 52, 36, 976983), datetime.datetime(2025, 4, 21, 13, 52, 36, 976983), 0)
2025-04-21 13:52:36,977 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,980 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 13:52:36,980 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 13:52:36,980 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 13:52:36,981 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,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-21 13:52:36,981 - sqlalchemy.engine.Engine - INFO - [cached since 0.02895s ago] ('d1e1ea69-6952-4315-97e6-437e3b87f511', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '67ca63a3-06ac-4ccd-a953-13df81d7cce9', datetime.datetime(2025, 4, 21, 13, 52, 36, 980293), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 52, 36, 981312), datetime.datetime(2025, 4, 21, 13, 52, 36, 981312), 0)
2025-04-21 13:52:36,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,984 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c62bcb65-ce5d-48ca-a595-fcc837ba2f6e
2025-04-21 13:52:36,985 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,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-21 13:52:36,985 - sqlalchemy.engine.Engine - INFO - [cached since 0.02128s ago] ('c62bcb65-ce5d-48ca-a595-fcc837ba2f6e',)
2025-04-21 13:52:36,986 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 13:52:36,986 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 13:52:36,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-21 13:52:36,986 - sqlalchemy.engine.Engine - INFO - [cached since 0.01963s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 52, 36, 986916), 'c62bcb65-ce5d-48ca-a595-fcc837ba2f6e')
2025-04-21 13:52:36,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,989 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: d1e1ea69-6952-4315-97e6-437e3b87f511
2025-04-21 13:52:36,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,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-21 13:52:36,990 - sqlalchemy.engine.Engine - INFO - [cached since 0.02509s ago] ('d1e1ea69-6952-4315-97e6-437e3b87f511',)
2025-04-21 13:52:36,991 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 13:52:36,991 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 13:52:36,991 - 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-21 13:52:36,991 - sqlalchemy.engine.Engine - INFO - [cached since 0.0233s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 52, 36, 991055), 'd1e1ea69-6952-4315-97e6-437e3b87f511')
2025-04-21 13:52:36,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:36,995 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 13:52:36,998 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 13:52:36,999 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 13:52:36,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:36,999 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:36,999 - sqlalchemy.engine.Engine - INFO - [cached since 0.149s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:52:37,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,002 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:52:37,002 - sqlalchemy.engine.Engine - INFO - [cached since 0.07388s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:52:37,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,004 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:52:37,004 - sqlalchemy.engine.Engine - INFO - [cached since 0.07571s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:52:37,005 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 13:52:37,005 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('eea6fe05-b318-42fd-8f54-61d8de7f38da', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 13, 52, 37, 4664), None, None, 1002, None, None, None, '67ca63a3-06ac-4ccd-a953-13df81d7cce9', '67ca63a3-06ac-4ccd-a953-13df81d7cce9', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 13, 52, 37, 3161), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 13, 52, 37, 5686), datetime.datetime(2025, 4, 21, 13, 52, 37, 5686), 0)
2025-04-21 13:52:37,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,016 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:37,016 - sqlalchemy.engine.Engine - INFO - [cached since 0.166s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:37,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,019 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eea6fe05-b318-42fd-8f54-61d8de7f38da (优先级 1) 添加到队列 0
2025-04-21 13:52:37,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,020 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:37,020 - sqlalchemy.engine.Engine - INFO - [cached since 0.1695s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:37,021 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: eea6fe05-b318-42fd-8f54-61d8de7f38da, 优先级: 1
2025-04-21 13:52:37,123 - services.execution.task_executor - DEBUG - 任务 eea6fe05-b318-42fd-8f54-61d8de7f38da 设置超时时间: 3600秒
2025-04-21 13:52:37,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,124 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:37,125 - sqlalchemy.engine.Engine - INFO - [cached since 0.2745s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:37,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:52:37,127 - sqlalchemy.engine.Engine - INFO - [cached since 0.1987s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:52:37,128 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:37,128 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (datetime.datetime(2025, 4, 21, 13, 52, 37, 128145), datetime.datetime(2025, 4, 21, 13, 52, 37, 128145), 'eea6fe05-b318-42fd-8f54-61d8de7f38da')
2025-04-21 13:52:37,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,138 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:37,139 - sqlalchemy.engine.Engine - INFO - [cached since 0.2053s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 13, 52, 37, 138409), 'eea6fe05-b318-42fd-8f54-61d8de7f38da')
2025-04-21 13:52:37,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,147 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 13:52:37,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,148 - 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-21 13:52:37,148 - sqlalchemy.engine.Engine - INFO - [cached since 0.1961s ago] ('de3c20ac-c13c-4265-bccc-d5aa864ba38f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'eea6fe05-b318-42fd-8f54-61d8de7f38da', datetime.datetime(2025, 4, 21, 13, 52, 37, 147596), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 52, 37, 148587), datetime.datetime(2025, 4, 21, 13, 52, 37, 148587), 0)
2025-04-21 13:52:37,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,156 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,157 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:52:37,157 - sqlalchemy.engine.Engine - INFO - [cached since 0.1926s ago] ('de3c20ac-c13c-4265-bccc-d5aa864ba38f',)
2025-04-21 13:52:37,158 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 13:52:37,158 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 13:52:37,158 - 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-21 13:52:37,158 - sqlalchemy.engine.Engine - INFO - [cached since 0.1914s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 52, 37, 158662), 'de3c20ac-c13c-4265-bccc-d5aa864ba38f')
2025-04-21 13:52:37,159 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,166 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 13:52:37,166 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 13:52:37,166 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 13:52:37,167 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,168 - 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-21 13:52:37,168 - sqlalchemy.engine.Engine - INFO - [cached since 0.216s ago] ('f318bf0d-537d-4337-82ab-26bf07dc8ec9', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'eea6fe05-b318-42fd-8f54-61d8de7f38da', datetime.datetime(2025, 4, 21, 13, 52, 37, 167663), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 52, 37, 168662), datetime.datetime(2025, 4, 21, 13, 52, 37, 168662), 0)
2025-04-21 13:52:37,169 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,177 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: f318bf0d-537d-4337-82ab-26bf07dc8ec9
2025-04-21 13:52:37,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:37,178 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:52:37,179 - sqlalchemy.engine.Engine - INFO - [cached since 0.2142s ago] ('f318bf0d-537d-4337-82ab-26bf07dc8ec9',)
2025-04-21 13:52:37,180 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 13:52:37,180 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 13:52:37,180 - 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-21 13:52:37,181 - sqlalchemy.engine.Engine - INFO - [cached since 0.2134s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 52, 37, 180570), 'f318bf0d-537d-4337-82ab-26bf07dc8ec9')
2025-04-21 13:52:37,181 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:37,187 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 13:52:40,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:40,032 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:40,032 - sqlalchemy.engine.Engine - INFO - [cached since 3.182s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:40,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:43,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:43,013 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:43,014 - sqlalchemy.engine.Engine - INFO - [cached since 6.163s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:43,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:46,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:46,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:46,015 - sqlalchemy.engine.Engine - INFO - [cached since 9.166s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:46,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:46,041 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 13:52:46,046 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:46,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:52:46,047 - sqlalchemy.engine.Engine - INFO - [cached since 9.119s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:52:46,049 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:52:46,049 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 13:52:46,050 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9
2025-04-21 13:52:46,050 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:46,051 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:46,051 - sqlalchemy.engine.Engine - INFO - [cached since 9.201s ago] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9',)
2025-04-21 13:52:46,053 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:52:46,053 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] ('67ca63a3-06ac-4ccd-a953-13df81d7cce9', 1001)
2025-04-21 13:52:46,054 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e, 父任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9
2025-04-21 13:52:46,054 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 4363b0db-8d35-4e40-8d45-60c35a6e533e
2025-04-21 13:52:46,057 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:52:46,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:46,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:46,059 - sqlalchemy.engine.Engine - INFO - [cached since 9.209s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e',)
2025-04-21 13:52:46,060 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:52:46,061 - sqlalchemy.engine.Engine - INFO - [cached since 0.007965s ago] ('4363b0db-8d35-4e40-8d45-60c35a6e533e', 1001)
2025-04-21 13:52:46,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:46,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:46,064 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:46,064 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (datetime.datetime(2025, 4, 21, 13, 52, 46, 62657), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 13, 52, 46, 64658), '4363b0db-8d35-4e40-8d45-60c35a6e533e')
2025-04-21 13:52:46,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:46,079 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: eea6fe05-b318-42fd-8f54-61d8de7f38da, 父任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9
2025-04-21 13:52:46,079 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: eea6fe05-b318-42fd-8f54-61d8de7f38da
2025-04-21 13:52:46,080 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:46,080 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:46,080 - sqlalchemy.engine.Engine - INFO - [cached since 9.23s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:46,081 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:52:46,081 - sqlalchemy.engine.Engine - INFO - [cached since 0.02819s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da', 1001)
2025-04-21 13:52:46,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:46,083 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:46,083 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:46,084 - sqlalchemy.engine.Engine - INFO - [cached since 0.01943s ago] (datetime.datetime(2025, 4, 21, 13, 52, 46, 83055), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 13, 52, 46, 83055), 'eea6fe05-b318-42fd-8f54-61d8de7f38da')
2025-04-21 13:52:46,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:46,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:46,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:46,096 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:46,096 - sqlalchemy.engine.Engine - INFO - [cached since 0.03237s ago] (datetime.datetime(2025, 4, 21, 13, 52, 46, 95704), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 13, 52, 46, 96741), '67ca63a3-06ac-4ccd-a953-13df81d7cce9')
2025-04-21 13:52:46,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:46,107 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 13:52:46,108 - sqlalchemy.engine.Engine - INFO - [generated in 0.00114s] (0, datetime.datetime(2025, 4, 21, 13, 52, 46, 107330), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 13:52:46,110 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:46,117 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0760秒
2025-04-21 13:52:49,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:49,020 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:49,021 - sqlalchemy.engine.Engine - INFO - [cached since 12.17s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:49,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:49,025 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:49,025 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:49,025 - sqlalchemy.engine.Engine - INFO - [cached since 12.17s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:49,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:49,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:49,028 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:49,028 - sqlalchemy.engine.Engine - INFO - [cached since 12.18s ago] ('eea6fe05-b318-42fd-8f54-61d8de7f38da',)
2025-04-21 13:52:49,029 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 13:52:49,029 - services.execution.handlers.sub_task - ERROR - 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'
2025-04-21 13:52:49,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:49,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-21 13:52:49,031 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('eaedb440-d95a-4914-866d-81f95973d4dc', 3, '{"success": false, "message": "等待任务完成异常: \'VWEDTaskRecord\' object has no attribute \'result\'", "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "eea6fe05-b318-42fd-8f54-61d8de7f38da", "async": false, "output": {}, "taskStatus": null}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '67ca63a3-06ac-4ccd-a953-13df81d7cce9', datetime.datetime(2025, 4, 21, 13, 52, 49, 31992), datetime.datetime(2025, 4, 21, 13, 52, 49, 31992), 0)
2025-04-21 13:52:49,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:49,048 - services.execution.block_executor - ERROR - 子块 1 执行失败: 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'
2025-04-21 13:52:49,048 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:49,049 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:52:49,049 - sqlalchemy.engine.Engine - INFO - [cached since 12.08s ago] ('d1e1ea69-6952-4315-97e6-437e3b87f511',)
2025-04-21 13:52:49,049 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 13:52:49,050 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 13:52:49,050 - 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-21 13:52:49,051 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (datetime.datetime(2025, 4, 21, 13, 52, 49, 50015), "等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", 2000, '{\'subtaskResult\': {\'success\': False, \'message\': "等待任务完成异常: \'VWEDTaskRecord\' object has no attribute \'result\'", \'output\': {}, \'taskStatus\': None}}', "等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", datetime.datetime(2025, 4, 21, 13, 52, 49, 50015), 'd1e1ea69-6952-4315-97e6-437e3b87f511')
2025-04-21 13:52:49,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:49,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:49,059 - 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-21 13:52:49,059 - sqlalchemy.engine.Engine - INFO - [cached since 0.02781s ago] ('ffb24a2b-e175-4e28-b579-9341d00f59e3', 3, '{"success": false, "message": "子块 1 执行失败: 等待任务完成异常: \'VWEDTaskRecord\' object has no attribute \'result\'", "block_id": 1, "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "eea6fe05-b318-42fd-8f54-61d8de7f38da", "async": false, "output": {}, "taskStatus": null}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '67ca63a3-06ac-4ccd-a953-13df81d7cce9', datetime.datetime(2025, 4, 21, 13, 52, 49, 59570), datetime.datetime(2025, 4, 21, 13, 52, 49, 59570), 0)
2025-04-21 13:52:49,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:49,067 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:49,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-21 13:52:49,068 - sqlalchemy.engine.Engine - INFO - [cached since 12.1s ago] ('8c69a6cc-a218-4733-a18f-0cd8f2b9269b',)
2025-04-21 13:52:49,069 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 13:52:49,069 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 13:52:49,069 - 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-21 13:52:49,069 - sqlalchemy.engine.Engine - INFO - [cached since 0.01949s ago] (datetime.datetime(2025, 4, 21, 13, 52, 49, 69509), "子块 1 执行失败: 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", 2000, '{\'subtaskResult\': {\'success\': False, \'message\': "等待任务完成异常: \'VWEDTaskRecord\' object has no attribute \'result\'", \'output\': {}, \'taskStatus\': None}}', "子块 1 执行失败: 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", datetime.datetime(2025, 4, 21, 13, 52, 49, 69509), '8c69a6cc-a218-4733-a18f-0cd8f2b9269b')
2025-04-21 13:52:49,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:49,078 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:52:49,079 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:52:49,079 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 21, 13, 52, 49, 78556), "子块 1 执行失败: 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", 2000, 12145, datetime.datetime(2025, 4, 21, 13, 52, 49, 79556), '67ca63a3-06ac-4ccd-a953-13df81d7cce9')
2025-04-21 13:52:49,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:52:49,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 67ca63a3-06ac-4ccd-a953-13df81d7cce9, 结果: False
2025-04-21 13:53:36,837 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:53:36,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:53:36,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:53:36,838 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:53:36,838 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:53:36,838 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:53:36,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:53:36,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:53:36,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:53:36,839 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:53:36,839 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:53:36,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:53:36,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:53:36,870 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:53:36,870 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 12, 53, 36, 869888))
2025-04-21 13:53:36,872 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:53:51,171 - root - INFO - 应用程序关闭中...
2025-04-21 13:53:51,171 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 13:53:51,171 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 13:53:51,172 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 13:53:51,172 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 13:53:51,172 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 13:53:51,172 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 13:53:51,174 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 13:53:51,176 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 13:53:51,176 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 13:53:51,178 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 13:53:51,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:53:51,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:53:51,178 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:53:51,179 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:53:51,179 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:53:51,179 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 13:53:51,179 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:53:51,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:53:51,180 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 13:53:51,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:53:51,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:53:51,180 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 13:53:51,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:53:51,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:53:51,180 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 13:53:51,181 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 13:53:51,181 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 13:53:51,181 - root - INFO - 增强版任务调度器已停止
2025-04-21 13:53:51,181 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 13:53:51,181 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 13:53:51,181 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 13:53:51,182 - data.session - INFO - 数据库连接已关闭
2025-04-21 13:53:53,833 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 13:53:53,834 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 13:53:54,616 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 13:53:54,616 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 13:53:54,680 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 13:53:54,731 - data.session - INFO - 正在初始化数据库...
2025-04-21 13:53:54,773 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 13:53:54,774 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 13:53:54,775 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,775 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 13:53:54,776 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,776 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 13:53:54,777 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:53:54,777 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 13:53:54,777 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,779 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 13:53:54,779 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,780 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 13:53:54,781 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,783 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 13:53:54,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,786 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 13:53:54,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,788 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 13:53:54,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,790 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 13:53:54,790 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,791 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 13:53:54,791 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,792 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 13:53:54,793 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,793 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 13:53:54,793 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,794 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 13:53:54,795 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:53:54,797 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:53:54,797 - data.session - INFO - 数据库表初始化完成
2025-04-21 13:53:55,169 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 13:53:55,169 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 13:53:55,169 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 13:53:55,169 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 13:53:55,169 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 13:53:55,170 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 13:53:55,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 13:53:55,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 13:53:55,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 13:53:55,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 13:53:55,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:53:55,172 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 13:53:55,172 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 13:53:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:53:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:53:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:53:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:53:55,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:53:55,174 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 13:53:55,174 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 13:53:55,175 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:53:55,176 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 13:53:55,176 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:53:55,176 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 13:53:55,176 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:53:55,177 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 13:53:55,177 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:53:55,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:53:55,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 13:53:55,186 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (1, 1)
2025-04-21 13:53:55,186 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 13:53:55,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:53:55,187 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 13:53:55,188 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 13:53:55,188 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 13:53:55,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:53:55,190 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 13:53:55,191 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1000, 2000, 2001)
2025-04-21 13:53:55,191 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:53:55,192 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 13:53:55,192 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 13:53:55,193 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 13:53:55,193 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 13:53:55,194 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:53:55,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:53:55,195 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:53:55,195 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1001, datetime.datetime(2025, 4, 21, 12, 53, 55, 188828))
2025-04-21 13:53:55,196 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:36,256 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 13:54:36,257 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:36,258 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:54:36,258 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:54:36,259 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:54:36,260 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 13:54:36,261 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 13:54:36,261 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (0, datetime.datetime(2025, 4, 21, 13, 54, 36, 261986), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 13:54:36,262 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:36,270 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0135秒
2025-04-21 13:54:41,548 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 13:54:41,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,558 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:54:41,558 - sqlalchemy.engine.Engine - INFO - [cached since 5.3s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:54:41,559 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,560 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,560 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:54:41,560 - sqlalchemy.engine.Engine - INFO - [cached since 5.303s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:54:41,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,561 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 13:54:41,562 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,562 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:54:41,562 - sqlalchemy.engine.Engine - INFO - [cached since 5.304s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:54:41,564 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 13:54:41,564 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('cd183e7d-d354-4e04-adbe-1ef6134da184', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 13, 54, 41, 563375), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 13, 54, 41, 561322), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 13, 54, 41, 564413), datetime.datetime(2025, 4, 21, 13, 54, 41, 564413), 0)
2025-04-21 13:54:41,565 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,583 - sqlalchemy.engine.Engine - INFO - [generated in 0.00165s] ('cd183e7d-d354-4e04-adbe-1ef6134da184',)
2025-04-21 13:54:41,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,586 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 cd183e7d-d354-4e04-adbe-1ef6134da184 (优先级 1) 添加到队列 0
2025-04-21 13:54:41,586 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0382秒
2025-04-21 13:54:41,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: cd183e7d-d354-4e04-adbe-1ef6134da184, 优先级: 1
2025-04-21 13:54:41,668 - services.execution.task_executor - DEBUG - 任务 cd183e7d-d354-4e04-adbe-1ef6134da184 设置超时时间: 3600秒
2025-04-21 13:54:41,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,671 - sqlalchemy.engine.Engine - INFO - [cached since 0.08849s ago] ('cd183e7d-d354-4e04-adbe-1ef6134da184',)
2025-04-21 13:54:41,672 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:54:41,673 - sqlalchemy.engine.Engine - INFO - [cached since 5.415s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:54:41,674 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,674 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (datetime.datetime(2025, 4, 21, 13, 54, 41, 673247), datetime.datetime(2025, 4, 21, 13, 54, 41, 674238), 'cd183e7d-d354-4e04-adbe-1ef6134da184')
2025-04-21 13:54:41,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,687 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,687 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 13, 54, 41, 687246), 'cd183e7d-d354-4e04-adbe-1ef6134da184')
2025-04-21 13:54:41,688 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,695 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 13:54:41,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,697 - 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-21 13:54:41,698 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('efe6a91d-7239-4f2b-8e30-d889262cc898', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'cd183e7d-d354-4e04-adbe-1ef6134da184', datetime.datetime(2025, 4, 21, 13, 54, 41, 696248), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 54, 41, 697246), datetime.datetime(2025, 4, 21, 13, 54, 41, 697246), 0)
2025-04-21 13:54:41,699 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,706 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,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-21 13:54:41,707 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('efe6a91d-7239-4f2b-8e30-d889262cc898',)
2025-04-21 13:54:41,708 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 13:54:41,708 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 13:54:41,709 - 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-21 13:54:41,709 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 54, 41, 709247), 'efe6a91d-7239-4f2b-8e30-d889262cc898')
2025-04-21 13:54:41,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,716 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 13:54:41,717 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 13:54:41,717 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 13:54:41,718 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,719 - 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-21 13:54:41,719 - sqlalchemy.engine.Engine - INFO - [cached since 0.02165s ago] ('e0ada8cb-be21-4025-ab0f-802da7a25d6d', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'cd183e7d-d354-4e04-adbe-1ef6134da184', datetime.datetime(2025, 4, 21, 13, 54, 41, 718240), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 54, 41, 719248), datetime.datetime(2025, 4, 21, 13, 54, 41, 719248), 0)
2025-04-21 13:54:41,720 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,725 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e0ada8cb-be21-4025-ab0f-802da7a25d6d
2025-04-21 13:54:41,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,726 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:54:41,726 - sqlalchemy.engine.Engine - INFO - [cached since 0.0197s ago] ('e0ada8cb-be21-4025-ab0f-802da7a25d6d',)
2025-04-21 13:54:41,727 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 13:54:41,728 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 13:54:41,728 - 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-21 13:54:41,728 - sqlalchemy.engine.Engine - INFO - [cached since 0.01928s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 54, 41, 728246), 'e0ada8cb-be21-4025-ab0f-802da7a25d6d')
2025-04-21 13:54:41,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,737 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 13:54:41,737 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 13:54:41,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,738 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,738 - sqlalchemy.engine.Engine - INFO - [cached since 0.1566s ago] ('cd183e7d-d354-4e04-adbe-1ef6134da184',)
2025-04-21 13:54:41,739 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,741 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:54:41,741 - sqlalchemy.engine.Engine - INFO - [cached since 5.483s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:54:41,742 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,742 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,743 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:54:41,743 - sqlalchemy.engine.Engine - INFO - [cached since 5.485s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:54:41,743 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 13:54:41,744 - sqlalchemy.engine.Engine - INFO - [cached since 0.1804s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 13, 54, 41, 743514), None, None, 1002, None, None, None, 'cd183e7d-d354-4e04-adbe-1ef6134da184', 'cd183e7d-d354-4e04-adbe-1ef6134da184', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 13, 54, 41, 742514), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 13, 54, 41, 743514), datetime.datetime(2025, 4, 21, 13, 54, 41, 743514), 0)
2025-04-21 13:54:41,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,754 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,754 - sqlalchemy.engine.Engine - INFO - [cached since 0.1722s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:41,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,755 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 d39113c0-5c97-4fdc-a22f-1feba9dca3a1 (优先级 1) 添加到队列 0
2025-04-21 13:54:41,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,757 - sqlalchemy.engine.Engine - INFO - [cached since 0.1749s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:41,757 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: d39113c0-5c97-4fdc-a22f-1feba9dca3a1, 优先级: 1
2025-04-21 13:54:41,794 - services.execution.task_executor - DEBUG - 任务 d39113c0-5c97-4fdc-a22f-1feba9dca3a1 设置超时时间: 3600秒
2025-04-21 13:54:41,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,796 - sqlalchemy.engine.Engine - INFO - [cached since 0.2146s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:41,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:54:41,804 - sqlalchemy.engine.Engine - INFO - [cached since 5.546s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 13:54:41,810 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,811 - sqlalchemy.engine.Engine - INFO - [cached since 0.1367s ago] (datetime.datetime(2025, 4, 21, 13, 54, 41, 810200), datetime.datetime(2025, 4, 21, 13, 54, 41, 810200), 'd39113c0-5c97-4fdc-a22f-1feba9dca3a1')
2025-04-21 13:54:41,812 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,822 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:41,824 - sqlalchemy.engine.Engine - INFO - [cached since 0.1376s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 13, 54, 41, 822202), 'd39113c0-5c97-4fdc-a22f-1feba9dca3a1')
2025-04-21 13:54:41,828 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,837 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 13:54:41,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,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-21 13:54:41,844 - sqlalchemy.engine.Engine - INFO - [cached since 0.1473s ago] ('6e848443-8e87-46aa-ba97-e2424201378a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'd39113c0-5c97-4fdc-a22f-1feba9dca3a1', datetime.datetime(2025, 4, 21, 13, 54, 41, 839716), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 54, 41, 842714), datetime.datetime(2025, 4, 21, 13, 54, 41, 842714), 0)
2025-04-21 13:54:41,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,857 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,859 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:54:41,863 - sqlalchemy.engine.Engine - INFO - [cached since 0.1571s ago] ('6e848443-8e87-46aa-ba97-e2424201378a',)
2025-04-21 13:54:41,868 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 13:54:41,869 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 13:54:41,870 - 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-21 13:54:41,871 - sqlalchemy.engine.Engine - INFO - [cached since 0.162s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 54, 41, 870730), '6e848443-8e87-46aa-ba97-e2424201378a')
2025-04-21 13:54:41,872 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,879 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 13:54:41,879 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 13:54:41,883 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 13:54:41,886 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,887 - 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-21 13:54:41,891 - sqlalchemy.engine.Engine - INFO - [cached since 0.1946s ago] ('1175e970-db88-4a58-b340-8f7de397a8cb', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'd39113c0-5c97-4fdc-a22f-1feba9dca3a1', datetime.datetime(2025, 4, 21, 13, 54, 41, 886714), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 13, 54, 41, 887715), datetime.datetime(2025, 4, 21, 13, 54, 41, 887715), 0)
2025-04-21 13:54:41,895 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,904 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1175e970-db88-4a58-b340-8f7de397a8cb
2025-04-21 13:54:41,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:41,910 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:54:41,914 - sqlalchemy.engine.Engine - INFO - [cached since 0.2074s ago] ('1175e970-db88-4a58-b340-8f7de397a8cb',)
2025-04-21 13:54:41,918 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 13:54:41,919 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 13:54:41,919 - 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-21 13:54:41,921 - sqlalchemy.engine.Engine - INFO - [cached since 0.2128s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 13, 54, 41, 919733), '1175e970-db88-4a58-b340-8f7de397a8cb')
2025-04-21 13:54:41,924 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:41,933 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 13:54:44,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:44,751 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:44,751 - sqlalchemy.engine.Engine - INFO - [cached since 3.169s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:44,753 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:47,758 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:47,761 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:47,765 - sqlalchemy.engine.Engine - INFO - [cached since 6.183s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:47,768 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:50,787 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:50,787 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:50,791 - sqlalchemy.engine.Engine - INFO - [cached since 9.209s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:50,792 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:53,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:53,821 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:53,821 - sqlalchemy.engine.Engine - INFO - [cached since 12.24s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:53,823 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:55,187 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:55,188 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:54:55,188 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (1001, datetime.datetime(2025, 4, 21, 12, 54, 55, 187966))
2025-04-21 13:54:55,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:55,219 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:54:55,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:54:55,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:54:55,220 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:54:55,221 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:54:55,221 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:54:55,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:54:55,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:54:55,222 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:54:55,222 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:54:55,222 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:54:55,222 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:54:55,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:54:55,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:54:55,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:54:55,223 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:54:55,224 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:54:55,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:54:56,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:56,839 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:56,840 - sqlalchemy.engine.Engine - INFO - [cached since 15.26s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:56,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:56,998 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 13:54:56,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:56,999 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 13:54:57,000 - sqlalchemy.engine.Engine - INFO - [cached since 20.74s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 13:54:57,001 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:54:57,001 - sqlalchemy.engine.Engine - INFO - [cached since 20.74s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 13:54:57,001 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: cd183e7d-d354-4e04-adbe-1ef6134da184
2025-04-21 13:54:57,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:57,004 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:57,004 - sqlalchemy.engine.Engine - INFO - [cached since 15.42s ago] ('cd183e7d-d354-4e04-adbe-1ef6134da184',)
2025-04-21 13:54:57,006 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:54:57,006 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('cd183e7d-d354-4e04-adbe-1ef6134da184', 1001)
2025-04-21 13:54:57,007 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: d39113c0-5c97-4fdc-a22f-1feba9dca3a1, 父任务: cd183e7d-d354-4e04-adbe-1ef6134da184
2025-04-21 13:54:57,007 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: d39113c0-5c97-4fdc-a22f-1feba9dca3a1
2025-04-21 13:54:57,008 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:54:57,009 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:57,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:57,009 - sqlalchemy.engine.Engine - INFO - [cached since 15.43s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:57,011 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 13:54:57,011 - sqlalchemy.engine.Engine - INFO - [cached since 0.005009s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1', 1001)
2025-04-21 13:54:57,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:57,013 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:57,013 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:57,014 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (datetime.datetime(2025, 4, 21, 13, 54, 57, 12391), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 13, 54, 57, 13672), 'd39113c0-5c97-4fdc-a22f-1feba9dca3a1')
2025-04-21 13:54:57,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:57,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:57,024 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:57,025 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:57,025 - sqlalchemy.engine.Engine - INFO - [cached since 0.01093s ago] (datetime.datetime(2025, 4, 21, 13, 54, 57, 24486), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 13, 54, 57, 25044), 'cd183e7d-d354-4e04-adbe-1ef6134da184')
2025-04-21 13:54:57,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:57,031 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 13:54:57,032 - sqlalchemy.engine.Engine - INFO - [cached since 20.77s ago] (0, datetime.datetime(2025, 4, 21, 13, 54, 57, 31362), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 13:54:57,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:57,039 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0412秒
2025-04-21 13:54:59,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:59,860 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:59,861 - sqlalchemy.engine.Engine - INFO - [cached since 18.28s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:59,864 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:59,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:59,867 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:59,868 - sqlalchemy.engine.Engine - INFO - [cached since 18.29s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:59,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:59,870 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:59,871 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:59,871 - sqlalchemy.engine.Engine - INFO - [cached since 18.29s ago] ('d39113c0-5c97-4fdc-a22f-1feba9dca3a1',)
2025-04-21 13:54:59,873 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 13:54:59,875 - services.execution.handlers.sub_task - ERROR - 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'
2025-04-21 13:54:59,876 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:59,877 - 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-21 13:54:59,877 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('93307e6f-18ab-4e34-84a4-6074a9885bce', 3, '{"success": false, "message": "等待任务完成异常: \'VWEDTaskRecord\' object has no attribute \'result\'", "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "d39113c0-5c97-4fdc-a22f-1feba9dca3a1", "async": false, "output": {}, "taskStatus": null}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'cd183e7d-d354-4e04-adbe-1ef6134da184', datetime.datetime(2025, 4, 21, 13, 54, 59, 877543), datetime.datetime(2025, 4, 21, 13, 54, 59, 877543), 0)
2025-04-21 13:54:59,878 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:59,893 - services.execution.block_executor - ERROR - 子块 1 执行失败: 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'
2025-04-21 13:54:59,893 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:59,894 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 13:54:59,895 - sqlalchemy.engine.Engine - INFO - [cached since 18.19s ago] ('e0ada8cb-be21-4025-ab0f-802da7a25d6d',)
2025-04-21 13:54:59,896 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 13:54:59,896 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 13:54:59,896 - 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-21 13:54:59,897 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (datetime.datetime(2025, 4, 21, 13, 54, 59, 896932), "等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", 2000, '{\'subtaskResult\': {\'success\': False, \'message\': "等待任务完成异常: \'VWEDTaskRecord\' object has no attribute \'result\'", \'output\': {}, \'taskStatus\': None}}', "等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", datetime.datetime(2025, 4, 21, 13, 54, 59, 896932), 'e0ada8cb-be21-4025-ab0f-802da7a25d6d')
2025-04-21 13:54:59,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:59,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:59,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-21 13:54:59,907 - sqlalchemy.engine.Engine - INFO - [cached since 0.03011s ago] ('554ae190-7e6d-4ce5-bbf9-d1c08999bd13', 3, '{"success": false, "message": "子块 1 执行失败: 等待任务完成异常: \'VWEDTaskRecord\' object has no attribute \'result\'", "block_id": 1, "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "d39113c0-5c97-4fdc-a22f-1feba9dca3a1", "async": false, "output": {}, "taskStatus": null}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'cd183e7d-d354-4e04-adbe-1ef6134da184', datetime.datetime(2025, 4, 21, 13, 54, 59, 906925), datetime.datetime(2025, 4, 21, 13, 54, 59, 906925), 0)
2025-04-21 13:54:59,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:59,913 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:59,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-21 13:54:59,914 - sqlalchemy.engine.Engine - INFO - [cached since 18.21s ago] ('efe6a91d-7239-4f2b-8e30-d889262cc898',)
2025-04-21 13:54:59,914 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 13:54:59,915 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 13:54:59,915 - 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-21 13:54:59,915 - sqlalchemy.engine.Engine - INFO - [cached since 0.01873s ago] (datetime.datetime(2025, 4, 21, 13, 54, 59, 915613), "子块 1 执行失败: 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", 2000, '{\'subtaskResult\': {\'success\': False, \'message\': "等待任务完成异常: \'VWEDTaskRecord\' object has no attribute \'result\'", \'output\': {}, \'taskStatus\': None}}', "子块 1 执行失败: 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", datetime.datetime(2025, 4, 21, 13, 54, 59, 915613), 'efe6a91d-7239-4f2b-8e30-d889262cc898')
2025-04-21 13:54:59,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:59,922 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:54:59,923 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 13:54:59,923 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (datetime.datetime(2025, 4, 21, 13, 54, 59, 922574), "子块 1 执行失败: 等待任务完成异常: 'VWEDTaskRecord' object has no attribute 'result'", 2000, 18237, datetime.datetime(2025, 4, 21, 13, 54, 59, 923569), 'cd183e7d-d354-4e04-adbe-1ef6134da184')
2025-04-21 13:54:59,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:54:59,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: cd183e7d-d354-4e04-adbe-1ef6134da184, 结果: False
2025-04-21 13:55:55,190 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:55:55,192 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:55:55,192 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 12, 55, 55, 190271))
2025-04-21 13:55:55,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:55:55,282 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 13:55:55,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:55:55,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:55:55,282 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:55:55,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 13:55:55,283 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:55:55,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:55:55,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:55:55,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:55:55,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:55:55,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:55:55,286 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:55:55,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:55:55,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:55:55,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:55:55,286 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:55:55,286 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:55:55,286 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:55:55,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:55:55,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:55:55,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:55:55,287 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:55:55,287 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:55:55,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:56:10,299 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:56:10,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:56:10,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:56:10,307 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:56:10,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:56:10,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:56:55,208 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:56:55,208 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:56:55,210 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 12, 56, 55, 208137))
2025-04-21 13:56:55,212 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:56:55,362 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 13:56:55,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:56:55,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:56:55,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:56:55,363 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 13:56:55,364 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:56:55,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:56:55,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:56:55,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:56:55,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:56:55,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:56:55,365 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:56:55,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:56:55,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:56:55,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:56:55,365 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:56:55,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:56:55,365 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:56:55,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:56:55,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:56:55,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:56:55,366 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:56:55,366 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:56:55,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:57:10,394 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:57:10,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:57:10,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:57:10,397 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:57:10,397 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:57:10,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:57:55,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:57:55,220 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:57:55,221 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (1001, datetime.datetime(2025, 4, 21, 12, 57, 55, 219972))
2025-04-21 13:57:55,222 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:57:55,361 - root - INFO - 应用程序关闭中...
2025-04-21 13:57:55,361 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 13:57:55,361 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 13:57:55,361 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 13:57:55,361 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 13:57:55,361 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 13:57:55,362 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 13:57:55,362 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 13:57:55,362 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 13:57:55,362 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 13:57:55,362 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 13:57:55,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:57:55,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:57:55,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:57:55,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:57:55,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:57:55,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-21 13:57:55,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:57:55,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:57:55,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 2
2025-04-21 13:57:55,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:57:55,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:57:55,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 13:57:55,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:57:55,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:57:55,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 13:57:55,363 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 13:57:55,363 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 13:57:55,363 - root - INFO - 增强版任务调度器已停止
2025-04-21 13:57:55,363 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 13:57:55,364 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 13:57:55,364 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 13:57:55,364 - data.session - INFO - 数据库连接已关闭
2025-04-21 13:57:56,575 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 13:57:56,576 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 13:57:56,630 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 13:57:56,677 - data.session - INFO - 正在初始化数据库...
2025-04-21 13:57:56,722 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 13:57:56,741 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 13:57:56,743 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,743 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 13:57:56,743 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,743 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 13:57:56,745 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:57:56,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 13:57:56,746 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,747 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 13:57:56,748 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,750 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 13:57:56,751 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,752 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 13:57:56,754 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,758 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 13:57:56,760 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,760 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 13:57:56,762 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,763 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 13:57:56,764 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 13:57:56,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,768 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 13:57:56,768 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,769 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 13:57:56,769 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,771 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 13:57:56,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 13:57:56,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:57:56,774 - data.session - INFO - 数据库表初始化完成
2025-04-21 13:57:57,144 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 13:57:57,144 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 13:57:57,145 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 13:57:57,145 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 13:57:57,145 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 13:57:57,146 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 13:57:57,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 13:57:57,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 13:57:57,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 13:57:57,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 13:57:57,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:57:57,147 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 13:57:57,147 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 13:57:57,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:57:57,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:57:57,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:57:57,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:57:57,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:57:57,149 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 13:57:57,149 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 13:57:57,165 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:57:57,166 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 13:57:57,167 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:57:57,167 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 13:57:57,168 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:57:57,168 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 13:57:57,169 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 13:57:57,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:57:57,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 13:57:57,178 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (1, 1)
2025-04-21 13:57:57,179 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 13:57:57,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:57:57,180 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 13:57:57,180 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 13:57:57,181 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 13:57:57,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:57:57,183 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 13:57:57,183 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1000, 2000, 2001)
2025-04-21 13:57:57,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:57:57,187 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 13:57:57,187 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 13:57:57,187 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 13:57:57,187 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 13:57:57,189 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 13:57:57,189 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:57:57,190 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:57:57,191 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1001, datetime.datetime(2025, 4, 21, 12, 57, 57, 181687))
2025-04-21 13:57:57,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:58:57,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:58:57,195 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:58:57,196 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 12, 58, 57, 193018))
2025-04-21 13:58:57,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 13:59:12,139 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 13:59:12,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 13:59:12,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 13:59:12,140 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 13:59:12,140 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 13:59:12,140 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 13:59:12,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 13:59:12,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 13:59:12,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 13:59:12,141 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 13:59:12,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 13:59:12,141 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 13:59:12,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 13:59:12,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 13:59:12,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 13:59:12,141 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 13:59:12,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 13:59:12,141 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 13:59:12,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 13:59:12,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 13:59:12,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 13:59:12,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 13:59:12,142 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 13:59:12,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 13:59:12,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 13:59:12,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 13:59:12,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 13:59:12,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 13:59:12,142 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 13:59:12,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 13:59:57,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 13:59:57,196 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 13:59:57,196 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 12, 59, 57, 195504))
2025-04-21 13:59:57,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:00:12,198 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:00:12,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:00:12,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:00:12,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:00:12,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:00:12,203 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:00:12,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:00:12,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:00:12,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:00:12,204 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:00:12,205 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:00:12,205 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:00:12,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:00:12,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:00:12,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:00:12,206 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:00:12,206 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:00:12,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:00:12,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:00:12,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:00:12,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:00:12,206 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:00:12,206 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:00:12,207 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:00:12,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:00:12,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:00:12,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:00:12,207 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:00:12,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:00:12,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:00:57,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:00:57,206 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:00:57,206 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 13, 0, 57, 203331))
2025-04-21 14:00:57,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:01:12,245 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:01:12,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:01:12,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:01:12,246 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:01:12,246 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:01:12,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:01:12,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:01:12,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:01:12,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:01:12,246 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:01:12,246 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:01:12,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:01:12,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:01:12,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:01:12,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:01:12,247 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:01:12,247 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:01:12,247 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:01:12,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:01:12,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:01:12,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:01:12,249 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:01:12,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:01:12,249 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:01:12,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:01:12,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:01:12,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:01:12,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:01:12,250 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:01:12,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:01:57,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:01:57,222 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:01:57,222 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (1001, datetime.datetime(2025, 4, 21, 13, 1, 57, 220498))
2025-04-21 14:01:57,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:01:57,439 - root - INFO - 应用程序关闭中...
2025-04-21 14:01:57,439 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:01:57,439 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:01:57,439 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:01:57,440 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:01:57,440 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:01:57,440 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:01:57,440 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:01:57,442 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:01:57,442 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:01:57,442 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:01:57,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:01:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:01:57,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:01:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:01:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:01:57,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:01:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:01:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:01:57,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:01:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:01:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:01:57,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:01:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:01:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:01:57,444 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:01:57,444 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:01:57,444 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:01:57,444 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:01:57,444 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:01:57,444 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:01:57,444 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:01:57,444 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:01:58,684 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:01:58,684 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:01:58,742 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:01:58,797 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:01:58,838 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:01:58,862 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:01:58,862 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,865 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:01:58,869 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,872 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:01:58,874 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:01:58,880 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:01:58,884 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,890 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:01:58,890 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,896 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:01:58,897 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,898 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:01:58,899 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,900 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:01:58,904 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,909 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:01:58,912 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,914 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:01:58,917 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,920 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:01:58,920 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,922 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:01:58,923 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,929 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:01:58,933 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,939 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:01:58,943 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:01:58,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:01:58,955 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:01:59,318 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:01:59,319 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:01:59,321 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:01:59,323 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:01:59,325 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:01:59,326 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:01:59,327 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:01:59,328 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:01:59,330 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:01:59,333 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:01:59,335 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:01:59,335 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:01:59,337 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:01:59,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:01:59,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:01:59,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:01:59,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:01:59,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:01:59,342 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:01:59,342 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:01:59,358 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:01:59,360 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:01:59,361 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:01:59,363 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:01:59,363 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:01:59,365 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:01:59,365 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:01:59,366 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:01:59,380 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:01:59,381 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1, 1)
2025-04-21 14:01:59,381 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:01:59,382 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:01:59,382 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:01:59,383 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:01:59,383 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:01:59,384 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:01:59,386 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:01:59,386 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (1000, 2000, 2001)
2025-04-21 14:01:59,405 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:01:59,406 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:01:59,407 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:01:59,407 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:01:59,407 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:01:59,407 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:01:59,408 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:01:59,409 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:01:59,409 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (1001, datetime.datetime(2025, 4, 21, 13, 1, 59, 383678))
2025-04-21 14:01:59,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:02:59,370 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:02:59,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:02:59,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:02:59,372 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:02:59,373 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:02:59,375 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:02:59,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:02:59,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:02:59,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:02:59,384 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:02:59,386 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:02:59,386 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:02:59,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:02:59,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:02:59,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:02:59,393 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:02:59,394 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:02:59,396 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:02:59,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:02:59,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:02:59,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:02:59,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:02:59,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:02:59,403 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:02:59,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:02:59,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:02:59,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:02:59,403 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:02:59,404 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:02:59,408 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 21, 13, 2, 59, 398967))
2025-04-21 14:02:59,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:02:59,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:02:59,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:02:59,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:03:53,248 - root - INFO - 应用程序关闭中...
2025-04-21 14:03:53,248 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:03:53,248 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:03:53,248 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:03:53,249 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:03:53,249 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:03:53,249 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:03:53,249 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:03:53,249 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:03:53,250 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:03:53,251 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:03:53,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:03:53,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:03:53,252 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:03:53,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:03:53,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:03:53,252 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:03:53,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:03:53,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:03:53,252 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:03:53,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:03:53,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:03:53,253 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:03:53,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:03:53,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:03:53,253 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:03:53,253 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:03:53,253 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:03:53,253 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:03:53,253 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:03:53,256 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:03:53,256 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:03:53,256 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:03:54,613 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:03:54,613 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:03:54,681 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:03:54,737 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:03:54,769 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:03:54,793 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:03:54,793 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,794 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:03:54,795 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,797 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:03:54,798 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:03:54,802 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:03:54,803 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,807 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:03:54,808 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,812 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:03:54,815 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,818 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:03:54,822 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,825 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:03:54,828 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,833 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:03:54,836 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,841 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:03:54,842 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,845 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:03:54,846 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,851 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:03:54,853 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,856 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:03:54,856 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,857 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:03:54,859 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:03:54,864 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:03:54,867 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:03:55,247 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:03:55,248 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:03:55,249 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:03:55,252 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:03:55,254 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:03:55,256 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:03:55,258 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:03:55,259 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:03:55,259 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:03:55,259 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:03:55,259 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:03:55,260 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:03:55,261 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:03:55,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:03:55,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:03:55,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:03:55,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:03:55,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:03:55,266 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:03:55,266 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:03:55,291 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:03:55,292 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:03:55,293 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:03:55,293 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:03:55,294 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:03:55,294 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:03:55,294 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:03:55,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:03:55,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:03:55,304 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (1, 1)
2025-04-21 14:03:55,305 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:03:55,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:03:55,306 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:03:55,306 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:03:55,306 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:03:55,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:03:55,308 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:03:55,309 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1000, 2000, 2001)
2025-04-21 14:03:55,321 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:03:55,322 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:03:55,322 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:03:55,322 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:03:55,322 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:03:55,323 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:03:55,323 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:03:55,324 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:03:55,324 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1001, datetime.datetime(2025, 4, 21, 13, 3, 55, 306820))
2025-04-21 14:03:55,325 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:31,891 - root - INFO - 应用程序关闭中...
2025-04-21 14:04:31,891 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:04:31,891 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:04:31,892 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:04:31,892 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:04:31,892 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:04:31,892 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:04:31,892 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:04:31,894 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:04:31,894 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:04:31,894 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:04:31,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:04:31,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:04:31,906 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:04:31,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:04:31,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:04:31,911 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:04:31,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:04:31,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:04:31,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:04:31,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:04:31,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:04:31,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:04:31,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:04:31,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:04:31,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:04:31,932 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:04:31,934 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:04:31,937 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:04:31,939 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:04:31,942 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:04:31,944 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:04:31,946 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:04:33,959 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:04:33,960 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:04:34,626 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:04:34,627 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:04:34,689 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:04:34,735 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:04:34,770 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:04:34,796 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:04:34,796 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,799 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:04:34,799 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,799 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:04:34,799 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:34,800 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:04:34,800 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,801 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:04:34,801 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,803 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:04:34,803 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,804 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:04:34,804 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,805 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:04:34,805 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,806 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:04:34,807 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,807 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:04:34,808 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,808 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:04:34,809 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,809 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:04:34,810 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,810 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:04:34,811 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,812 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:04:34,812 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:04:34,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:34,813 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:04:35,164 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:04:35,165 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:04:35,165 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:04:35,165 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:04:35,166 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:04:35,166 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:04:35,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:04:35,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:04:35,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:04:35,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:04:35,168 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:04:35,168 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:04:35,168 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:04:35,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:04:35,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:04:35,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:04:35,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:04:35,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:04:35,171 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:04:35,171 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:04:35,189 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:04:35,190 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:04:35,191 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:04:35,191 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:04:35,192 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:04:35,192 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:04:35,192 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:04:35,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:35,201 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:04:35,202 - sqlalchemy.engine.Engine - INFO - [generated in 0.00098s] (1, 1)
2025-04-21 14:04:35,203 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:04:35,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:35,204 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:04:35,205 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:04:35,205 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:04:35,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:35,207 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:04:35,208 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1000, 2000, 2001)
2025-04-21 14:04:35,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:35,221 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:04:35,223 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:04:35,223 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:04:35,223 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:04:35,223 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:04:35,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:35,225 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:04:35,226 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1001, datetime.datetime(2025, 4, 21, 13, 4, 35, 205588))
2025-04-21 14:04:35,227 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:42,826 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 14:04:42,830 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:42,833 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:04:42,833 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:04:42,835 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:42,841 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:42,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:04:42,842 - sqlalchemy.engine.Engine - INFO - [cached since 0.009725s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:04:42,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:42,843 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 14:04:42,843 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:42,843 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:04:42,843 - sqlalchemy.engine.Engine - INFO - [cached since 0.01141s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:04:42,846 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 14:04:42,846 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] ('3915d4cf-c0c4-455f-bace-9605c7ad3cba', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 14, 4, 42, 844911), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 14, 4, 42, 843967), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 14, 4, 42, 846996), datetime.datetime(2025, 4, 21, 14, 4, 42, 846996), 0)
2025-04-21 14:04:42,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:42,861 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:42,863 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:42,864 - sqlalchemy.engine.Engine - INFO - [generated in 0.00147s] ('3915d4cf-c0c4-455f-bace-9605c7ad3cba',)
2025-04-21 14:04:42,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:42,866 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3915d4cf-c0c4-455f-bace-9605c7ad3cba (优先级 1) 添加到队列 0
2025-04-21 14:04:42,867 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0413秒
2025-04-21 14:04:42,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3915d4cf-c0c4-455f-bace-9605c7ad3cba, 优先级: 1
2025-04-21 14:04:42,961 - services.execution.task_executor - DEBUG - 任务 3915d4cf-c0c4-455f-bace-9605c7ad3cba 设置超时时间: 3600秒
2025-04-21 14:04:42,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:42,963 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:42,968 - sqlalchemy.engine.Engine - INFO - [cached since 0.1049s ago] ('3915d4cf-c0c4-455f-bace-9605c7ad3cba',)
2025-04-21 14:04:42,972 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:04:42,975 - sqlalchemy.engine.Engine - INFO - [cached since 0.1427s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:04:42,979 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:42,984 - sqlalchemy.engine.Engine - INFO - [generated in 0.00540s] (datetime.datetime(2025, 4, 21, 14, 4, 42, 978071), datetime.datetime(2025, 4, 21, 14, 4, 42, 979054), '3915d4cf-c0c4-455f-bace-9605c7ad3cba')
2025-04-21 14:04:42,986 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:42,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,003 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:43,006 - sqlalchemy.engine.Engine - INFO - [generated in 0.00334s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 14, 4, 43, 3141), '3915d4cf-c0c4-455f-bace-9605c7ad3cba')
2025-04-21 14:04:43,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,014 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 14:04:43,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,020 - 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-21 14:04:43,023 - sqlalchemy.engine.Engine - INFO - [generated in 0.00235s] ('86a3a197-e869-4c0b-b5ca-6415ec42b249', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '3915d4cf-c0c4-455f-bace-9605c7ad3cba', datetime.datetime(2025, 4, 21, 14, 4, 43, 15156), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 4, 43, 20136), datetime.datetime(2025, 4, 21, 14, 4, 43, 20136), 0)
2025-04-21 14:04:43,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,036 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,039 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:04:43,041 - sqlalchemy.engine.Engine - INFO - [generated in 0.00133s] ('86a3a197-e869-4c0b-b5ca-6415ec42b249',)
2025-04-21 14:04:43,045 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:04:43,046 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:04:43,049 - 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-21 14:04:43,052 - sqlalchemy.engine.Engine - INFO - [generated in 0.00335s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 4, 43, 49037), '86a3a197-e869-4c0b-b5ca-6415ec42b249')
2025-04-21 14:04:43,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,063 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 14:04:43,064 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 14:04:43,064 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 14:04:43,066 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,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-21 14:04:43,068 - sqlalchemy.engine.Engine - INFO - [cached since 0.04745s ago] ('a005a35e-3c95-45b0-8c3b-0c90b8c792f8', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '3915d4cf-c0c4-455f-bace-9605c7ad3cba', datetime.datetime(2025, 4, 21, 14, 4, 43, 65158), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 4, 43, 67043), datetime.datetime(2025, 4, 21, 14, 4, 43, 67043), 0)
2025-04-21 14:04:43,069 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,077 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a005a35e-3c95-45b0-8c3b-0c90b8c792f8
2025-04-21 14:04:43,078 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,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-21 14:04:43,079 - sqlalchemy.engine.Engine - INFO - [cached since 0.04071s ago] ('a005a35e-3c95-45b0-8c3b-0c90b8c792f8',)
2025-04-21 14:04:43,081 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:04:43,081 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:04:43,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-21 14:04:43,082 - sqlalchemy.engine.Engine - INFO - [cached since 0.0342s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 4, 43, 81778), 'a005a35e-3c95-45b0-8c3b-0c90b8c792f8')
2025-04-21 14:04:43,083 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,091 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 14:04:43,091 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 14:04:43,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,092 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:43,093 - sqlalchemy.engine.Engine - INFO - [cached since 0.2306s ago] ('3915d4cf-c0c4-455f-bace-9605c7ad3cba',)
2025-04-21 14:04:43,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:04:43,095 - sqlalchemy.engine.Engine - INFO - [cached since 0.2631s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:04:43,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,097 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:04:43,097 - sqlalchemy.engine.Engine - INFO - [cached since 0.2649s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:04:43,098 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 14:04:43,098 - sqlalchemy.engine.Engine - INFO - [cached since 0.2522s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 14, 4, 43, 97891), None, None, 1002, None, None, None, '3915d4cf-c0c4-455f-bace-9605c7ad3cba', '3915d4cf-c0c4-455f-bace-9605c7ad3cba', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 14, 4, 43, 96890), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 14, 4, 43, 98890), datetime.datetime(2025, 4, 21, 14, 4, 43, 98890), 0)
2025-04-21 14:04:43,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,105 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:43,105 - sqlalchemy.engine.Engine - INFO - [cached since 0.2433s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac',)
2025-04-21 14:04:43,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,107 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 0dd3565f-a43d-4a73-b523-bcd5bb0215ac (优先级 1) 添加到队列 0
2025-04-21 14:04:43,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,109 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:43,110 - sqlalchemy.engine.Engine - INFO - [cached since 0.2477s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac',)
2025-04-21 14:04:43,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 0dd3565f-a43d-4a73-b523-bcd5bb0215ac, 优先级: 1
2025-04-21 14:04:43,160 - services.execution.task_executor - DEBUG - 任务 0dd3565f-a43d-4a73-b523-bcd5bb0215ac 设置超时时间: 3600秒
2025-04-21 14:04:43,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,161 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:43,162 - sqlalchemy.engine.Engine - INFO - [cached since 0.2997s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac',)
2025-04-21 14:04:43,165 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:04:43,165 - sqlalchemy.engine.Engine - INFO - [cached since 0.3327s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:04:43,167 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:43,167 - sqlalchemy.engine.Engine - INFO - [cached since 0.1889s ago] (datetime.datetime(2025, 4, 21, 14, 4, 43, 166727), datetime.datetime(2025, 4, 21, 14, 4, 43, 167773), '0dd3565f-a43d-4a73-b523-bcd5bb0215ac')
2025-04-21 14:04:43,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,176 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:43,177 - sqlalchemy.engine.Engine - INFO - [cached since 0.174s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 14, 4, 43, 176156), '0dd3565f-a43d-4a73-b523-bcd5bb0215ac')
2025-04-21 14:04:43,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,183 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 14:04:43,183 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,184 - 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-21 14:04:43,184 - sqlalchemy.engine.Engine - INFO - [cached since 0.1642s ago] ('eeb9515a-241b-40c7-9790-57ffabbf246e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '0dd3565f-a43d-4a73-b523-bcd5bb0215ac', datetime.datetime(2025, 4, 21, 14, 4, 43, 183159), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 4, 43, 184160), datetime.datetime(2025, 4, 21, 14, 4, 43, 184160), 0)
2025-04-21 14:04:43,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,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-21 14:04:43,193 - sqlalchemy.engine.Engine - INFO - [cached since 0.1542s ago] ('eeb9515a-241b-40c7-9790-57ffabbf246e',)
2025-04-21 14:04:43,194 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:04:43,195 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:04:43,195 - 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-21 14:04:43,195 - sqlalchemy.engine.Engine - INFO - [cached since 0.1468s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 4, 43, 195301), 'eeb9515a-241b-40c7-9790-57ffabbf246e')
2025-04-21 14:04:43,196 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,202 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 14:04:43,202 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 14:04:43,203 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 14:04:43,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,204 - 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-21 14:04:43,204 - sqlalchemy.engine.Engine - INFO - [cached since 0.1845s ago] ('2d5f1aff-0548-4430-9788-72580a105381', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '0dd3565f-a43d-4a73-b523-bcd5bb0215ac', datetime.datetime(2025, 4, 21, 14, 4, 43, 203631), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 4, 43, 204631), datetime.datetime(2025, 4, 21, 14, 4, 43, 204631), 0)
2025-04-21 14:04:43,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,214 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2d5f1aff-0548-4430-9788-72580a105381
2025-04-21 14:04:43,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:43,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-21 14:04:43,215 - sqlalchemy.engine.Engine - INFO - [cached since 0.1764s ago] ('2d5f1aff-0548-4430-9788-72580a105381',)
2025-04-21 14:04:43,216 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:04:43,216 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:04:43,216 - 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-21 14:04:43,217 - sqlalchemy.engine.Engine - INFO - [cached since 0.1687s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 4, 43, 216639), '2d5f1aff-0548-4430-9788-72580a105381')
2025-04-21 14:04:43,217 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:43,226 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 14:04:46,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:46,108 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:46,109 - sqlalchemy.engine.Engine - INFO - [cached since 3.246s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac',)
2025-04-21 14:04:46,111 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:49,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:49,127 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:49,128 - sqlalchemy.engine.Engine - INFO - [cached since 6.265s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac',)
2025-04-21 14:04:49,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:52,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:52,138 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:52,138 - sqlalchemy.engine.Engine - INFO - [cached since 9.276s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac',)
2025-04-21 14:04:52,140 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:53,860 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 14:04:53,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:53,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:04:53,870 - sqlalchemy.engine.Engine - INFO - [cached since 11.04s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:04:53,875 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:04:53,875 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 14:04:53,875 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 3915d4cf-c0c4-455f-bace-9605c7ad3cba
2025-04-21 14:04:53,876 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:53,876 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:53,878 - sqlalchemy.engine.Engine - INFO - [cached since 11.01s ago] ('3915d4cf-c0c4-455f-bace-9605c7ad3cba',)
2025-04-21 14:04:53,879 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:04:53,879 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('3915d4cf-c0c4-455f-bace-9605c7ad3cba', 1001)
2025-04-21 14:04:53,880 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 0dd3565f-a43d-4a73-b523-bcd5bb0215ac, 父任务: 3915d4cf-c0c4-455f-bace-9605c7ad3cba
2025-04-21 14:04:53,880 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 0dd3565f-a43d-4a73-b523-bcd5bb0215ac
2025-04-21 14:04:53,883 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:04:53,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:53,883 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:53,884 - sqlalchemy.engine.Engine - INFO - [cached since 11.02s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac',)
2025-04-21 14:04:53,885 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:04:53,885 - sqlalchemy.engine.Engine - INFO - [cached since 0.006321s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac', 1001)
2025-04-21 14:04:53,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:53,887 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:53,888 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:53,888 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (datetime.datetime(2025, 4, 21, 14, 4, 53, 887601), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 14, 4, 53, 888600), '0dd3565f-a43d-4a73-b523-bcd5bb0215ac')
2025-04-21 14:04:53,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:53,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:53,897 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:53,897 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:53,897 - sqlalchemy.engine.Engine - INFO - [cached since 0.009766s ago] (datetime.datetime(2025, 4, 21, 14, 4, 53, 897601), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 14, 4, 53, 897601), '3915d4cf-c0c4-455f-bace-9605c7ad3cba')
2025-04-21 14:04:53,898 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:53,905 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 14:04:53,905 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (0, datetime.datetime(2025, 4, 21, 14, 4, 53, 905601), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 14:04:53,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:53,913 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0527秒
2025-04-21 14:04:55,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:55,160 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:55,160 - sqlalchemy.engine.Engine - INFO - [cached since 12.3s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac',)
2025-04-21 14:04:55,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:55,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:55,162 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:55,162 - sqlalchemy.engine.Engine - INFO - [cached since 12.3s ago] ('0dd3565f-a43d-4a73-b523-bcd5bb0215ac',)
2025-04-21 14:04:55,163 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:55,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:55,170 - 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-21 14:04:55,172 - sqlalchemy.engine.Engine - INFO - [generated in 0.00215s] ('2cbe7d85-1641-4361-8936-628d2e5f9691', 3, '{"success": false, "message": "子任务执行失败: 任务被取消", "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "0dd3565f-a43d-4a73-b523-bcd5bb0215ac", "async": false, "output": {}, "taskStatus": 2001}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '3915d4cf-c0c4-455f-bace-9605c7ad3cba', datetime.datetime(2025, 4, 21, 14, 4, 55, 170906), datetime.datetime(2025, 4, 21, 14, 4, 55, 170906), 0)
2025-04-21 14:04:55,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:55,183 - services.execution.block_executor - ERROR - 子块 1 执行失败: 子任务执行失败: 任务被取消
2025-04-21 14:04:55,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:55,188 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:04:55,190 - sqlalchemy.engine.Engine - INFO - [cached since 12.15s ago] ('a005a35e-3c95-45b0-8c3b-0c90b8c792f8',)
2025-04-21 14:04:55,190 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:04:55,191 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:04:55,193 - 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-21 14:04:55,197 - sqlalchemy.engine.Engine - INFO - [generated in 0.00381s] (datetime.datetime(2025, 4, 21, 14, 4, 55, 193024), '子任务执行失败: 任务被取消', 2000, "{'subtaskResult': {'success': False, 'message': '子任务执行失败: 任务被取消', 'output': {}, 'taskStatus': 2001}}", '子任务执行失败: 任务被取消', datetime.datetime(2025, 4, 21, 14, 4, 55, 193920), 'a005a35e-3c95-45b0-8c3b-0c90b8c792f8')
2025-04-21 14:04:55,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:55,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:55,214 - 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-21 14:04:55,215 - sqlalchemy.engine.Engine - INFO - [cached since 0.04469s ago] ('2db425d8-2cb0-403f-9def-a735a0130ed0', 3, '{"success": false, "message": "子块 1 执行失败: 子任务执行失败: 任务被取消", "block_id": 1, "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "0dd3565f-a43d-4a73-b523-bcd5bb0215ac", "async": false, "output": {}, "taskStatus": 2001}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '3915d4cf-c0c4-455f-bace-9605c7ad3cba', datetime.datetime(2025, 4, 21, 14, 4, 55, 214919), datetime.datetime(2025, 4, 21, 14, 4, 55, 214919), 0)
2025-04-21 14:04:55,215 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:55,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:55,227 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:04:55,231 - sqlalchemy.engine.Engine - INFO - [cached since 12.19s ago] ('86a3a197-e869-4c0b-b5ca-6415ec42b249',)
2025-04-21 14:04:55,233 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:04:55,235 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:04:55,237 - 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-21 14:04:55,240 - sqlalchemy.engine.Engine - INFO - [cached since 0.04697s ago] (datetime.datetime(2025, 4, 21, 14, 4, 55, 237055), '子块 1 执行失败: 子任务执行失败: 任务被取消', 2000, "{'subtaskResult': {'success': False, 'message': '子任务执行失败: 任务被取消', 'output': {}, 'taskStatus': 2001}}", '子块 1 执行失败: 子任务执行失败: 任务被取消', datetime.datetime(2025, 4, 21, 14, 4, 55, 237055), '86a3a197-e869-4c0b-b5ca-6415ec42b249')
2025-04-21 14:04:55,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:55,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:04:55,259 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:04:55,259 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (datetime.datetime(2025, 4, 21, 14, 4, 55, 254016), '子块 1 执行失败: 子任务执行失败: 任务被取消', 2000, 12255, datetime.datetime(2025, 4, 21, 14, 4, 55, 259016), '3915d4cf-c0c4-455f-bace-9605c7ad3cba')
2025-04-21 14:04:55,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:04:55,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 3915d4cf-c0c4-455f-bace-9605c7ad3cba, 结果: False
2025-04-21 14:05:35,171 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:05:35,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:05:35,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:05:35,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:05:35,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:05:35,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:05:35,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:05:35,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:05:35,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:05:35,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:05:35,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:05:35,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:05:35,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:05:35,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:05:35,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:05:35,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:05:35,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:05:35,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:05:35,233 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:05:35,233 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:05:35,233 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 13, 5, 35, 232772))
2025-04-21 14:05:35,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:05:50,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:05:50,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:05:50,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:05:50,168 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:05:50,168 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:05:50,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:06:05,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:06:05,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:06:05,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:06:05,173 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:06:05,173 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:06:05,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:06:21,325 - root - INFO - 应用程序关闭中...
2025-04-21 14:06:21,327 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:06:21,327 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:06:21,327 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:06:21,329 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:06:21,329 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:06:21,329 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:06:21,330 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:06:21,330 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:06:21,330 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:06:21,330 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:06:21,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:06:21,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:06:21,331 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:06:21,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:06:21,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:06:21,331 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 3
2025-04-21 14:06:21,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:06:21,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:06:21,332 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 2
2025-04-21 14:06:21,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:06:21,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:06:21,333 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 1
2025-04-21 14:06:21,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:06:21,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:06:21,333 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-21 14:06:21,334 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:06:21,334 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:06:21,334 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:06:21,334 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:06:21,335 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:06:21,335 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:06:21,335 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:06:23,900 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:06:23,900 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:06:24,596 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:06:24,596 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:06:24,654 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:06:24,702 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:06:24,729 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:06:24,741 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:06:24,741 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,742 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:06:24,742 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,742 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:06:24,742 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,743 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:24,743 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:06:24,743 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,744 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:06:24,745 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,748 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:06:24,748 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,756 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:06:24,757 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,762 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:06:24,765 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:06:24,768 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,769 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:06:24,770 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,771 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:06:24,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,773 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:06:24,773 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,774 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:06:24,775 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,775 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:06:24,776 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:06:24,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:24,778 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:06:25,122 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:06:25,122 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:06:25,122 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:06:25,123 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:06:25,123 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:06:25,123 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:06:25,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:06:25,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:06:25,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:06:25,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:06:25,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:06:25,124 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:06:25,124 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:06:25,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:06:25,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:06:25,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:06:25,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:06:25,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:06:25,126 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:06:25,126 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:06:25,127 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:06:25,127 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:06:25,128 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:06:25,128 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:06:25,128 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:06:25,129 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:06:25,129 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:06:25,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:25,139 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:06:25,139 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1, 1)
2025-04-21 14:06:25,140 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:06:25,140 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:25,141 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:06:25,141 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:06:25,141 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:06:25,142 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:25,143 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:06:25,143 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1000, 2000, 2001)
2025-04-21 14:06:25,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:25,144 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:06:25,144 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:06:25,144 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:06:25,144 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:06:25,145 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:06:25,146 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:25,149 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:06:25,149 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (1001, datetime.datetime(2025, 4, 21, 13, 6, 25, 141114))
2025-04-21 14:06:25,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:33,965 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 14:06:33,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:33,969 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:06:33,969 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:06:33,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:33,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:33,972 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:06:33,973 - sqlalchemy.engine.Engine - INFO - [cached since 0.00421s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:06:33,974 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:33,975 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 14:06:33,976 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:33,977 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:06:33,977 - sqlalchemy.engine.Engine - INFO - [cached since 0.008473s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:06:33,979 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 14:06:33,980 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('8645f0e0-850a-4a85-9e40-25d110ab4367', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 14, 6, 33, 978349), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 14, 6, 33, 975350), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 14, 6, 33, 979351), datetime.datetime(2025, 4, 21, 14, 6, 33, 979351), 0)
2025-04-21 14:06:33,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:33,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:33,997 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:33,997 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('8645f0e0-850a-4a85-9e40-25d110ab4367',)
2025-04-21 14:06:33,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:33,999 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 8645f0e0-850a-4a85-9e40-25d110ab4367 (优先级 1) 添加到队列 0
2025-04-21 14:06:34,000 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0351秒
2025-04-21 14:06:34,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 8645f0e0-850a-4a85-9e40-25d110ab4367, 优先级: 1
2025-04-21 14:06:34,048 - services.execution.task_executor - DEBUG - 任务 8645f0e0-850a-4a85-9e40-25d110ab4367 设置超时时间: 3600秒
2025-04-21 14:06:34,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,053 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:34,053 - sqlalchemy.engine.Engine - INFO - [cached since 0.05572s ago] ('8645f0e0-850a-4a85-9e40-25d110ab4367',)
2025-04-21 14:06:34,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:06:34,057 - sqlalchemy.engine.Engine - INFO - [cached since 0.08775s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:06:34,059 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:34,060 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (datetime.datetime(2025, 4, 21, 14, 6, 34, 58259), datetime.datetime(2025, 4, 21, 14, 6, 34, 59241), '8645f0e0-850a-4a85-9e40-25d110ab4367')
2025-04-21 14:06:34,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,073 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,076 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:34,077 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 14, 6, 34, 76129), '8645f0e0-850a-4a85-9e40-25d110ab4367')
2025-04-21 14:06:34,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,090 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 14:06:34,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,094 - 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-21 14:06:34,096 - sqlalchemy.engine.Engine - INFO - [generated in 0.00271s] ('a0ba5248-af12-4b85-aba1-f798b4ad7754', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '8645f0e0-850a-4a85-9e40-25d110ab4367', datetime.datetime(2025, 4, 21, 14, 6, 34, 91178), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 6, 34, 94351), datetime.datetime(2025, 4, 21, 14, 6, 34, 94351), 0)
2025-04-21 14:06:34,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,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-21 14:06:34,112 - sqlalchemy.engine.Engine - INFO - [generated in 0.00221s] ('a0ba5248-af12-4b85-aba1-f798b4ad7754',)
2025-04-21 14:06:34,114 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:06:34,116 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:06:34,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-21 14:06:34,121 - sqlalchemy.engine.Engine - INFO - [generated in 0.00335s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 6, 34, 117163), 'a0ba5248-af12-4b85-aba1-f798b4ad7754')
2025-04-21 14:06:34,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,134 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 14:06:34,136 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 14:06:34,138 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 14:06:34,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,139 - 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-21 14:06:34,140 - sqlalchemy.engine.Engine - INFO - [cached since 0.04598s ago] ('d1e14000-da48-463a-8aa3-9c21eb4275d0', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '8645f0e0-850a-4a85-9e40-25d110ab4367', datetime.datetime(2025, 4, 21, 14, 6, 34, 138136), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 6, 34, 139128), datetime.datetime(2025, 4, 21, 14, 6, 34, 139128), 0)
2025-04-21 14:06:34,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,146 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: d1e14000-da48-463a-8aa3-9c21eb4275d0
2025-04-21 14:06:34,146 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,147 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:06:34,147 - sqlalchemy.engine.Engine - INFO - [cached since 0.03762s ago] ('d1e14000-da48-463a-8aa3-9c21eb4275d0',)
2025-04-21 14:06:34,148 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:06:34,148 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:06:34,149 - 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-21 14:06:34,149 - sqlalchemy.engine.Engine - INFO - [cached since 0.0315s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 6, 34, 149128), 'd1e14000-da48-463a-8aa3-9c21eb4275d0')
2025-04-21 14:06:34,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,156 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 14:06:34,156 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 14:06:34,156 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,156 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:34,157 - sqlalchemy.engine.Engine - INFO - [cached since 0.1599s ago] ('8645f0e0-850a-4a85-9e40-25d110ab4367',)
2025-04-21 14:06:34,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,159 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:06:34,159 - sqlalchemy.engine.Engine - INFO - [cached since 0.1903s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:06:34,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:06:34,162 - sqlalchemy.engine.Engine - INFO - [cached since 0.1935s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:06:34,163 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 14:06:34,163 - sqlalchemy.engine.Engine - INFO - [cached since 0.1841s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 14, 6, 34, 163519), None, None, 1002, None, None, None, '8645f0e0-850a-4a85-9e40-25d110ab4367', '8645f0e0-850a-4a85-9e40-25d110ab4367', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 14, 6, 34, 162519), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 14, 6, 34, 163519), datetime.datetime(2025, 4, 21, 14, 6, 34, 163519), 0)
2025-04-21 14:06:34,164 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,170 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:34,170 - sqlalchemy.engine.Engine - INFO - [cached since 0.1728s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0',)
2025-04-21 14:06:34,171 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,171 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 5a7a31b2-a960-4c40-a299-3d3ad85870f0 (优先级 1) 添加到队列 0
2025-04-21 14:06:34,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,177 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:34,177 - sqlalchemy.engine.Engine - INFO - [cached since 0.1796s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0',)
2025-04-21 14:06:34,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 5a7a31b2-a960-4c40-a299-3d3ad85870f0, 优先级: 1
2025-04-21 14:06:34,251 - services.execution.task_executor - DEBUG - 任务 5a7a31b2-a960-4c40-a299-3d3ad85870f0 设置超时时间: 3600秒
2025-04-21 14:06:34,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,252 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:34,254 - sqlalchemy.engine.Engine - INFO - [cached since 0.2563s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0',)
2025-04-21 14:06:34,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:06:34,255 - sqlalchemy.engine.Engine - INFO - [cached since 0.2861s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:06:34,256 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:34,256 - sqlalchemy.engine.Engine - INFO - [cached since 0.1974s ago] (datetime.datetime(2025, 4, 21, 14, 6, 34, 256323), datetime.datetime(2025, 4, 21, 14, 6, 34, 256323), '5a7a31b2-a960-4c40-a299-3d3ad85870f0')
2025-04-21 14:06:34,258 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,264 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,264 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:34,265 - sqlalchemy.engine.Engine - INFO - [cached since 0.1889s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 14, 6, 34, 264324), '5a7a31b2-a960-4c40-a299-3d3ad85870f0')
2025-04-21 14:06:34,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,271 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 14:06:34,272 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,276 - 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-21 14:06:34,276 - sqlalchemy.engine.Engine - INFO - [cached since 0.1827s ago] ('0bc2f75b-3058-483f-9f85-210332c0e165', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '5a7a31b2-a960-4c40-a299-3d3ad85870f0', datetime.datetime(2025, 4, 21, 14, 6, 34, 272385), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 6, 34, 275394), datetime.datetime(2025, 4, 21, 14, 6, 34, 275394), 0)
2025-04-21 14:06:34,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,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-21 14:06:34,284 - sqlalchemy.engine.Engine - INFO - [cached since 0.1748s ago] ('0bc2f75b-3058-483f-9f85-210332c0e165',)
2025-04-21 14:06:34,285 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:06:34,285 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:06:34,285 - 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-21 14:06:34,285 - sqlalchemy.engine.Engine - INFO - [cached since 0.168s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 6, 34, 285389), '0bc2f75b-3058-483f-9f85-210332c0e165')
2025-04-21 14:06:34,286 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,291 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 14:06:34,291 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 14:06:34,292 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 14:06:34,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,293 - 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-21 14:06:34,293 - sqlalchemy.engine.Engine - INFO - [cached since 0.1996s ago] ('5eb8beb8-afb0-4926-9f36-8e86d399b419', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '5a7a31b2-a960-4c40-a299-3d3ad85870f0', datetime.datetime(2025, 4, 21, 14, 6, 34, 292389), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 6, 34, 293394), datetime.datetime(2025, 4, 21, 14, 6, 34, 293394), 0)
2025-04-21 14:06:34,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,300 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 5eb8beb8-afb0-4926-9f36-8e86d399b419
2025-04-21 14:06:34,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:34,301 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:06:34,301 - sqlalchemy.engine.Engine - INFO - [cached since 0.1918s ago] ('5eb8beb8-afb0-4926-9f36-8e86d399b419',)
2025-04-21 14:06:34,302 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:06:34,302 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:06:34,302 - 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-21 14:06:34,302 - sqlalchemy.engine.Engine - INFO - [cached since 0.1853s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 6, 34, 302398), '5eb8beb8-afb0-4926-9f36-8e86d399b419')
2025-04-21 14:06:34,303 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:34,309 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 14:06:37,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:37,198 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:37,198 - sqlalchemy.engine.Engine - INFO - [cached since 3.201s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0',)
2025-04-21 14:06:37,199 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:40,190 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:40,193 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:40,193 - sqlalchemy.engine.Engine - INFO - [cached since 6.196s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0',)
2025-04-21 14:06:40,194 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:41,110 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 14:06:41,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:41,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:06:41,111 - sqlalchemy.engine.Engine - INFO - [cached since 7.143s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:06:41,113 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:06:41,113 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 14:06:41,114 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 8645f0e0-850a-4a85-9e40-25d110ab4367
2025-04-21 14:06:41,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:41,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:41,114 - sqlalchemy.engine.Engine - INFO - [cached since 7.118s ago] ('8645f0e0-850a-4a85-9e40-25d110ab4367',)
2025-04-21 14:06:41,116 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:06:41,116 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('8645f0e0-850a-4a85-9e40-25d110ab4367', 1001)
2025-04-21 14:06:41,117 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 5a7a31b2-a960-4c40-a299-3d3ad85870f0, 父任务: 8645f0e0-850a-4a85-9e40-25d110ab4367
2025-04-21 14:06:41,117 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 5a7a31b2-a960-4c40-a299-3d3ad85870f0
2025-04-21 14:06:41,119 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:06:41,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:41,120 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:41,120 - sqlalchemy.engine.Engine - INFO - [cached since 7.123s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0',)
2025-04-21 14:06:41,121 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:06:41,121 - sqlalchemy.engine.Engine - INFO - [cached since 0.00581s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0', 1001)
2025-04-21 14:06:41,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:41,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:41,124 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:41,125 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (datetime.datetime(2025, 4, 21, 14, 6, 41, 123971), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 14, 6, 41, 124952), '5a7a31b2-a960-4c40-a299-3d3ad85870f0')
2025-04-21 14:06:41,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:41,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:41,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:41,134 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:41,134 - sqlalchemy.engine.Engine - INFO - [cached since 0.009549s ago] (datetime.datetime(2025, 4, 21, 14, 6, 41, 133832), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 14, 6, 41, 134832), '8645f0e0-850a-4a85-9e40-25d110ab4367')
2025-04-21 14:06:41,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:41,141 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 14:06:41,142 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (0, datetime.datetime(2025, 4, 21, 14, 6, 41, 141831), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 14:06:41,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:41,150 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0391秒
2025-04-21 14:06:43,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:43,205 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:43,211 - sqlalchemy.engine.Engine - INFO - [cached since 9.213s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0',)
2025-04-21 14:06:43,214 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:43,216 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:43,216 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:43,217 - sqlalchemy.engine.Engine - INFO - [cached since 9.219s ago] ('5a7a31b2-a960-4c40-a299-3d3ad85870f0',)
2025-04-21 14:06:43,219 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:43,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:43,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-21 14:06:43,222 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('324d3454-0c19-49d2-9091-c8684f517a13', 3, '{"success": false, "message": "子任务执行失败: 任务被取消", "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "5a7a31b2-a960-4c40-a ... (35 characters truncated) ... "output": {"success": false, "message": "子任务执行失败: 任务被取消", "taskRecordId": "5a7a31b2-a960-4c40-a299-3d3ad85870f0", "output": {}}, "taskStatus": 2001}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '8645f0e0-850a-4a85-9e40-25d110ab4367', datetime.datetime(2025, 4, 21, 14, 6, 43, 222119), datetime.datetime(2025, 4, 21, 14, 6, 43, 222119), 0)
2025-04-21 14:06:43,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:43,237 - services.execution.block_executor - ERROR - 子块 1 执行失败: 子任务执行失败: 任务被取消
2025-04-21 14:06:43,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:43,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-21 14:06:43,240 - sqlalchemy.engine.Engine - INFO - [cached since 9.131s ago] ('d1e14000-da48-463a-8aa3-9c21eb4275d0',)
2025-04-21 14:06:43,241 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:06:43,242 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:06:43,243 - 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-21 14:06:43,243 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (datetime.datetime(2025, 4, 21, 14, 6, 43, 242899), '子任务执行失败: 任务被取消', 2000, "{'subtask_success': False, 'subtask_message': '子任务执行失败: 任务被取消', 'subtask_taskRecordId': '5a7a31b2-a960-4c40-a299-3d3ad85870f0', 'subtask_output': {}, ... (66 characters truncated) ... 'output': {'success': False, 'message': '子任务执行失败: 任务被取消', 'taskRecordId': '5a7a31b2-a960-4c40-a299-3d3ad85870f0', 'output': {}}, 'taskStatus': 2001}}", '子任务执行失败: 任务被取消', datetime.datetime(2025, 4, 21, 14, 6, 43, 242899), 'd1e14000-da48-463a-8aa3-9c21eb4275d0')
2025-04-21 14:06:43,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:43,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:43,252 - 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-21 14:06:43,252 - sqlalchemy.engine.Engine - INFO - [cached since 0.03171s ago] ('65e87d6d-d85b-4aee-b0c7-93ff2c50a15b', 3, '{"success": false, "message": "子块 1 执行失败: 子任务执行失败: 任务被取消", "block_id": 1, "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecord ... (61 characters truncated) ... "output": {"success": false, "message": "子任务执行失败: 任务被取消", "taskRecordId": "5a7a31b2-a960-4c40-a299-3d3ad85870f0", "output": {}}, "taskStatus": 2001}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '8645f0e0-850a-4a85-9e40-25d110ab4367', datetime.datetime(2025, 4, 21, 14, 6, 43, 252917), datetime.datetime(2025, 4, 21, 14, 6, 43, 252917), 0)
2025-04-21 14:06:43,253 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:43,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:43,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-21 14:06:43,262 - sqlalchemy.engine.Engine - INFO - [cached since 9.153s ago] ('a0ba5248-af12-4b85-aba1-f798b4ad7754',)
2025-04-21 14:06:43,264 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:06:43,264 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:06:43,264 - 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-21 14:06:43,264 - sqlalchemy.engine.Engine - INFO - [cached since 0.02165s ago] (datetime.datetime(2025, 4, 21, 14, 6, 43, 264013), '子块 1 执行失败: 子任务执行失败: 任务被取消', 2000, "{'subtask_success': False, 'subtask_message': '子任务执行失败: 任务被取消', 'subtask_taskRecordId': '5a7a31b2-a960-4c40-a299-3d3ad85870f0', 'subtask_output': {}, ... (66 characters truncated) ... 'output': {'success': False, 'message': '子任务执行失败: 任务被取消', 'taskRecordId': '5a7a31b2-a960-4c40-a299-3d3ad85870f0', 'output': {}}, 'taskStatus': 2001}}", '子块 1 执行失败: 子任务执行失败: 任务被取消', datetime.datetime(2025, 4, 21, 14, 6, 43, 264013), 'a0ba5248-af12-4b85-aba1-f798b4ad7754')
2025-04-21 14:06:43,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:43,272 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:06:43,273 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:06:43,274 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (datetime.datetime(2025, 4, 21, 14, 6, 43, 272991), '子块 1 执行失败: 子任务执行失败: 任务被取消', 2000, 9199, datetime.datetime(2025, 4, 21, 14, 6, 43, 273983), '8645f0e0-850a-4a85-9e40-25d110ab4367')
2025-04-21 14:06:43,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:06:43,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 8645f0e0-850a-4a85-9e40-25d110ab4367, 结果: False
2025-04-21 14:07:25,154 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:07:25,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:07:25,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:07:25,154 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:07:25,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:07:25,155 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:07:25,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:07:25,155 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:07:25,156 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 13, 7, 25, 154715))
2025-04-21 14:07:25,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:07:25,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:07:25,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:07:25,156 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:07:25,157 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:07:25,157 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:07:25,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:07:25,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:07:25,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:07:25,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:07:25,158 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:07:25,158 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:07:25,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:07:40,140 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:07:40,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:07:40,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:07:40,146 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:07:40,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:07:40,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:07:40,365 - root - INFO - 应用程序关闭中...
2025-04-21 14:07:40,365 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:07:40,366 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:07:40,366 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:07:40,366 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:07:40,366 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:07:40,366 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:07:40,366 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:07:40,366 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:07:40,369 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:07:40,369 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:07:40,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:07:40,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:07:40,369 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:07:40,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:07:40,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:07:40,371 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-21 14:07:40,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:07:40,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:07:40,371 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-21 14:07:40,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:07:40,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:07:40,371 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-21 14:07:40,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:07:40,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:07:40,371 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 0
2025-04-21 14:07:40,371 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:07:40,371 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:07:40,371 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:07:40,372 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:07:40,372 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:07:40,372 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:07:40,372 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:07:41,526 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:07:41,529 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:07:41,585 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:07:41,634 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:07:41,659 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:07:41,670 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:07:41,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,671 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:07:41,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,671 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:07:41,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:07:41,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:07:41,672 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,673 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:07:41,673 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,674 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:07:41,675 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,676 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:07:41,677 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,678 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:07:41,678 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,678 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:07:41,679 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,681 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:07:41,681 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,682 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:07:41,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,684 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:07:41,684 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,685 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:07:41,685 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,689 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:07:41,689 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:07:41,691 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:07:41,691 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:07:42,113 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:07:42,113 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:07:42,113 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:07:42,114 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:07:42,114 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:07:42,114 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:07:42,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:07:42,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:07:42,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:07:42,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:07:42,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:07:42,114 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:07:42,114 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:07:42,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:07:42,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:07:42,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:07:42,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:07:42,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:07:42,117 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:07:42,117 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:07:42,118 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:07:42,119 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:07:42,119 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:07:42,119 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:07:42,119 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:07:42,119 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:07:42,120 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:07:42,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:07:42,130 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:07:42,131 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1, 1)
2025-04-21 14:07:42,132 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:07:42,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:07:42,133 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:07:42,133 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:07:42,133 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:07:42,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:07:42,135 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:07:42,135 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1000, 2000, 2001)
2025-04-21 14:07:42,136 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:07:42,137 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:07:42,137 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:07:42,137 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:07:42,137 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:07:42,138 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:07:42,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:07:42,138 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:07:42,139 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1001, datetime.datetime(2025, 4, 21, 13, 7, 42, 133343))
2025-04-21 14:07:42,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:26,713 - root - INFO - 应用程序关闭中...
2025-04-21 14:08:26,713 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:08:26,714 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:08:26,714 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:08:26,714 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:08:26,714 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:08:26,714 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:08:26,714 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:08:26,714 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:08:26,714 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:08:26,714 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:08:26,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:08:26,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:08:26,714 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:08:26,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:08:26,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:08:26,715 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:08:26,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:08:26,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:08:26,715 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:08:26,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:08:26,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:08:26,716 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:08:26,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:08:26,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:08:26,716 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:08:26,717 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:08:26,717 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:08:26,717 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:08:26,717 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:08:26,717 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:08:26,718 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:08:26,718 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:08:29,597 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:08:29,598 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:08:30,290 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:08:30,291 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:08:30,348 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:08:30,394 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:08:30,438 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:08:30,457 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:08:30,458 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,459 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:08:30,459 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,460 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:08:30,461 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,462 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:30,462 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:08:30,462 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,465 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:08:30,465 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,467 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:08:30,467 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,469 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:08:30,469 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,470 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:08:30,471 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,472 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:08:30,472 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:08:30,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,475 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:08:30,475 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,477 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:08:30,477 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,478 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:08:30,478 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,479 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:08:30,479 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:08:30,479 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:30,480 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:08:30,819 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:08:30,820 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:08:30,820 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:08:30,821 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:08:30,821 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:08:30,821 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:08:30,823 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:08:30,823 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:08:30,824 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:08:30,826 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:08:30,826 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:08:30,826 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:08:30,827 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:08:30,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:08:30,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:08:30,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:08:30,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:08:30,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:08:30,832 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:08:30,834 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:08:30,835 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:08:30,836 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:08:30,838 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:08:30,841 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:08:30,842 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:08:30,844 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:08:30,845 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:08:30,847 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:30,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:08:30,860 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1, 1)
2025-04-21 14:08:30,860 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:08:30,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:30,862 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:08:30,862 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:08:30,864 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:08:30,867 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:30,871 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:08:30,872 - sqlalchemy.engine.Engine - INFO - [generated in 0.00134s] (1000, 2000, 2001)
2025-04-21 14:08:30,874 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:30,890 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:08:30,890 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:08:30,890 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:08:30,904 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:08:30,907 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:08:30,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:30,920 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:08:30,924 - sqlalchemy.engine.Engine - INFO - [generated in 0.00360s] (1001, datetime.datetime(2025, 4, 21, 13, 8, 30, 867054))
2025-04-21 14:08:30,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,556 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 14:08:38,559 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,560 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:08:38,561 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:08:38,562 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,563 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:08:38,564 - sqlalchemy.engine.Engine - INFO - [cached since 0.003408s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:08:38,565 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,567 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 14:08:38,567 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,570 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:08:38,571 - sqlalchemy.engine.Engine - INFO - [cached since 0.01042s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:08:38,573 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 14:08:38,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('6c7af452-7774-4361-9154-c0f29d166e56', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 14, 8, 38, 571013), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 14, 8, 38, 567013), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 14, 8, 38, 573013), datetime.datetime(2025, 4, 21, 14, 8, 38, 573013), 0)
2025-04-21 14:08:38,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,583 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('6c7af452-7774-4361-9154-c0f29d166e56',)
2025-04-21 14:08:38,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,585 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6c7af452-7774-4361-9154-c0f29d166e56 (优先级 1) 添加到队列 0
2025-04-21 14:08:38,586 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0302秒
2025-04-21 14:08:38,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 6c7af452-7774-4361-9154-c0f29d166e56, 优先级: 1
2025-04-21 14:08:38,657 - services.execution.task_executor - DEBUG - 任务 6c7af452-7774-4361-9154-c0f29d166e56 设置超时时间: 3600秒
2025-04-21 14:08:38,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,658 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,658 - sqlalchemy.engine.Engine - INFO - [cached since 0.0762s ago] ('6c7af452-7774-4361-9154-c0f29d166e56',)
2025-04-21 14:08:38,659 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:08:38,660 - sqlalchemy.engine.Engine - INFO - [cached since 0.0999s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:08:38,661 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,661 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 21, 14, 8, 38, 660444), datetime.datetime(2025, 4, 21, 14, 8, 38, 661447), '6c7af452-7774-4361-9154-c0f29d166e56')
2025-04-21 14:08:38,662 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,670 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,671 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,671 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 14, 8, 38, 671169), '6c7af452-7774-4361-9154-c0f29d166e56')
2025-04-21 14:08:38,672 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,679 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 14:08:38,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,686 - 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-21 14:08:38,687 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('7662b7f2-9b4a-44a7-8289-f32c44fd8a22', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '6c7af452-7774-4361-9154-c0f29d166e56', datetime.datetime(2025, 4, 21, 14, 8, 38, 685446), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 8, 38, 686395), datetime.datetime(2025, 4, 21, 14, 8, 38, 686395), 0)
2025-04-21 14:08:38,688 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,695 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,695 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:08:38,696 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] ('7662b7f2-9b4a-44a7-8289-f32c44fd8a22',)
2025-04-21 14:08:38,697 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:08:38,697 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:08:38,698 - 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-21 14:08:38,698 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 8, 38, 698716), '7662b7f2-9b4a-44a7-8289-f32c44fd8a22')
2025-04-21 14:08:38,699 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,705 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 14:08:38,706 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 14:08:38,706 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 14:08:38,707 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,707 - 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-21 14:08:38,707 - sqlalchemy.engine.Engine - INFO - [cached since 0.02149s ago] ('ce0d9ad7-00ec-4ae6-8fc4-dd50be3dac90', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '6c7af452-7774-4361-9154-c0f29d166e56', datetime.datetime(2025, 4, 21, 14, 8, 38, 707827), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 8, 38, 707827), datetime.datetime(2025, 4, 21, 14, 8, 38, 707827), 0)
2025-04-21 14:08:38,708 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,715 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: ce0d9ad7-00ec-4ae6-8fc4-dd50be3dac90
2025-04-21 14:08:38,716 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,717 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:08:38,717 - sqlalchemy.engine.Engine - INFO - [cached since 0.0208s ago] ('ce0d9ad7-00ec-4ae6-8fc4-dd50be3dac90',)
2025-04-21 14:08:38,718 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:08:38,718 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:08:38,718 - 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-21 14:08:38,718 - sqlalchemy.engine.Engine - INFO - [cached since 0.01995s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 8, 38, 718203), 'ce0d9ad7-00ec-4ae6-8fc4-dd50be3dac90')
2025-04-21 14:08:38,719 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,723 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 14:08:38,723 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 14:08:38,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,724 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,724 - sqlalchemy.engine.Engine - INFO - [cached since 0.1425s ago] ('6c7af452-7774-4361-9154-c0f29d166e56',)
2025-04-21 14:08:38,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,727 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:08:38,727 - sqlalchemy.engine.Engine - INFO - [cached since 0.1675s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:08:38,728 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,729 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:08:38,729 - sqlalchemy.engine.Engine - INFO - [cached since 0.1695s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:08:38,730 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 14:08:38,731 - sqlalchemy.engine.Engine - INFO - [cached since 0.1583s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 14, 8, 38, 730233), None, None, 1002, None, None, None, '6c7af452-7774-4361-9154-c0f29d166e56', '6c7af452-7774-4361-9154-c0f29d166e56', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 14, 8, 38, 729233), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 14, 8, 38, 730233), datetime.datetime(2025, 4, 21, 14, 8, 38, 730233), 0)
2025-04-21 14:08:38,731 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,738 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,738 - sqlalchemy.engine.Engine - INFO - [cached since 0.156s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5',)
2025-04-21 14:08:38,739 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,739 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f481dabb-c981-4ab4-80e6-77ef3e4f6df5 (优先级 1) 添加到队列 0
2025-04-21 14:08:38,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,740 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,740 - sqlalchemy.engine.Engine - INFO - [cached since 0.1586s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5',)
2025-04-21 14:08:38,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: f481dabb-c981-4ab4-80e6-77ef3e4f6df5, 优先级: 1
2025-04-21 14:08:38,766 - services.execution.task_executor - DEBUG - 任务 f481dabb-c981-4ab4-80e6-77ef3e4f6df5 设置超时时间: 3600秒
2025-04-21 14:08:38,766 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,767 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,767 - sqlalchemy.engine.Engine - INFO - [cached since 0.1847s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5',)
2025-04-21 14:08:38,768 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:08:38,768 - sqlalchemy.engine.Engine - INFO - [cached since 0.2084s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:08:38,769 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,769 - sqlalchemy.engine.Engine - INFO - [cached since 0.1081s ago] (datetime.datetime(2025, 4, 21, 14, 8, 38, 769440), datetime.datetime(2025, 4, 21, 14, 8, 38, 769440), 'f481dabb-c981-4ab4-80e6-77ef3e4f6df5')
2025-04-21 14:08:38,770 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,785 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:38,785 - sqlalchemy.engine.Engine - INFO - [cached since 0.1145s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 14, 8, 38, 785770), 'f481dabb-c981-4ab4-80e6-77ef3e4f6df5')
2025-04-21 14:08:38,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,792 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 14:08:38,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,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-21 14:08:38,793 - sqlalchemy.engine.Engine - INFO - [cached since 0.1071s ago] ('86c0005b-66ef-4860-835d-154cc3f45f5e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'f481dabb-c981-4ab4-80e6-77ef3e4f6df5', datetime.datetime(2025, 4, 21, 14, 8, 38, 793431), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 8, 38, 793431), datetime.datetime(2025, 4, 21, 14, 8, 38, 793431), 0)
2025-04-21 14:08:38,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,801 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:08:38,801 - sqlalchemy.engine.Engine - INFO - [cached since 0.1054s ago] ('86c0005b-66ef-4860-835d-154cc3f45f5e',)
2025-04-21 14:08:38,802 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:08:38,802 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:08:38,802 - 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-21 14:08:38,802 - sqlalchemy.engine.Engine - INFO - [cached since 0.1045s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 8, 38, 802871), '86c0005b-66ef-4860-835d-154cc3f45f5e')
2025-04-21 14:08:38,802 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,809 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 14:08:38,809 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 14:08:38,810 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 14:08:38,810 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,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-21 14:08:38,811 - sqlalchemy.engine.Engine - INFO - [cached since 0.1245s ago] ('e2ba5d47-dc33-4c89-8d2d-49a54c3efd17', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'f481dabb-c981-4ab4-80e6-77ef3e4f6df5', datetime.datetime(2025, 4, 21, 14, 8, 38, 810604), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 8, 38, 810604), datetime.datetime(2025, 4, 21, 14, 8, 38, 810604), 0)
2025-04-21 14:08:38,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,818 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e2ba5d47-dc33-4c89-8d2d-49a54c3efd17
2025-04-21 14:08:38,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:38,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-21 14:08:38,824 - sqlalchemy.engine.Engine - INFO - [cached since 0.1287s ago] ('e2ba5d47-dc33-4c89-8d2d-49a54c3efd17',)
2025-04-21 14:08:38,828 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:08:38,828 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:08:38,828 - 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-21 14:08:38,829 - sqlalchemy.engine.Engine - INFO - [cached since 0.1312s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 8, 38, 828975), 'e2ba5d47-dc33-4c89-8d2d-49a54c3efd17')
2025-04-21 14:08:38,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:38,836 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 14:08:41,752 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:41,754 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:41,755 - sqlalchemy.engine.Engine - INFO - [cached since 3.173s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5',)
2025-04-21 14:08:41,757 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:44,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:44,758 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:44,759 - sqlalchemy.engine.Engine - INFO - [cached since 6.177s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5',)
2025-04-21 14:08:44,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:44,992 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 14:08:44,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:44,994 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:08:44,994 - sqlalchemy.engine.Engine - INFO - [cached since 6.434s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:08:44,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:08:44,996 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 14:08:44,997 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 6c7af452-7774-4361-9154-c0f29d166e56
2025-04-21 14:08:44,997 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:44,998 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:44,998 - sqlalchemy.engine.Engine - INFO - [cached since 6.415s ago] ('6c7af452-7774-4361-9154-c0f29d166e56',)
2025-04-21 14:08:44,999 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:08:44,999 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('6c7af452-7774-4361-9154-c0f29d166e56', 1001)
2025-04-21 14:08:45,000 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: f481dabb-c981-4ab4-80e6-77ef3e4f6df5, 父任务: 6c7af452-7774-4361-9154-c0f29d166e56
2025-04-21 14:08:45,000 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: f481dabb-c981-4ab4-80e6-77ef3e4f6df5
2025-04-21 14:08:45,002 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:08:45,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:45,003 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:45,003 - sqlalchemy.engine.Engine - INFO - [cached since 6.421s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5',)
2025-04-21 14:08:45,004 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:08:45,004 - sqlalchemy.engine.Engine - INFO - [cached since 0.005208s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5', 1001)
2025-04-21 14:08:45,005 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:45,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:45,007 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:45,008 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (datetime.datetime(2025, 4, 21, 14, 8, 45, 7774), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 14, 8, 45, 7774), 'f481dabb-c981-4ab4-80e6-77ef3e4f6df5')
2025-04-21 14:08:45,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:45,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:45,023 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:45,024 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:45,024 - sqlalchemy.engine.Engine - INFO - [cached since 0.0162s ago] (datetime.datetime(2025, 4, 21, 14, 8, 45, 23575), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 14, 8, 45, 24568), '6c7af452-7774-4361-9154-c0f29d166e56')
2025-04-21 14:08:45,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:45,032 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 14:08:45,033 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (0, datetime.datetime(2025, 4, 21, 14, 8, 45, 32801), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 14:08:45,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:45,038 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0463秒
2025-04-21 14:08:47,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:47,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:47,783 - sqlalchemy.engine.Engine - INFO - [cached since 9.2s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5',)
2025-04-21 14:08:47,788 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:47,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:47,794 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:47,795 - sqlalchemy.engine.Engine - INFO - [cached since 9.213s ago] ('f481dabb-c981-4ab4-80e6-77ef3e4f6df5',)
2025-04-21 14:08:47,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:47,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:47,803 - 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-21 14:08:47,807 - sqlalchemy.engine.Engine - INFO - [generated in 0.00365s] ('4057a6a0-276a-42dc-a529-bc7c2987258e', 1, '{"success": true, "message": "子任务执行成功", "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "f481dabb-c981-4ab4-80e6-77ef ... (19 characters truncated) ...  false, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "f481dabb-c981-4ab4-80e6-77ef3e4f6df5", "output": {}}, "taskStatus": 2001}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '6c7af452-7774-4361-9154-c0f29d166e56', datetime.datetime(2025, 4, 21, 14, 8, 47, 803221), datetime.datetime(2025, 4, 21, 14, 8, 47, 803221), 0)
2025-04-21 14:08:47,810 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:47,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:47,837 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:08:47,841 - sqlalchemy.engine.Engine - INFO - [cached since 9.145s ago] ('ce0d9ad7-00ec-4ae6-8fc4-dd50be3dac90',)
2025-04-21 14:08:47,842 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:08:47,844 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:08:47,844 - 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-21 14:08:47,845 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (datetime.datetime(2025, 4, 21, 14, 8, 47, 844251), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': 'f481dabb-c981-4ab4-80e6-77ef3e4f6df5', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': 'f481dabb-c981-4ab4-80e6-77ef3e4f6df5', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 14, 8, 47, 844251), 'ce0d9ad7-00ec-4ae6-8fc4-dd50be3dac90')
2025-04-21 14:08:47,850 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:47,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:47,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-21 14:08:47,870 - sqlalchemy.engine.Engine - INFO - [cached since 0.0667s ago] ('f10e8c8d-139a-48b4-9647-0b397fda2e52', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (130 characters truncated) ... lse, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "f481dabb-c981-4ab4-80e6-77ef3e4f6df5", "output": {}}, "taskStatus": 2001}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '6c7af452-7774-4361-9154-c0f29d166e56', datetime.datetime(2025, 4, 21, 14, 8, 47, 866258), datetime.datetime(2025, 4, 21, 14, 8, 47, 866258), 0)
2025-04-21 14:08:47,872 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:47,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:47,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-21 14:08:47,882 - sqlalchemy.engine.Engine - INFO - [cached since 9.186s ago] ('7662b7f2-9b4a-44a7-8289-f32c44fd8a22',)
2025-04-21 14:08:47,882 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:08:47,883 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:08:47,883 - 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-21 14:08:47,883 - sqlalchemy.engine.Engine - INFO - [cached since 0.03955s ago] (datetime.datetime(2025, 4, 21, 14, 8, 47, 883594), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': 'f481dabb-c981-4ab4-80e6-77ef3e4f6df5', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': 'f481dabb-c981-4ab4-80e6-77ef3e4f6df5', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 14, 8, 47, 883594), '7662b7f2-9b4a-44a7-8289-f32c44fd8a22')
2025-04-21 14:08:47,884 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:47,890 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:08:47,892 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:08:47,893 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (datetime.datetime(2025, 4, 21, 14, 8, 47, 890602), '任务执行成功', 1000, 9220, datetime.datetime(2025, 4, 21, 14, 8, 47, 892593), '6c7af452-7774-4361-9154-c0f29d166e56')
2025-04-21 14:08:47,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:08:47,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 6c7af452-7774-4361-9154-c0f29d166e56, 结果: True
2025-04-21 14:09:30,852 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:09:30,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:09:30,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:09:30,855 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:09:30,856 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:09:30,857 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:09:30,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:09:30,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:09:30,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:09:30,857 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:09:30,857 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:09:30,857 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:09:30,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:09:30,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:09:30,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:09:30,857 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:09:30,857 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:09:30,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:09:30,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:09:30,947 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:09:30,947 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (1001, datetime.datetime(2025, 4, 21, 13, 9, 30, 946023))
2025-04-21 14:09:30,948 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:09:30,949 - root - INFO - 应用程序关闭中...
2025-04-21 14:09:30,949 - sqlalchemy.pool.impl.AsyncAdaptedQueuePool - ERROR - Exception during reset or similar
Traceback (most recent call last):
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\pool\base.py", line 987, in _finalize_fairy
    fairy._reset(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\pool\base.py", line 1433, in _reset
    pool._dialect.do_rollback(self)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 700, in do_rollback
    dbapi_connection.rollback()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 203, in rollback
    self.await_(self._connection.rollback())
  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\aiomysql\connection.py", line 399, in rollback
    await self._read_ok_packet()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 372, in _read_ok_packet
    pkt = await self._read_packet()
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 609, in _read_packet
    packet_header = await self._read_bytes(4)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 657, in _read_bytes
    data = await self._reader.readexactly(num_bytes)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\streams.py", line 752, in readexactly
    await self._wait_for_data('readexactly')
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\streams.py", line 545, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError
2025-04-21 14:09:30,953 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:09:30,954 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:09:30,954 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:09:30,954 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:09:30,954 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:09:30,955 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:09:30,955 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:09:30,955 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:09:30,955 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:09:30,955 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:09:30,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:09:30,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:09:30,955 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:09:30,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:09:30,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:09:30,956 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-21 14:09:30,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:09:30,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:09:30,956 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 2
2025-04-21 14:09:30,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:09:30,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:09:30,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:09:30,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:09:30,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:09:30,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:09:30,957 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:09:30,957 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:09:30,957 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:09:30,957 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:09:30,958 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:09:30,958 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:09:30,958 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:09:32,198 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:09:32,199 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:09:32,266 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:09:32,313 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:09:32,355 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:09:32,359 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:09:32,359 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,360 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:09:32,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,360 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:09:32,361 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,361 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:09:32,362 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:09:32,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,363 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:09:32,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,365 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:09:32,365 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,367 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:09:32,368 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,369 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:09:32,369 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,371 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:09:32,372 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,373 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:09:32,374 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,376 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:09:32,376 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,377 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:09:32,377 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,379 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:09:32,380 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,381 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:09:32,382 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:09:32,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:09:32,385 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:09:32,801 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:09:32,801 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:09:32,801 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:09:32,802 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:09:32,802 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:09:32,802 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:09:32,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:09:32,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:09:32,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:09:32,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:09:32,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:09:32,802 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:09:32,802 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:09:32,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:09:32,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:09:32,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:09:32,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:09:32,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:09:32,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:09:32,806 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:09:32,807 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:09:32,808 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:09:32,808 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:09:32,809 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:09:32,809 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:09:32,810 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:09:32,810 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:09:32,810 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:09:32,820 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:09:32,822 - sqlalchemy.engine.Engine - INFO - [generated in 0.00123s] (1, 1)
2025-04-21 14:09:32,822 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:09:32,822 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:09:32,823 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:09:32,823 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:09:32,824 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:09:32,824 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:09:32,828 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:09:32,828 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1000, 2000, 2001)
2025-04-21 14:09:32,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:09:32,832 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:09:32,832 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:09:32,832 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:09:32,832 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:09:32,832 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:09:32,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:09:32,833 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:09:32,834 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1001, datetime.datetime(2025, 4, 21, 13, 9, 32, 824669))
2025-04-21 14:09:32,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:10:32,837 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:10:32,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:10:32,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:10:32,838 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:10:32,838 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:10:32,839 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:10:32,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:10:32,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:10:32,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:10:32,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:10:32,840 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:10:32,840 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 13, 10, 32, 837549))
2025-04-21 14:10:32,841 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:10:32,841 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:10:32,841 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:10:32,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:10:32,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:10:32,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:10:32,842 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:10:32,842 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:10:32,842 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:10:32,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:10:32,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:10:32,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:10:32,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:10:32,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:10:32,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:10:32,844 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:10:32,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:10:32,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:10:32,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:10:32,845 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:10:32,845 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:10:32,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:11:32,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:11:32,856 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:11:32,856 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 13, 11, 32, 854371))
2025-04-21 14:11:32,857 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:11:32,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:11:32,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:11:32,858 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:11:32,858 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:11:32,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:11:32,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:11:32,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:11:32,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:11:32,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:11:32,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:11:32,861 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:11:32,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:11:32,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:11:32,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:11:32,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:11:32,862 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:11:32,864 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:11:32,864 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:11:32,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:11:32,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:11:32,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:11:32,865 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:11:32,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:11:32,866 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:11:32,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:11:32,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:11:32,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:11:32,867 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:11:32,867 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:11:32,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:12:32,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:12:32,881 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:12:32,883 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (1001, datetime.datetime(2025, 4, 21, 13, 12, 32, 877024))
2025-04-21 14:12:32,884 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:12:32,887 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:12:32,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:12:32,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:12:32,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:12:32,895 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:12:32,897 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:12:32,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:12:32,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:12:32,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:12:32,900 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:12:32,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:12:32,905 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:12:32,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:12:32,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:12:32,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:12:32,908 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:12:32,908 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:12:32,908 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:12:32,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:12:32,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:12:32,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:12:32,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:12:32,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:12:32,918 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:12:32,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:12:32,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:12:32,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:12:32,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:12:32,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:12:32,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:13:32,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:13:32,930 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:13:32,930 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 13, 13, 32, 928833))
2025-04-21 14:13:32,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:13:32,960 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:13:32,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:13:32,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:13:32,960 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:13:32,960 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:13:32,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:13:32,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:13:32,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:13:32,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:13:32,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:13:32,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:13:32,962 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:13:32,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:13:32,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:13:32,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:13:32,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:13:32,963 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:13:32,964 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:13:32,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:13:32,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:13:32,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:13:32,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:13:32,965 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:13:32,965 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:13:32,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:13:32,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:13:32,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:13:32,966 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:13:32,966 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:13:32,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:14:32,938 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:14:32,940 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:14:32,943 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (1001, datetime.datetime(2025, 4, 21, 13, 14, 32, 937219))
2025-04-21 14:14:32,948 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:14:32,998 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:14:32,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:14:32,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:14:32,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:14:33,000 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:14:33,000 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:14:33,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:14:33,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:14:33,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:14:33,004 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:14:33,004 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:14:33,005 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:14:33,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:14:33,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:14:33,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:14:33,006 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:14:33,006 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:14:33,006 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:14:33,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:14:33,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:14:33,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:14:33,007 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:14:33,007 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:14:33,008 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:14:33,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:14:33,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:14:33,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:14:33,011 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:14:33,012 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:14:33,019 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:15:32,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:15:32,952 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:15:32,953 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (1001, datetime.datetime(2025, 4, 21, 13, 15, 32, 950642))
2025-04-21 14:15:32,955 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:15:33,058 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:15:33,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:15:33,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:15:33,060 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:15:33,060 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:15:33,061 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:15:33,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:15:33,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:15:33,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:15:33,062 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:15:33,062 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:15:33,062 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:15:33,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:15:33,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:15:33,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:15:33,064 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:15:33,064 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:15:33,064 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:15:33,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:15:33,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:15:33,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:15:33,064 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:15:33,065 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:15:33,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:15:33,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:15:33,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:15:33,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:15:33,065 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:15:33,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:15:33,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:16:32,952 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:16:32,952 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:16:32,953 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (1001, datetime.datetime(2025, 4, 21, 13, 16, 32, 951979))
2025-04-21 14:16:32,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:16:33,105 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:16:33,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:16:33,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:16:33,109 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:16:33,111 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:16:33,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:16:33,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:16:33,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:16:33,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:16:33,121 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:16:33,121 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:16:33,123 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:16:33,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:16:33,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:16:33,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:16:33,126 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:16:33,128 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:16:33,130 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:16:33,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:16:33,134 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:16:33,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:16:33,136 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:16:33,138 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:16:33,140 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:16:33,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:16:33,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:16:33,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:16:33,148 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:16:33,150 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:16:33,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:17:32,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:17:32,960 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:17:32,962 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (1001, datetime.datetime(2025, 4, 21, 13, 17, 32, 960805))
2025-04-21 14:17:32,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:17:33,211 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:17:33,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:17:33,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:17:33,213 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:17:33,213 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:17:33,213 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:17:33,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:17:33,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:17:33,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:17:33,214 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:17:33,214 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:17:33,214 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:17:33,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:17:33,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:17:33,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:17:33,216 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:17:33,216 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:17:33,216 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:17:33,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:17:33,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:17:33,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:17:33,216 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:17:33,216 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:17:33,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:17:33,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:17:33,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:17:33,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:17:33,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:17:33,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:17:33,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:18:23,406 - root - INFO - 应用程序关闭中...
2025-04-21 14:18:23,406 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:18:23,406 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:18:23,407 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:18:23,407 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:18:23,407 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:18:23,407 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:18:23,407 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:18:23,408 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:18:23,408 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:18:23,408 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:18:23,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:18:23,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:18:23,410 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:18:23,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:18:23,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:18:23,410 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:18:23,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:18:23,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:18:23,411 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:18:23,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:18:23,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:18:23,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:18:23,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:18:23,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:18:23,413 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:18:23,413 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:18:23,413 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:18:23,413 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:18:23,414 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:18:23,414 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:18:23,415 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:18:23,416 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:18:25,963 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:18:25,964 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:18:26,667 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:18:26,668 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:18:26,730 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:18:26,777 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:18:26,799 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:18:26,827 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:18:26,829 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,832 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:18:26,833 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,834 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:18:26,836 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,838 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:18:26,840 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:18:26,843 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,848 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:18:26,850 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,855 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:18:26,856 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,856 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:18:26,857 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,858 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:18:26,858 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,859 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:18:26,859 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,860 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:18:26,860 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,861 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:18:26,861 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,862 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:18:26,863 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,866 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:18:26,867 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,869 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:18:26,870 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:18:26,872 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:18:26,873 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:18:27,219 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:18:27,222 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:18:27,223 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:18:27,225 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:18:27,227 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:18:27,229 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:18:27,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:18:27,233 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:18:27,233 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:18:27,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:18:27,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:18:27,234 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:18:27,234 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:18:27,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:18:27,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:18:27,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:18:27,243 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:18:27,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:18:27,247 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:18:27,249 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:18:27,251 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:18:27,254 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:18:27,257 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:18:27,261 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:18:27,265 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:18:27,270 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:18:27,273 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:18:27,277 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:18:27,289 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:18:27,293 - sqlalchemy.engine.Engine - INFO - [generated in 0.00349s] (1, 1)
2025-04-21 14:18:27,299 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:18:27,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:18:27,300 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:18:27,300 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:18:27,300 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:18:27,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:18:27,302 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:18:27,306 - sqlalchemy.engine.Engine - INFO - [generated in 0.00365s] (1000, 2000, 2001)
2025-04-21 14:18:27,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:18:27,332 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:18:27,334 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:18:27,336 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:18:27,338 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:18:27,340 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:18:27,345 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:18:27,347 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:18:27,351 - sqlalchemy.engine.Engine - INFO - [generated in 0.00374s] (1001, datetime.datetime(2025, 4, 21, 13, 18, 27, 300178))
2025-04-21 14:18:27,356 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:19:27,292 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:19:27,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:19:27,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:19:27,296 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:19:27,297 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:19:27,300 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:19:27,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:19:27,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:19:27,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:19:27,304 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:19:27,304 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:19:27,307 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:19:27,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:19:27,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:19:27,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:19:27,311 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:19:27,313 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:19:27,316 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:19:27,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:19:27,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:19:27,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:19:27,320 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:19:27,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:19:27,321 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:19:27,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:19:27,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:19:27,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:19:27,325 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:19:27,326 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:19:27,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:19:27,373 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:19:27,373 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:19:27,375 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (1001, datetime.datetime(2025, 4, 21, 13, 19, 27, 372241))
2025-04-21 14:19:27,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:20:27,330 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:20:27,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:20:27,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:20:27,332 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:20:27,332 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:20:27,332 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:20:27,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:20:27,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:20:27,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:20:27,333 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:20:27,334 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:20:27,334 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:20:27,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:20:27,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:20:27,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:20:27,334 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:20:27,334 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:20:27,334 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:20:27,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:20:27,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:20:27,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:20:27,335 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:20:27,335 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:20:27,335 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:20:27,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:20:27,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:20:27,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:20:27,335 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:20:27,335 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:20:27,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:20:27,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:20:27,377 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:20:27,377 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 13, 20, 27, 376179))
2025-04-21 14:20:27,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:20:27,438 - root - INFO - 应用程序关闭中...
2025-04-21 14:20:27,439 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:20:27,439 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:20:27,439 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:20:27,439 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:20:27,439 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:20:27,439 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:20:27,439 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:20:27,440 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:20:27,440 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:20:27,440 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:20:27,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:20:27,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:20:27,440 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:20:27,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:20:27,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:20:27,441 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:20:27,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:20:27,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:20:27,441 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:20:27,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:20:27,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:20:27,442 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:20:27,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:20:27,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:20:27,442 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:20:27,442 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:20:27,442 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:20:27,442 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:20:27,442 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:20:27,443 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:20:27,443 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:20:27,443 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:20:28,723 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:20:28,723 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:20:28,798 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:20:28,861 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:20:28,880 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:20:28,904 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:20:28,904 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,905 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:20:28,905 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,906 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:20:28,906 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:20:28,908 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:20:28,908 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,909 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:20:28,910 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,911 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:20:28,911 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,912 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:20:28,912 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,913 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:20:28,913 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,914 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:20:28,914 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,915 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:20:28,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,916 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:20:28,917 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,919 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:20:28,920 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,924 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:20:28,927 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,931 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:20:28,933 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:20:28,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:20:28,936 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:20:29,319 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:20:29,320 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:20:29,322 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:20:29,322 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:20:29,324 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:20:29,326 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:20:29,326 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:20:29,327 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:20:29,327 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:20:29,330 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:20:29,332 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:20:29,334 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:20:29,336 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:20:29,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:20:29,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:20:29,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:20:29,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:20:29,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:20:29,350 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:20:29,351 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:20:29,375 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:20:29,378 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:20:29,378 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:20:29,384 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:20:29,387 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:20:29,390 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:20:29,390 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:20:29,395 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:20:29,408 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:20:29,410 - sqlalchemy.engine.Engine - INFO - [generated in 0.00206s] (1, 1)
2025-04-21 14:20:29,412 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:20:29,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:20:29,416 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:20:29,418 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:20:29,420 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:20:29,420 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:20:29,424 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:20:29,427 - sqlalchemy.engine.Engine - INFO - [generated in 0.00295s] (1000, 2000, 2001)
2025-04-21 14:20:29,452 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:20:29,454 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:20:29,454 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:20:29,454 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:20:29,455 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:20:29,455 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:20:29,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:20:29,457 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:20:29,458 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1001, datetime.datetime(2025, 4, 21, 13, 20, 29, 420412))
2025-04-21 14:20:29,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:21:29,360 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:21:29,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:21:29,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:21:29,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:21:29,362 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:21:29,363 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:21:29,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:21:29,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:21:29,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:21:29,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:21:29,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:21:29,364 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:21:29,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:21:29,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:21:29,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:21:29,365 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:21:29,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:21:29,365 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:21:29,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:21:29,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:21:29,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:21:29,366 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:21:29,366 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:21:29,366 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:21:29,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:21:29,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:21:29,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:21:29,366 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:21:29,366 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:21:29,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:21:29,454 - root - INFO - 应用程序关闭中...
2025-04-21 14:21:29,454 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:21:29,455 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:21:29,455 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:21:29,461 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:21:29,462 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:21:29,462 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:21:29,462 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:21:29,463 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:21:29,463 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:21:29,463 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:21:29,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:21:29,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:21:29,463 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:21:29,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:21:29,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:21:29,464 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:21:29,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:21:29,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:21:29,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:21:29,464 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:21:29,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:21:29,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:21:29,464 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:21:29,464 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:21:29,464 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:21:29,464 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:21:29,464 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:21:29,464 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:21:29,465 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:21:29,465 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:21:29,465 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:21:30,694 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:21:30,694 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:21:30,754 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:21:30,806 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:21:30,831 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:21:30,858 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:21:30,859 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,860 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:21:30,860 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,860 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:21:30,861 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:21:30,862 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:21:30,862 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,863 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:21:30,863 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,866 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:21:30,866 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,867 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:21:30,868 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,869 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:21:30,869 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,870 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:21:30,870 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,871 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:21:30,871 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,872 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:21:30,872 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,873 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:21:30,874 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,874 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:21:30,875 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,875 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:21:30,876 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:21:30,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:21:30,878 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:21:31,223 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:21:31,224 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:21:31,224 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:21:31,224 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:21:31,225 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:21:31,225 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:21:31,225 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:21:31,226 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:21:31,226 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:21:31,226 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:21:31,226 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:21:31,226 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:21:31,227 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:21:31,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:21:31,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:21:31,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:21:31,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:21:31,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:21:31,229 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:21:31,229 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:21:31,230 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:21:31,231 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:21:31,231 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:21:31,232 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:21:31,232 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:21:31,232 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:21:31,232 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:21:31,233 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:21:31,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:21:31,242 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, 1)
2025-04-21 14:21:31,242 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:21:31,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:21:31,243 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:21:31,244 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:21:31,244 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:21:31,244 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:21:31,246 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:21:31,246 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (1000, 2000, 2001)
2025-04-21 14:21:31,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:21:31,248 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:21:31,248 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:21:31,248 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:21:31,248 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:21:31,248 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:21:31,249 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:21:31,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:21:31,250 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1001, datetime.datetime(2025, 4, 21, 13, 21, 31, 244470))
2025-04-21 14:21:31,251 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:22:31,254 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:22:31,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:22:31,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:22:31,256 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:22:31,256 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:22:31,256 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:22:31,256 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:22:31,256 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:22:31,256 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:22:31,257 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:22:31,257 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:22:31,257 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 13, 22, 31, 255273))
2025-04-21 14:22:31,257 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:22:31,258 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:22:31,258 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:22:31,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:22:31,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:22:31,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:22:31,258 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:22:31,258 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:22:31,258 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:22:31,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:22:31,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:22:31,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:22:31,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:22:31,259 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:22:31,259 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:22:31,259 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:22:31,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:22:31,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:22:31,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:22:31,261 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:22:31,261 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:22:31,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:22:31,439 - root - INFO - 应用程序关闭中...
2025-04-21 14:22:31,439 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:22:31,439 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:22:31,439 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:22:31,439 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:22:31,441 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:22:31,441 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:22:31,441 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:22:31,441 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:22:31,441 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:22:31,441 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:22:31,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:22:31,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:22:31,442 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:22:31,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:22:31,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:22:31,442 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:22:31,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:22:31,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:22:31,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:22:31,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:22:31,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:22:31,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:22:31,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:22:31,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:22:31,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:22:31,443 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:22:31,443 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:22:31,443 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:22:31,443 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:22:31,443 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:22:31,444 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:22:31,444 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:22:32,614 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:22:32,616 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:22:32,674 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:22:32,721 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:22:32,738 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:22:32,755 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:22:32,755 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,757 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:22:32,758 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,758 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:22:32,758 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:22:32,759 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:22:32,760 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,763 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:22:32,764 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,770 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:22:32,775 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,782 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:22:32,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,785 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:22:32,785 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,787 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:22:32,787 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,788 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:22:32,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,788 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:22:32,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,801 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:22:32,801 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,802 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:22:32,802 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,804 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:22:32,805 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:22:32,806 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:22:32,807 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:22:33,157 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:22:33,158 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:22:33,158 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:22:33,158 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:22:33,158 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:22:33,159 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:22:33,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:22:33,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:22:33,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:22:33,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:22:33,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:22:33,160 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:22:33,160 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:22:33,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:22:33,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:22:33,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:22:33,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:22:33,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:22:33,161 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:22:33,161 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:22:33,163 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:22:33,163 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:22:33,164 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:22:33,164 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:22:33,164 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:22:33,164 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:22:33,164 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:22:33,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:22:33,174 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:22:33,174 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1, 1)
2025-04-21 14:22:33,176 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:22:33,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:22:33,176 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:22:33,177 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:22:33,177 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:22:33,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:22:33,178 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:22:33,179 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1000, 2000, 2001)
2025-04-21 14:22:33,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:22:33,180 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:22:33,180 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:22:33,180 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:22:33,181 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:22:33,181 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:22:33,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:22:33,182 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:22:33,182 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1001, datetime.datetime(2025, 4, 21, 13, 22, 33, 177270))
2025-04-21 14:22:33,183 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:30,857 - root - INFO - 应用程序关闭中...
2025-04-21 14:23:30,858 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:23:30,858 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:23:30,858 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:23:30,858 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:23:30,858 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:23:30,858 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:23:30,858 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:23:30,858 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:23:30,859 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:23:30,859 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:23:30,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:23:30,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:23:30,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:23:30,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:23:30,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:23:30,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:23:30,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:23:30,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:23:30,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:23:30,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:23:30,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:23:30,863 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:23:30,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:23:30,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:23:30,863 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:23:30,863 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:23:30,863 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:23:30,863 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:23:30,863 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:23:30,864 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:23:30,864 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:23:30,864 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:23:33,321 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:23:33,322 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:23:34,038 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:23:34,039 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:23:34,101 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:23:34,148 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:23:34,184 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:23:34,199 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:23:34,201 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,201 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:23:34,202 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,202 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:23:34,202 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:34,204 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:23:34,204 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,205 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:23:34,207 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,208 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:23:34,208 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,210 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:23:34,210 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,213 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:23:34,213 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,215 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:23:34,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,218 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:23:34,219 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,220 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:23:34,220 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,221 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:23:34,222 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,222 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:23:34,223 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,224 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:23:34,224 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:23:34,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:34,225 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:23:34,575 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:23:34,576 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:23:34,576 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:23:34,576 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:23:34,576 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:23:34,577 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:23:34,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:23:34,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:23:34,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:23:34,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:23:34,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:23:34,577 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:23:34,577 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:23:34,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:23:34,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:23:34,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:23:34,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:23:34,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:23:34,579 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:23:34,581 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:23:34,582 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:23:34,584 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:23:34,585 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:23:34,587 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:23:34,588 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:23:34,588 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:23:34,589 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:23:34,589 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:34,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:23:34,598 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] (1, 1)
2025-04-21 14:23:34,601 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:23:34,601 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:34,602 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:23:34,604 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:23:34,604 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:23:34,605 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:34,606 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:23:34,607 - sqlalchemy.engine.Engine - INFO - [generated in 0.00127s] (1000, 2000, 2001)
2025-04-21 14:23:34,608 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:34,609 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:23:34,609 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:23:34,609 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:23:34,609 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:23:34,609 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:23:34,610 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:34,611 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:23:34,611 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] (1001, datetime.datetime(2025, 4, 21, 13, 23, 34, 604449))
2025-04-21 14:23:34,613 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:41,822 - root - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-21 14:23:41,826 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:41,829 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:23:41,830 - sqlalchemy.engine.Engine - INFO - [generated in 0.00083s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:23:41,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:41,836 - root - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0140秒
2025-04-21 14:23:45,250 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 14:23:45,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,253 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:23:45,253 - sqlalchemy.engine.Engine - INFO - [cached since 3.424s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:23:45,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:23:45,255 - sqlalchemy.engine.Engine - INFO - [cached since 3.426s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:23:45,256 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,256 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 14:23:45,257 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:23:45,257 - sqlalchemy.engine.Engine - INFO - [cached since 3.428s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:23:45,259 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 14:23:45,259 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('1076f493-4df4-4edb-a79f-96d4feec2cb4', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 14, 23, 45, 258846), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 14, 23, 45, 256846), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 14, 23, 45, 259853), datetime.datetime(2025, 4, 21, 14, 23, 45, 259853), 0)
2025-04-21 14:23:45,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,270 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,270 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('1076f493-4df4-4edb-a79f-96d4feec2cb4',)
2025-04-21 14:23:45,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,272 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 1076f493-4df4-4edb-a79f-96d4feec2cb4 (优先级 1) 添加到队列 0
2025-04-21 14:23:45,272 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0219秒
2025-04-21 14:23:45,367 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 1076f493-4df4-4edb-a79f-96d4feec2cb4, 优先级: 1
2025-04-21 14:23:45,368 - services.execution.task_executor - DEBUG - 任务 1076f493-4df4-4edb-a79f-96d4feec2cb4 设置超时时间: 3600秒
2025-04-21 14:23:45,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,369 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,369 - sqlalchemy.engine.Engine - INFO - [cached since 0.09905s ago] ('1076f493-4df4-4edb-a79f-96d4feec2cb4',)
2025-04-21 14:23:45,370 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:23:45,371 - sqlalchemy.engine.Engine - INFO - [cached since 3.542s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:23:45,372 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,373 - sqlalchemy.engine.Engine - INFO - [generated in 0.00106s] (datetime.datetime(2025, 4, 21, 14, 23, 45, 372600), datetime.datetime(2025, 4, 21, 14, 23, 45, 372600), '1076f493-4df4-4edb-a79f-96d4feec2cb4')
2025-04-21 14:23:45,374 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,389 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,397 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,398 - sqlalchemy.engine.Engine - INFO - [generated in 0.00112s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 14, 23, 45, 396550), '1076f493-4df4-4edb-a79f-96d4feec2cb4')
2025-04-21 14:23:45,398 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,405 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 14:23:45,406 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,414 - 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-21 14:23:45,417 - sqlalchemy.engine.Engine - INFO - [generated in 0.00304s] ('dc30bddd-e9ca-4844-b2e5-dfa29c82fd17', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '1076f493-4df4-4edb-a79f-96d4feec2cb4', datetime.datetime(2025, 4, 21, 14, 23, 45, 406520), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 23, 45, 414532), datetime.datetime(2025, 4, 21, 14, 23, 45, 414532), 0)
2025-04-21 14:23:45,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,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-21 14:23:45,436 - sqlalchemy.engine.Engine - INFO - [generated in 0.00345s] ('dc30bddd-e9ca-4844-b2e5-dfa29c82fd17',)
2025-04-21 14:23:45,441 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:23:45,442 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:23:45,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-21 14:23:45,446 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 23, 45, 445544), 'dc30bddd-e9ca-4844-b2e5-dfa29c82fd17')
2025-04-21 14:23:45,447 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,469 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 14:23:45,472 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 14:23:45,480 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 14:23:45,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,486 - 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-21 14:23:45,487 - sqlalchemy.engine.Engine - INFO - [cached since 0.07316s ago] ('9fcf14b1-e91e-43cd-8038-2d2870a1bf3d', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '1076f493-4df4-4edb-a79f-96d4feec2cb4', datetime.datetime(2025, 4, 21, 14, 23, 45, 485686), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 23, 45, 486542), datetime.datetime(2025, 4, 21, 14, 23, 45, 486542), 0)
2025-04-21 14:23:45,488 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,498 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 9fcf14b1-e91e-43cd-8038-2d2870a1bf3d
2025-04-21 14:23:45,500 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,501 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:23:45,502 - sqlalchemy.engine.Engine - INFO - [cached since 0.06874s ago] ('9fcf14b1-e91e-43cd-8038-2d2870a1bf3d',)
2025-04-21 14:23:45,503 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:23:45,503 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:23:45,504 - 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-21 14:23:45,505 - sqlalchemy.engine.Engine - INFO - [cached since 0.06041s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 23, 45, 504519), '9fcf14b1-e91e-43cd-8038-2d2870a1bf3d')
2025-04-21 14:23:45,507 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,516 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 14:23:45,518 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 14:23:45,520 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,522 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,523 - sqlalchemy.engine.Engine - INFO - [cached since 0.2528s ago] ('1076f493-4df4-4edb-a79f-96d4feec2cb4',)
2025-04-21 14:23:45,525 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,535 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:23:45,537 - sqlalchemy.engine.Engine - INFO - [cached since 3.708s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:23:45,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:23:45,541 - sqlalchemy.engine.Engine - INFO - [cached since 3.712s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:23:45,545 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 14:23:45,546 - sqlalchemy.engine.Engine - INFO - [cached since 0.2874s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 14, 23, 45, 543531), None, None, 1002, None, None, None, '1076f493-4df4-4edb-a79f-96d4feec2cb4', '1076f493-4df4-4edb-a79f-96d4feec2cb4', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 14, 23, 45, 539518), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 14, 23, 45, 545633), datetime.datetime(2025, 4, 21, 14, 23, 45, 545633), 0)
2025-04-21 14:23:45,549 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,557 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,557 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,558 - sqlalchemy.engine.Engine - INFO - [cached since 0.2873s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b',)
2025-04-21 14:23:45,559 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,562 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9c495f2d-c06c-4df5-b7af-88557aa7db8b (优先级 1) 添加到队列 0
2025-04-21 14:23:45,563 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,564 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,564 - sqlalchemy.engine.Engine - INFO - [cached since 0.2942s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b',)
2025-04-21 14:23:45,566 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 9c495f2d-c06c-4df5-b7af-88557aa7db8b, 优先级: 1
2025-04-21 14:23:45,678 - services.execution.task_executor - DEBUG - 任务 9c495f2d-c06c-4df5-b7af-88557aa7db8b 设置超时时间: 3600秒
2025-04-21 14:23:45,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,679 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,679 - sqlalchemy.engine.Engine - INFO - [cached since 0.4092s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b',)
2025-04-21 14:23:45,681 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:23:45,681 - sqlalchemy.engine.Engine - INFO - [cached since 3.852s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 14:23:45,682 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,683 - sqlalchemy.engine.Engine - INFO - [cached since 0.3106s ago] (datetime.datetime(2025, 4, 21, 14, 23, 45, 682889), datetime.datetime(2025, 4, 21, 14, 23, 45, 682889), '9c495f2d-c06c-4df5-b7af-88557aa7db8b')
2025-04-21 14:23:45,684 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,692 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,692 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:45,692 - sqlalchemy.engine.Engine - INFO - [cached since 0.2967s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 14, 23, 45, 692801), '9c495f2d-c06c-4df5-b7af-88557aa7db8b')
2025-04-21 14:23:45,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,700 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 14:23:45,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,701 - 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-21 14:23:45,701 - sqlalchemy.engine.Engine - INFO - [cached since 0.2881s ago] ('d2c08c89-4c8f-461b-bfb2-87597f1622a1', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9c495f2d-c06c-4df5-b7af-88557aa7db8b', datetime.datetime(2025, 4, 21, 14, 23, 45, 700872), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 23, 45, 701876), datetime.datetime(2025, 4, 21, 14, 23, 45, 701876), 0)
2025-04-21 14:23:45,701 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,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-21 14:23:45,709 - sqlalchemy.engine.Engine - INFO - [cached since 0.2765s ago] ('d2c08c89-4c8f-461b-bfb2-87597f1622a1',)
2025-04-21 14:23:45,710 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:23:45,712 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:23:45,712 - 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-21 14:23:45,712 - sqlalchemy.engine.Engine - INFO - [cached since 0.2678s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 23, 45, 712732), 'd2c08c89-4c8f-461b-bfb2-87597f1622a1')
2025-04-21 14:23:45,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,719 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 14:23:45,719 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 14:23:45,719 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 14:23:45,720 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,720 - 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-21 14:23:45,720 - sqlalchemy.engine.Engine - INFO - [cached since 0.3067s ago] ('26d4bf65-de2a-4ac8-9b7e-4ac2959dd957', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9c495f2d-c06c-4df5-b7af-88557aa7db8b', datetime.datetime(2025, 4, 21, 14, 23, 45, 719846), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 14, 23, 45, 720729), datetime.datetime(2025, 4, 21, 14, 23, 45, 720729), 0)
2025-04-21 14:23:45,720 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,727 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 26d4bf65-de2a-4ac8-9b7e-4ac2959dd957
2025-04-21 14:23:45,727 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:45,728 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:23:45,728 - sqlalchemy.engine.Engine - INFO - [cached since 0.2951s ago] ('26d4bf65-de2a-4ac8-9b7e-4ac2959dd957',)
2025-04-21 14:23:45,729 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:23:45,729 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:23:45,729 - 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-21 14:23:45,729 - sqlalchemy.engine.Engine - INFO - [cached since 0.2847s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 14, 23, 45, 729355), '26d4bf65-de2a-4ac8-9b7e-4ac2959dd957')
2025-04-21 14:23:45,730 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:45,735 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 14:23:48,583 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:48,584 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:48,584 - sqlalchemy.engine.Engine - INFO - [cached since 3.315s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b',)
2025-04-21 14:23:48,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:51,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:51,606 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:51,610 - sqlalchemy.engine.Engine - INFO - [cached since 6.34s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b',)
2025-04-21 14:23:51,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:54,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:54,629 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:54,629 - sqlalchemy.engine.Engine - INFO - [cached since 9.359s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b',)
2025-04-21 14:23:54,630 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:56,526 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 14:23:56,528 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:56,528 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:23:56,528 - sqlalchemy.engine.Engine - INFO - [cached since 14.7s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:23:56,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:23:56,530 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 14:23:56,531 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 1076f493-4df4-4edb-a79f-96d4feec2cb4
2025-04-21 14:23:56,532 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:56,532 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:56,532 - sqlalchemy.engine.Engine - INFO - [cached since 11.26s ago] ('1076f493-4df4-4edb-a79f-96d4feec2cb4',)
2025-04-21 14:23:56,534 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:23:56,534 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('1076f493-4df4-4edb-a79f-96d4feec2cb4', 1001)
2025-04-21 14:23:56,535 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 9c495f2d-c06c-4df5-b7af-88557aa7db8b, 父任务: 1076f493-4df4-4edb-a79f-96d4feec2cb4
2025-04-21 14:23:56,535 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 9c495f2d-c06c-4df5-b7af-88557aa7db8b
2025-04-21 14:23:56,537 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:23:56,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:56,538 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:56,538 - sqlalchemy.engine.Engine - INFO - [cached since 11.27s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b',)
2025-04-21 14:23:56,539 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:23:56,539 - sqlalchemy.engine.Engine - INFO - [cached since 0.005637s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b', 1001)
2025-04-21 14:23:56,541 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:56,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:56,543 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:56,543 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] (datetime.datetime(2025, 4, 21, 14, 23, 56, 541677), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 14, 23, 56, 543675), '9c495f2d-c06c-4df5-b7af-88557aa7db8b')
2025-04-21 14:23:56,543 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:56,559 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:56,560 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:56,560 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:56,560 - sqlalchemy.engine.Engine - INFO - [cached since 0.01744s ago] (datetime.datetime(2025, 4, 21, 14, 23, 56, 560339), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 14, 23, 56, 560339), '1076f493-4df4-4edb-a79f-96d4feec2cb4')
2025-04-21 14:23:56,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:56,569 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 14:23:56,570 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (0, datetime.datetime(2025, 4, 21, 14, 23, 56, 569105), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 14:23:56,570 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:56,579 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0525秒
2025-04-21 14:23:57,622 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:57,622 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:57,622 - sqlalchemy.engine.Engine - INFO - [cached since 12.35s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b',)
2025-04-21 14:23:57,624 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:57,626 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:57,626 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:57,626 - sqlalchemy.engine.Engine - INFO - [cached since 12.36s ago] ('9c495f2d-c06c-4df5-b7af-88557aa7db8b',)
2025-04-21 14:23:57,627 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:57,629 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:57,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-21 14:23:57,630 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] ('080b7753-d62b-49c7-92fa-bc5f182a2e81', 1, '{"success": true, "message": "子任务执行成功", "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "9c495f2d-c06c-4df5-b7af-8855 ... (19 characters truncated) ...  false, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "9c495f2d-c06c-4df5-b7af-88557aa7db8b", "output": {}}, "taskStatus": 2001}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '1076f493-4df4-4edb-a79f-96d4feec2cb4', datetime.datetime(2025, 4, 21, 14, 23, 57, 630683), datetime.datetime(2025, 4, 21, 14, 23, 57, 630683), 0)
2025-04-21 14:23:57,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:57,647 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:57,647 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:23:57,647 - sqlalchemy.engine.Engine - INFO - [cached since 12.21s ago] ('9fcf14b1-e91e-43cd-8038-2d2870a1bf3d',)
2025-04-21 14:23:57,648 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 14:23:57,648 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 14:23:57,649 - 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-21 14:23:57,649 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (datetime.datetime(2025, 4, 21, 14, 23, 57, 649767), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': '9c495f2d-c06c-4df5-b7af-88557aa7db8b', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': '9c495f2d-c06c-4df5-b7af-88557aa7db8b', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 14, 23, 57, 649767), '9fcf14b1-e91e-43cd-8038-2d2870a1bf3d')
2025-04-21 14:23:57,649 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:57,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:57,664 - 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-21 14:23:57,667 - sqlalchemy.engine.Engine - INFO - [cached since 0.03746s ago] ('d3f399e4-73af-4f0a-a4fd-ccff33cb2e70', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (130 characters truncated) ... lse, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "9c495f2d-c06c-4df5-b7af-88557aa7db8b", "output": {}}, "taskStatus": 2001}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '1076f493-4df4-4edb-a79f-96d4feec2cb4', datetime.datetime(2025, 4, 21, 14, 23, 57, 664337), datetime.datetime(2025, 4, 21, 14, 23, 57, 664337), 0)
2025-04-21 14:23:57,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:57,676 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:57,676 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 14:23:57,677 - sqlalchemy.engine.Engine - INFO - [cached since 12.24s ago] ('dc30bddd-e9ca-4844-b2e5-dfa29c82fd17',)
2025-04-21 14:23:57,677 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 14:23:57,677 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 14:23:57,678 - 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-21 14:23:57,678 - sqlalchemy.engine.Engine - INFO - [cached since 0.0286s ago] (datetime.datetime(2025, 4, 21, 14, 23, 57, 678262), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': '9c495f2d-c06c-4df5-b7af-88557aa7db8b', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': '9c495f2d-c06c-4df5-b7af-88557aa7db8b', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 14, 23, 57, 678262), 'dc30bddd-e9ca-4844-b2e5-dfa29c82fd17')
2025-04-21 14:23:57,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:57,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:23:57,687 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 14:23:57,687 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 21, 14, 23, 57, 686261), '任务执行成功', 1000, 12297, datetime.datetime(2025, 4, 21, 14, 23, 57, 687261), '1076f493-4df4-4edb-a79f-96d4feec2cb4')
2025-04-21 14:23:57,687 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:23:57,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 1076f493-4df4-4edb-a79f-96d4feec2cb4, 结果: True
2025-04-21 14:24:03,982 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 14:24:03,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:24:03,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 14:24:03,985 - sqlalchemy.engine.Engine - INFO - [cached since 22.16s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 14:24:03,986 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 14:24:03,987 - sqlalchemy.engine.Engine - INFO - [cached since 7.458s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 14:24:03,988 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 14:24:03,989 - sqlalchemy.engine.Engine - INFO - [cached since 7.42s ago] (0, datetime.datetime(2025, 4, 21, 14, 24, 3, 988977), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 14:24:03,989 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:24:03,998 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0160秒
2025-04-21 14:24:34,592 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:24:34,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:24:34,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:24:34,593 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:24:34,594 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:24:34,594 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:24:34,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:24:34,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:24:34,595 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:24:34,595 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:24:34,595 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:24:34,595 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:24:34,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:24:34,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:24:34,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:24:34,596 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:24:34,596 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:24:34,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:24:34,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:24:34,624 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:24:34,625 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 13, 24, 34, 623770))
2025-04-21 14:24:34,626 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:24:49,589 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:24:49,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:24:49,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:24:49,590 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:24:49,590 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:24:49,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:25:04,599 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:25:04,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:25:04,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:25:04,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:25:04,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:25:04,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:25:34,629 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:25:34,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:25:34,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:25:34,631 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:25:34,631 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:25:34,631 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:25:34,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:25:34,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:25:34,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:25:34,632 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:25:34,633 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:25:34,633 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 13, 25, 34, 630539))
2025-04-21 14:25:34,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:25:34,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:25:34,635 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:25:34,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:25:34,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:25:34,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:25:34,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:25:34,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:25:34,641 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:25:34,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:25:49,654 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:25:49,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:25:49,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:25:49,655 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:25:49,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:25:49,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:26:04,655 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:26:04,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:26:04,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:26:04,656 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:26:04,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:26:04,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:26:34,659 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:26:34,660 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:26:34,661 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 21, 13, 26, 34, 657878))
2025-04-21 14:26:34,664 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:26:34,689 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:26:34,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:26:34,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:26:34,691 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:26:34,691 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:26:34,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:26:34,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:26:34,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:26:34,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:26:34,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:26:34,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:26:34,695 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:26:34,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:26:34,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:26:34,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:26:34,697 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:26:34,697 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:26:34,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:26:49,723 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:26:49,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:26:49,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:26:49,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:26:49,726 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:26:49,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:27:04,740 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:27:04,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:27:04,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:27:04,746 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:27:04,746 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:27:04,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:27:34,664 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:27:34,666 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:27:34,668 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (1001, datetime.datetime(2025, 4, 21, 13, 27, 34, 664987))
2025-04-21 14:27:34,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:27:34,757 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:27:34,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:27:34,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:27:34,758 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:27:34,758 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:27:34,758 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:27:34,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:27:34,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:27:34,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:27:34,758 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:27:34,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:27:34,760 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:27:34,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:27:34,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:27:34,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:27:34,760 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:27:34,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:27:34,765 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:27:49,780 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:27:49,781 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:27:49,781 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:27:49,781 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:27:49,781 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:27:49,781 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:28:04,783 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:28:04,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:28:04,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:28:04,784 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:28:04,784 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:28:04,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:28:04,926 - root - INFO - 应用程序关闭中...
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:28:04,927 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:28:04,927 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:28:04,927 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:28:04,927 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:28:04,927 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:28:04,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:28:04,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 3
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:28:04,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 2
2025-04-21 14:28:04,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:28:04,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:28:04,929 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 1
2025-04-21 14:28:04,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:28:04,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:28:04,929 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-21 14:28:04,929 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:28:04,929 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:28:04,929 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:28:04,929 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:28:04,929 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:28:04,930 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:28:04,930 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:28:06,172 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:28:06,174 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:28:06,235 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:28:06,289 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:28:06,327 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:28:06,350 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:28:06,351 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,352 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:28:06,352 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,352 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:28:06,353 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:28:06,353 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:28:06,354 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,355 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:28:06,355 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,357 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:28:06,357 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,358 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:28:06,358 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,359 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:28:06,359 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,360 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:28:06,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,361 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:28:06,361 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,362 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:28:06,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,363 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:28:06,363 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:28:06,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,365 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:28:06,365 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:28:06,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:28:06,367 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:28:06,723 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:28:06,724 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:28:06,724 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:28:06,724 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:28:06,725 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:28:06,725 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:28:06,725 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:28:06,725 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:28:06,726 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:28:06,726 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:28:06,726 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:28:06,727 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:28:06,727 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:28:06,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:28:06,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:28:06,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:28:06,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:28:06,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:28:06,729 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:28:06,729 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:28:06,730 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:28:06,731 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:28:06,731 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:28:06,732 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:28:06,733 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:28:06,733 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:28:06,733 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:28:06,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:28:06,743 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:28:06,743 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, 1)
2025-04-21 14:28:06,744 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:28:06,744 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:28:06,745 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:28:06,745 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:28:06,745 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:28:06,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:28:06,747 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:28:06,747 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1000, 2000, 2001)
2025-04-21 14:28:06,748 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:28:06,749 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:28:06,749 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:28:06,749 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:28:06,749 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:28:06,749 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:28:06,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:28:06,750 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:28:06,751 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (1001, datetime.datetime(2025, 4, 21, 13, 28, 6, 745837))
2025-04-21 14:28:06,751 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:29:06,747 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:29:06,749 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:29:06,749 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:29:06,749 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:29:06,750 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:29:06,750 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:29:06,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:29:06,751 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:29:06,752 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 21, 13, 29, 6, 747459))
2025-04-21 14:29:06,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:29:06,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:29:06,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:29:06,754 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:29:06,754 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:29:06,755 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:29:06,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:29:06,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:29:06,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:29:06,757 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:29:06,758 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:29:06,758 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:29:06,758 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:29:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:29:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:29:06,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:29:06,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:29:06,759 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:29:06,759 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:29:06,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:29:06,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:29:06,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:29:06,760 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:29:06,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:29:06,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:29:06,922 - root - INFO - 应用程序关闭中...
2025-04-21 14:29:06,922 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:29:06,923 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:29:06,923 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:29:06,924 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:29:06,924 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:29:06,925 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:29:06,927 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:29:06,928 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:29:06,928 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:29:06,928 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:29:06,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:29:06,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:29:06,929 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:29:06,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:29:06,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:29:06,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:29:06,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:29:06,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:29:06,931 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:29:06,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:29:06,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:29:06,931 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:29:06,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:29:06,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:29:06,932 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:29:06,932 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:29:06,932 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:29:06,932 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:29:06,932 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:29:06,933 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:29:06,933 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:29:06,933 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:29:08,135 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:29:08,138 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:29:08,195 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:29:08,244 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:29:08,276 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:29:08,293 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:29:08,293 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,293 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:29:08,293 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,295 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:29:08,295 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:29:08,295 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:29:08,295 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,296 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:29:08,296 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,298 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:29:08,298 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,299 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:29:08,300 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,301 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:29:08,301 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,302 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:29:08,302 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,303 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:29:08,304 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,308 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:29:08,308 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,310 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:29:08,310 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,311 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:29:08,311 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,313 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:29:08,313 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:29:08,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:29:08,314 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:29:08,663 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:29:08,663 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:29:08,663 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:29:08,663 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:29:08,663 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:29:08,663 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:29:08,665 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:29:08,665 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:29:08,665 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:29:08,665 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:29:08,665 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:29:08,665 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:29:08,665 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:29:08,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:29:08,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:29:08,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:29:08,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:29:08,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:29:08,667 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:29:08,667 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:29:08,687 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:29:08,688 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:29:08,690 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:29:08,691 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:29:08,691 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:29:08,692 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:29:08,692 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:29:08,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:29:08,704 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:29:08,705 - sqlalchemy.engine.Engine - INFO - [generated in 0.00096s] (1, 1)
2025-04-21 14:29:08,706 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:29:08,706 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:29:08,707 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:29:08,708 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:29:08,708 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:29:08,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:29:08,710 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:29:08,711 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (1000, 2000, 2001)
2025-04-21 14:29:08,731 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:29:08,732 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:29:08,732 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:29:08,733 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:29:08,733 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:29:08,733 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:29:08,734 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:29:08,735 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:29:08,735 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (1001, datetime.datetime(2025, 4, 21, 13, 29, 8, 708835))
2025-04-21 14:29:08,737 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:30:08,713 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:30:08,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:30:08,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:30:08,716 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:30:08,716 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:30:08,717 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:30:08,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:30:08,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:30:08,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:30:08,717 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:30:08,717 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:30:08,717 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:30:08,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:30:08,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:30:08,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:30:08,718 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:30:08,718 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:30:08,718 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:30:08,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:30:08,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:30:08,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:30:08,718 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:30:08,718 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:30:08,718 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:30:08,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:30:08,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:30:08,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:30:08,720 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:30:08,720 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:30:08,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:30:08,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:30:08,745 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:30:08,746 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 13, 30, 8, 744384))
2025-04-21 14:30:08,749 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:30:08,916 - root - INFO - 应用程序关闭中...
2025-04-21 14:30:08,918 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:30:08,918 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:30:08,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:30:08,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:30:08,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:30:08,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:30:08,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:30:08,920 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:30:08,920 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:30:08,920 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:30:08,922 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:30:08,922 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:30:08,922 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:30:08,924 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:30:08,924 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:30:08,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:30:08,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:30:08,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:30:08,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:30:08,926 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:30:08,926 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:30:08,926 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:30:08,927 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:30:08,927 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:30:08,927 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:30:08,928 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:30:08,928 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:30:10,181 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:30:10,181 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:30:10,243 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:30:10,296 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:30:10,316 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:30:10,333 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:30:10,333 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,335 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:30:10,335 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,336 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:30:10,336 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:30:10,336 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:30:10,336 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,337 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:30:10,337 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,338 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:30:10,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,340 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:30:10,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,341 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:30:10,341 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,342 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:30:10,342 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,342 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:30:10,342 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:30:10,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,344 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:30:10,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,344 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:30:10,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,345 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:30:10,345 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:30:10,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:30:10,347 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:30:10,699 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:30:10,699 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:30:10,700 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:30:10,700 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:30:10,700 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:30:10,700 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:30:10,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:30:10,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:30:10,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:30:10,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:30:10,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:30:10,701 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:30:10,701 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:30:10,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:30:10,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:30:10,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:30:10,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:30:10,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:30:10,704 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:30:10,704 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:30:10,705 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:30:10,706 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:30:10,706 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:30:10,707 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:30:10,707 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:30:10,707 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:30:10,707 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:30:10,708 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:30:10,716 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:30:10,717 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1, 1)
2025-04-21 14:30:10,717 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:30:10,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:30:10,718 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:30:10,719 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:30:10,719 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:30:10,720 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:30:10,721 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:30:10,721 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1000, 2000, 2001)
2025-04-21 14:30:10,722 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:30:10,723 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:30:10,723 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:30:10,723 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:30:10,723 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:30:10,723 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:30:10,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:30:10,725 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:30:10,726 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (1001, datetime.datetime(2025, 4, 21, 13, 30, 10, 719344))
2025-04-21 14:30:10,727 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:31:10,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:31:10,731 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:31:10,731 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 13, 31, 10, 728879))
2025-04-21 14:31:10,731 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:31:10,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:31:10,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:31:10,732 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:31:10,732 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:31:10,732 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:31:10,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:31:10,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:31:10,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:31:10,733 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:31:10,734 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:31:10,734 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:31:10,734 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:31:10,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:31:10,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:31:10,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:31:10,734 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:31:10,734 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:31:10,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:31:10,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:31:10,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:31:10,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:31:10,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:31:10,735 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:31:10,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:31:10,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:31:10,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:31:10,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:31:10,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:31:10,737 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:31:10,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:32:10,752 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:32:10,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:32:10,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:32:10,753 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:32:10,754 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:32:10,754 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:32:10,754 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:32:10,755 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:32:10,756 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 13, 32, 10, 752503))
2025-04-21 14:32:10,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:32:10,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:32:10,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:32:10,757 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:32:10,758 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:32:10,758 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:32:10,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:32:10,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:32:10,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:32:10,759 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:32:10,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:32:10,759 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:32:10,759 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:32:10,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:32:10,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:32:10,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:32:10,760 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:32:10,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:32:10,760 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:32:10,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:32:10,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:32:10,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:32:10,760 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:32:10,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:32:10,765 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:32:10,877 - root - INFO - 应用程序关闭中...
2025-04-21 14:32:10,878 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:32:10,878 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:32:10,878 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:32:10,878 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:32:10,878 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:32:10,878 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:32:10,878 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:32:10,878 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:32:10,878 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:32:10,879 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:32:10,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:32:10,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:32:10,879 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:32:10,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:32:10,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:32:10,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:32:10,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:32:10,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:32:10,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:32:10,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:32:10,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:32:10,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:32:10,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:32:10,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:32:10,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:32:10,881 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:32:10,881 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:32:10,881 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:32:10,881 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:32:10,881 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:32:10,882 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:32:10,882 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:32:12,048 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:32:12,048 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:32:12,109 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:32:12,158 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:32:12,193 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:32:12,212 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:32:12,212 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,215 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:32:12,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,216 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:32:12,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:32:12,217 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:32:12,217 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,219 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:32:12,219 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,221 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:32:12,221 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,223 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:32:12,223 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,224 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:32:12,224 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,226 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:32:12,227 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,227 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:32:12,228 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,228 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:32:12,229 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,230 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:32:12,230 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,232 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:32:12,232 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,234 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:32:12,235 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:32:12,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:32:12,236 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:32:12,608 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:32:12,608 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:32:12,609 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:32:12,609 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:32:12,609 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:32:12,610 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:32:12,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:32:12,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:32:12,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:32:12,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:32:12,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:32:12,610 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:32:12,611 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:32:12,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:32:12,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:32:12,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:32:12,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:32:12,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:32:12,612 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:32:12,612 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:32:12,613 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:32:12,614 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:32:12,614 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:32:12,614 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:32:12,614 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:32:12,615 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:32:12,615 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:32:12,616 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:32:12,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:32:12,625 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1, 1)
2025-04-21 14:32:12,626 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:32:12,626 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:32:12,626 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:32:12,627 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:32:12,627 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:32:12,627 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:32:12,629 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:32:12,629 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1000, 2000, 2001)
2025-04-21 14:32:12,630 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:32:12,631 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:32:12,631 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:32:12,631 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:32:12,631 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:32:12,631 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:32:12,633 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:32:12,634 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:32:12,634 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1001, datetime.datetime(2025, 4, 21, 13, 32, 12, 627013))
2025-04-21 14:32:12,635 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:33:12,648 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:33:12,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:33:12,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:33:12,650 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:33:12,651 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:33:12,651 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:33:12,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:33:12,653 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:33:12,654 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 13, 33, 12, 647278))
2025-04-21 14:33:12,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:33:12,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:33:12,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:33:12,656 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:33:12,656 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:33:12,656 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:33:12,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:33:12,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:33:12,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:33:12,658 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:33:12,658 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:33:12,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:33:12,658 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:33:12,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:33:12,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:33:12,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:33:12,659 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:33:12,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:33:12,660 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:33:12,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:33:12,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:33:12,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:33:12,661 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:33:12,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:33:12,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:33:12,771 - root - INFO - 应用程序关闭中...
2025-04-21 14:33:12,772 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:33:12,772 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:33:12,772 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:33:12,773 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:33:12,773 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:33:12,774 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:33:12,774 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:33:12,774 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:33:12,775 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:33:12,775 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:33:12,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:33:12,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:33:12,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:33:12,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:33:12,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:33:12,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:33:12,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:33:12,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:33:12,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:33:12,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:33:12,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:33:12,780 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:33:12,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:33:12,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:33:12,780 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:33:12,781 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:33:12,781 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:33:12,781 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:33:12,781 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:33:12,782 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:33:12,782 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:33:12,782 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:33:13,968 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:33:13,969 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:33:14,029 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:33:14,077 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:33:14,119 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:33:14,140 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:33:14,141 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,141 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:33:14,142 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,142 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:33:14,142 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:33:14,143 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:33:14,143 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,144 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:33:14,145 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,146 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:33:14,146 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,156 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:33:14,156 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,158 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:33:14,159 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,161 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:33:14,161 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,162 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:33:14,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,164 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:33:14,164 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,165 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:33:14,165 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,167 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:33:14,167 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,167 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:33:14,168 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:33:14,169 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:33:14,170 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:33:14,549 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:33:14,550 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:33:14,550 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:33:14,550 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:33:14,550 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:33:14,550 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:33:14,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:33:14,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:33:14,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:33:14,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:33:14,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:33:14,552 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:33:14,552 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:33:14,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:33:14,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:33:14,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:33:14,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:33:14,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:33:14,554 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:33:14,554 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:33:14,555 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:33:14,556 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:33:14,556 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:33:14,557 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:33:14,557 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:33:14,558 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:33:14,558 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:33:14,559 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:33:14,568 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:33:14,569 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (1, 1)
2025-04-21 14:33:14,570 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:33:14,570 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:33:14,571 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:33:14,572 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:33:14,572 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:33:14,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:33:14,575 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:33:14,575 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1000, 2000, 2001)
2025-04-21 14:33:14,592 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:33:14,593 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:33:14,594 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:33:14,596 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:33:14,598 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:33:14,600 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:33:14,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:33:14,606 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:33:14,608 - sqlalchemy.engine.Engine - INFO - [generated in 0.00175s] (1001, datetime.datetime(2025, 4, 21, 13, 33, 14, 573564))
2025-04-21 14:33:14,611 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:34:14,552 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:34:14,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:34:14,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:34:14,554 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:34:14,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:34:14,555 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:34:14,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:34:14,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:34:14,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:34:14,558 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:34:14,558 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:34:14,558 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:34:14,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:34:14,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:34:14,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:34:14,559 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:34:14,559 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:34:14,559 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:34:14,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:34:14,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:34:14,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:34:14,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:34:14,560 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:34:14,560 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:34:14,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:34:14,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:34:14,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:34:14,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:34:14,561 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:34:14,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:34:14,626 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:34:14,627 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:34:14,628 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 13, 34, 14, 625690))
2025-04-21 14:34:14,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:34:14,764 - root - INFO - 应用程序关闭中...
2025-04-21 14:34:14,765 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:34:14,765 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:34:14,765 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:34:14,765 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:34:14,766 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:34:14,767 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:34:14,767 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:34:14,767 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:34:14,767 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:34:14,767 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:34:14,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:34:14,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:34:14,769 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:34:14,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:34:14,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:34:14,769 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:34:14,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:34:14,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:34:14,770 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:34:14,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:34:14,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:34:14,770 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:34:14,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:34:14,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:34:14,770 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:34:14,770 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:34:14,770 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:34:14,770 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:34:14,770 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:34:14,771 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:34:14,771 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:34:14,771 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:34:15,957 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:34:15,959 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:34:16,017 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:34:16,062 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:34:16,099 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:34:16,124 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:34:16,125 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,126 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:34:16,126 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,126 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:34:16,127 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,127 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:34:16,128 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:34:16,128 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,129 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:34:16,129 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,130 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:34:16,131 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,131 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:34:16,132 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,133 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:34:16,133 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,134 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:34:16,134 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,135 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:34:16,135 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,137 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:34:16,137 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,138 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:34:16,138 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,138 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:34:16,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,140 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:34:16,140 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:34:16,140 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:34:16,141 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:34:16,485 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:34:16,486 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:34:16,486 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:34:16,487 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:34:16,487 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:34:16,487 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:34:16,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:34:16,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:34:16,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:34:16,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:34:16,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:34:16,489 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:34:16,489 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:34:16,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:34:16,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:34:16,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:34:16,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:34:16,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:34:16,494 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:34:16,494 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:34:16,519 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:34:16,520 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:34:16,521 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:34:16,521 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:34:16,522 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:34:16,522 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:34:16,523 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:34:16,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:34:16,535 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:34:16,535 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1, 1)
2025-04-21 14:34:16,536 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:34:16,537 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:34:16,538 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:34:16,538 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:34:16,538 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:34:16,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:34:16,544 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:34:16,544 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (1000, 2000, 2001)
2025-04-21 14:34:16,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:34:16,546 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:34:16,546 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:34:16,546 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:34:16,546 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:34:16,547 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:34:16,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:34:16,548 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:34:16,548 - sqlalchemy.engine.Engine - INFO - [generated in 0.00018s] (1001, datetime.datetime(2025, 4, 21, 13, 34, 16, 538215))
2025-04-21 14:34:16,549 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:35:16,513 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:35:16,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:35:16,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:35:16,515 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:35:16,515 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:35:16,515 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:35:16,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:35:16,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:35:16,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:35:16,516 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:35:16,516 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:35:16,516 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:35:16,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:35:16,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:35:16,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:35:16,517 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:35:16,517 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:35:16,517 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:35:16,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:35:16,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:35:16,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:35:16,518 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:35:16,518 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:35:16,518 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:35:16,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:35:16,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:35:16,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:35:16,519 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:35:16,521 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:35:16,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:35:16,560 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:35:16,561 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:35:16,561 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 13, 35, 16, 560419))
2025-04-21 14:35:16,563 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:35:16,621 - root - INFO - 应用程序关闭中...
2025-04-21 14:35:16,621 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:35:16,621 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:35:16,623 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:35:16,623 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:35:16,623 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:35:16,623 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:35:16,623 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:35:16,624 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:35:16,624 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:35:16,624 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:35:16,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:35:16,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:35:16,624 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:35:16,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:35:16,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:35:16,625 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:35:16,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:35:16,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:35:16,625 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:35:16,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:35:16,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:35:16,626 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:35:16,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:35:16,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:35:16,626 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:35:16,626 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:35:16,626 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:35:16,626 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:35:16,626 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:35:16,627 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:35:16,627 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:35:16,627 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:35:17,742 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:35:17,743 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:35:17,803 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:35:17,857 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:35:17,882 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:35:17,883 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:35:17,884 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,884 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:35:17,884 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,884 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:35:17,885 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,885 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:35:17,885 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:35:17,885 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,887 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:35:17,887 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,889 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:35:17,889 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,890 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:35:17,891 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,891 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:35:17,892 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,894 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:35:17,894 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,896 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:35:17,896 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,897 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:35:17,897 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,898 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:35:17,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,899 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:35:17,899 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,901 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:35:17,902 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:35:17,903 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:35:17,903 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:35:18,262 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:35:18,263 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:35:18,263 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:35:18,264 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:35:18,264 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:35:18,265 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:35:18,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:35:18,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:35:18,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:35:18,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:35:18,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:35:18,267 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:35:18,267 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:35:18,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:35:18,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:35:18,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:35:18,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:35:18,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:35:18,268 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:35:18,269 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:35:18,270 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:35:18,271 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:35:18,271 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:35:18,272 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:35:18,272 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:35:18,272 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:35:18,273 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:35:18,273 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:35:18,282 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:35:18,282 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (1, 1)
2025-04-21 14:35:18,283 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:35:18,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:35:18,284 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:35:18,285 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:35:18,285 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:35:18,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:35:18,287 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:35:18,288 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] (1000, 2000, 2001)
2025-04-21 14:35:18,289 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:35:18,290 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:35:18,290 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:35:18,291 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:35:18,291 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:35:18,291 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:35:18,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:35:18,293 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:35:18,294 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] (1001, datetime.datetime(2025, 4, 21, 13, 35, 18, 286288))
2025-04-21 14:35:18,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:36:18,279 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:36:18,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:36:18,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:36:18,282 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:36:18,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:36:18,283 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:36:18,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:36:18,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:36:18,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:36:18,285 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:36:18,285 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:36:18,285 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:36:18,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:36:18,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:36:18,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:36:18,285 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:36:18,286 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:36:18,286 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:36:18,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:36:18,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:36:18,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:36:18,286 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:36:18,286 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:36:18,286 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:36:18,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:36:18,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:36:18,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:36:18,287 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:36:18,287 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:36:18,291 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:36:18,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:36:18,292 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:36:18,294 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (1001, datetime.datetime(2025, 4, 21, 13, 36, 18, 292859))
2025-04-21 14:36:18,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:36:18,465 - root - INFO - 应用程序关闭中...
2025-04-21 14:36:18,466 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:36:18,466 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:36:18,467 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:36:18,467 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:36:18,468 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:36:18,468 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:36:18,468 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:36:18,469 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:36:18,469 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:36:18,469 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:36:18,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:36:18,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:36:18,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:36:18,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:36:18,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:36:18,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:36:18,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:36:18,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:36:18,471 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:36:18,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:36:18,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:36:18,471 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:36:18,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:36:18,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:36:18,472 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:36:18,472 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:36:18,472 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:36:18,472 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:36:18,473 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:36:18,473 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:36:18,473 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:36:18,473 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:36:19,706 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:36:19,706 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:36:19,765 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:36:19,818 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:36:19,838 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:36:19,857 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:36:19,858 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,858 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:36:19,859 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,859 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:36:19,860 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,860 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:36:19,860 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:36:19,860 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,862 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:36:19,862 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,863 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:36:19,864 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,866 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:36:19,866 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,867 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:36:19,867 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,868 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:36:19,869 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,870 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:36:19,870 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,871 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:36:19,871 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,873 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:36:19,873 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,873 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:36:19,874 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,874 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:36:19,874 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:36:19,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:36:19,877 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:36:20,221 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:36:20,222 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:36:20,222 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:36:20,222 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:36:20,222 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:36:20,222 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:36:20,223 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:36:20,224 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:36:20,224 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:36:20,224 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:36:20,224 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:36:20,225 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:36:20,225 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:36:20,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:36:20,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:36:20,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:36:20,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:36:20,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:36:20,227 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:36:20,227 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:36:20,227 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:36:20,227 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:36:20,228 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:36:20,228 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:36:20,228 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:36:20,229 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:36:20,229 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:36:20,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:36:20,239 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:36:20,239 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1, 1)
2025-04-21 14:36:20,239 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:36:20,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:36:20,241 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:36:20,241 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:36:20,241 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:36:20,241 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:36:20,243 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:36:20,243 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (1000, 2000, 2001)
2025-04-21 14:36:20,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:36:20,245 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:36:20,246 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:36:20,246 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:36:20,246 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:36:20,246 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:36:20,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:36:20,247 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:36:20,247 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (1001, datetime.datetime(2025, 4, 21, 13, 36, 20, 241983))
2025-04-21 14:36:20,248 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:37:20,261 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:37:20,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:37:20,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:37:20,266 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:37:20,267 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:37:20,267 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:37:20,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:37:20,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:37:20,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:37:20,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:37:20,268 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:37:20,268 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 13, 37, 20, 264174))
2025-04-21 14:37:20,268 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:37:20,269 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:37:20,269 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:37:20,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:37:20,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:37:20,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:37:20,269 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:37:20,269 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:37:20,269 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:37:20,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:37:20,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:37:20,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:37:20,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:37:20,271 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:37:20,271 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:37:20,271 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:37:20,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:37:20,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:37:20,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:37:20,271 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:37:20,271 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:37:20,275 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:38:20,280 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:38:20,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:38:20,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:38:20,282 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:38:20,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:38:20,283 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:38:20,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:38:20,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:38:20,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:38:20,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:38:20,284 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:38:20,286 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 13, 38, 20, 282486))
2025-04-21 14:38:20,286 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:38:20,288 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:38:20,288 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:38:20,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:38:20,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:38:20,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:38:20,288 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:38:20,288 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:38:20,289 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:38:20,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:38:20,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:38:20,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:38:20,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:38:20,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:38:20,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:38:20,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:38:20,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:38:20,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:38:20,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:38:20,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:38:20,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:38:20,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:38:20,390 - root - INFO - 应用程序关闭中...
2025-04-21 14:38:20,390 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:38:20,390 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:38:20,391 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:38:20,391 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:38:20,391 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:38:20,391 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:38:20,391 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:38:20,391 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:38:20,392 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:38:20,392 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:38:20,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:38:20,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:38:20,392 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:38:20,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:38:20,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:38:20,392 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:38:20,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:38:20,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:38:20,394 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:38:20,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:38:20,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:38:20,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:38:20,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:38:20,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:38:20,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:38:20,397 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:38:20,397 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:38:20,397 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:38:20,397 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:38:20,397 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:38:20,397 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:38:20,398 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:38:21,592 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:38:21,593 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:38:21,652 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:38:21,703 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:38:21,740 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:38:21,767 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:38:21,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,768 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:38:21,769 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,769 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:38:21,770 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:38:21,771 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:38:21,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,774 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:38:21,774 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,775 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:38:21,775 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,776 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:38:21,776 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,777 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:38:21,778 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,779 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:38:21,779 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,780 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:38:21,780 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,783 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:38:21,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,785 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:38:21,785 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,786 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:38:21,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,787 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:38:21,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:21,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:38:21,791 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:38:24,702 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:38:24,703 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:38:24,758 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:38:24,804 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:38:24,838 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:38:24,856 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:38:24,857 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,858 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:38:24,858 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,858 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:38:24,858 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:38:24,859 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:38:24,860 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,861 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:38:24,862 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,863 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:38:24,863 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,865 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:38:24,866 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,867 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:38:24,868 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,869 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:38:24,869 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,870 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:38:24,870 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,871 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:38:24,871 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,872 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:38:24,872 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,873 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:38:24,873 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,875 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:38:24,875 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:38:24,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:38:24,877 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:38:25,216 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:38:25,216 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:38:25,216 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:38:25,216 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:38:25,216 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:38:25,216 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:38:25,216 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:38:25,216 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:38:25,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:38:25,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:38:25,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:38:25,217 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:38:25,218 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:38:25,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:38:25,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:38:25,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:38:25,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:38:25,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:38:25,220 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:38:25,220 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:38:25,221 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:38:25,222 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:38:25,222 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:38:25,223 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:38:25,223 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:38:25,223 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:38:25,223 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:38:25,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:38:25,233 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:38:25,233 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (1, 1)
2025-04-21 14:38:25,234 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:38:25,234 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:38:25,235 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:38:25,235 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:38:25,236 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:38:25,236 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:38:25,238 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:38:25,238 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (1000, 2000, 2001)
2025-04-21 14:38:25,238 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:38:25,240 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:38:25,240 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:38:25,241 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:38:25,241 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:38:25,241 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:38:25,244 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:38:25,244 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:38:25,245 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1001, datetime.datetime(2025, 4, 21, 13, 38, 25, 236931))
2025-04-21 14:38:25,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:39:25,263 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:39:25,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:39:25,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:39:25,267 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:39:25,269 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:39:25,269 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:39:25,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:39:25,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:39:25,275 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:39:25,277 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:39:25,279 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:39:25,279 - sqlalchemy.engine.Engine - INFO - [cached since 60.04s ago] (1001, datetime.datetime(2025, 4, 21, 13, 39, 25, 263011))
2025-04-21 14:39:25,282 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:39:25,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:39:25,284 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:39:25,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:39:25,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:39:25,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:39:25,291 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:39:25,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:39:25,293 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:39:25,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:39:25,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:39:25,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:39:25,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:39:25,301 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:39:25,304 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:39:25,305 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:39:25,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:39:25,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:39:25,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:39:25,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:39:25,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:39:25,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:39:25,498 - root - INFO - 应用程序关闭中...
2025-04-21 14:39:25,499 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:39:25,499 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:39:25,500 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:39:25,500 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:39:25,503 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:39:25,505 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:39:25,507 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:39:25,509 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:39:25,510 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:39:25,512 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:39:25,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:39:25,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:39:25,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:39:25,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:39:25,521 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:39:25,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:39:25,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:39:25,527 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:39:25,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:39:25,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:39:25,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:39:25,533 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:39:25,535 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:39:25,537 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:39:25,539 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:39:25,541 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:39:25,543 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:39:25,544 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:39:25,545 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:39:25,545 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:39:26,778 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:39:26,779 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:39:26,843 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:39:26,894 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:39:26,908 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:39:26,923 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:39:26,924 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,924 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:39:26,925 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,925 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:39:26,926 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:39:26,927 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:39:26,928 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,929 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:39:26,929 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,930 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:39:26,931 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,933 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:39:26,933 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,934 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:39:26,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,935 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:39:26,935 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,936 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:39:26,936 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:39:26,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,939 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:39:26,940 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,940 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:39:26,940 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,941 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:39:26,941 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:39:26,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:39:26,943 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:39:27,299 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:39:27,299 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:39:27,299 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:39:27,300 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:39:27,301 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:39:27,301 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:39:27,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:39:27,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:39:27,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:39:27,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:39:27,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:39:27,303 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:39:27,303 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:39:27,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:39:27,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:39:27,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:39:27,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:39:27,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:39:27,305 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:39:27,306 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:39:27,333 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:39:27,334 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:39:27,339 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:39:27,341 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:39:27,341 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:39:27,343 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:39:27,343 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:39:27,344 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:39:27,353 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:39:27,357 - sqlalchemy.engine.Engine - INFO - [generated in 0.00371s] (1, 1)
2025-04-21 14:39:27,362 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:39:27,363 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:39:27,366 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:39:27,366 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:39:27,368 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:39:27,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:39:27,373 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:39:27,376 - sqlalchemy.engine.Engine - INFO - [generated in 0.00288s] (1000, 2000, 2001)
2025-04-21 14:39:27,396 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:39:27,401 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:39:27,403 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:39:27,405 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:39:27,407 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:39:27,411 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:39:27,413 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:39:27,418 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:39:27,419 - sqlalchemy.engine.Engine - INFO - [generated in 0.00108s] (1001, datetime.datetime(2025, 4, 21, 13, 39, 27, 369587))
2025-04-21 14:39:27,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:40:27,315 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:40:27,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:40:27,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:40:27,318 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:40:27,318 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:40:27,319 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:40:27,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:40:27,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:40:27,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:40:27,320 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:40:27,320 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:40:27,320 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:40:27,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:40:27,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:40:27,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:40:27,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:40:27,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:40:27,321 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:40:27,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:40:27,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:40:27,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:40:27,322 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:40:27,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:40:27,323 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:40:27,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:40:27,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:40:27,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:40:27,323 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:40:27,324 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:40:27,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:40:27,424 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:40:27,425 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:40:27,426 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (1001, datetime.datetime(2025, 4, 21, 13, 40, 27, 424836))
2025-04-21 14:40:27,427 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:40:27,534 - root - INFO - 应用程序关闭中...
2025-04-21 14:40:27,534 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:40:27,534 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:40:27,535 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:40:27,535 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:40:27,535 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:40:27,535 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:40:27,535 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:40:27,535 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:40:27,535 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:40:27,535 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:40:27,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:40:27,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:40:27,535 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:40:27,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:40:27,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:40:27,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:40:27,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:40:27,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:40:27,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:40:27,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:40:27,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:40:27,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:40:27,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:40:27,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:40:27,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:40:27,537 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:40:27,537 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:40:27,537 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:40:27,537 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:40:27,537 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:40:27,537 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:40:27,538 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:40:43,051 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:40:43,052 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:40:43,113 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:40:43,171 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:40:43,197 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:40:43,222 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:40:43,222 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,223 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:40:43,223 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,224 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:40:43,224 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:40:43,225 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:40:43,225 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,226 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:40:43,227 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,228 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:40:43,228 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,230 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:40:43,230 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,232 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:40:43,232 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,234 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:40:43,234 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,235 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:40:43,235 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,237 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:40:43,238 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,239 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:40:43,239 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,241 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:40:43,241 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,242 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:40:43,242 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:40:43,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:40:43,243 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:40:43,594 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:40:43,594 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:40:43,594 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:40:43,595 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:40:43,595 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:40:43,595 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:40:43,595 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:40:43,596 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:40:43,596 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:40:43,596 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:40:43,596 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:40:43,596 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:40:43,597 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:40:43,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:40:43,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:40:43,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:40:43,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:40:43,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:40:43,601 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:40:43,601 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:40:43,613 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:40:43,614 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:40:43,615 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:40:43,616 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:40:43,616 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:40:43,616 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:40:43,617 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:40:43,617 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:40:43,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:40:43,626 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (1, 1)
2025-04-21 14:40:43,627 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:40:43,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:40:43,629 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:40:43,630 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:40:43,630 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:40:43,630 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:40:43,632 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:40:43,633 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (1000, 2000, 2001)
2025-04-21 14:40:43,634 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:40:43,635 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:40:43,635 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:40:43,635 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:40:43,635 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:40:43,636 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:40:43,636 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:40:43,637 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:40:43,637 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1001, datetime.datetime(2025, 4, 21, 13, 40, 43, 630337))
2025-04-21 14:40:43,638 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:41:43,604 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:41:43,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:41:43,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:41:43,607 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:41:43,607 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:41:43,608 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:41:43,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:41:43,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:41:43,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:41:43,609 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:41:43,609 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:41:43,609 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:41:43,609 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:41:43,609 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:41:43,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:41:43,610 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:41:43,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:41:43,610 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:41:43,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:41:43,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:41:43,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:41:43,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:41:43,611 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:41:43,611 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:41:43,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:41:43,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:41:43,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:41:43,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:41:43,611 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:41:43,619 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:41:43,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:41:43,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:41:43,653 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 13, 41, 43, 651195))
2025-04-21 14:41:43,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:41:43,822 - root - INFO - 应用程序关闭中...
2025-04-21 14:41:43,822 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:41:43,823 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:41:43,823 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:41:43,823 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:41:43,823 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:41:43,823 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:41:43,823 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:41:43,824 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:41:43,824 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:41:43,824 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:41:43,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:41:43,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:41:43,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:41:43,824 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:41:43,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:41:43,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:41:43,824 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:41:43,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:41:43,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:41:43,824 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:41:43,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:41:43,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:41:43,825 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:41:43,825 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:41:43,826 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:41:43,826 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:41:43,826 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:41:43,826 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:41:43,826 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:41:43,828 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:41:43,828 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:41:44,977 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:41:44,978 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:41:45,034 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:41:45,078 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:41:45,109 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:41:45,111 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:41:45,112 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,113 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:41:45,113 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,114 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:41:45,114 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:41:45,115 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:41:45,115 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,116 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:41:45,116 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,117 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:41:45,117 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,119 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:41:45,120 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,120 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:41:45,120 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,122 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:41:45,123 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,123 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:41:45,123 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,126 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:41:45,126 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,126 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:41:45,127 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,127 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:41:45,128 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,128 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:41:45,129 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:41:45,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:41:45,130 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:41:45,475 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:41:45,475 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:41:45,475 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:41:45,475 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:41:45,475 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:41:45,476 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:41:45,476 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:41:45,476 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:41:45,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:41:45,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:41:45,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:41:45,478 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:41:45,478 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:41:45,479 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:41:45,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:41:45,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:41:45,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:41:45,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:41:45,480 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:41:45,480 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:41:45,495 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:41:45,496 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:41:45,496 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:41:45,498 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:41:45,499 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:41:45,500 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:41:45,501 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:41:45,504 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:41:45,516 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:41:45,517 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1, 1)
2025-04-21 14:41:45,518 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:41:45,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:41:45,520 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:41:45,521 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:41:45,521 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:41:45,522 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:41:45,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:41:45,527 - sqlalchemy.engine.Engine - INFO - [generated in 0.00084s] (1000, 2000, 2001)
2025-04-21 14:41:45,528 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:41:45,531 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:41:45,531 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:41:45,532 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:41:45,533 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:41:45,533 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:41:45,534 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:41:45,535 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:41:45,535 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1001, datetime.datetime(2025, 4, 21, 13, 41, 45, 522730))
2025-04-21 14:41:45,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:42:45,551 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:42:45,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:42:45,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:42:45,554 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:42:45,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:42:45,555 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:42:45,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:42:45,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:42:45,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:42:45,557 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:42:45,558 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:42:45,559 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 13, 42, 45, 552346))
2025-04-21 14:42:45,559 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:42:45,560 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:42:45,560 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:42:45,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:42:45,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:42:45,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:42:45,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:42:45,561 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:42:45,561 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:42:45,562 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:42:45,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:42:45,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:42:45,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:42:45,563 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:42:45,563 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:42:45,564 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:42:45,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:42:45,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:42:45,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:42:45,564 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:42:45,564 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:42:45,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:43:45,571 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:43:45,576 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:43:45,577 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 13, 43, 45, 570193))
2025-04-21 14:43:45,583 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:43:45,602 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:43:45,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:43:45,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:43:45,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:43:45,607 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:43:45,609 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:43:45,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:43:45,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:43:45,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:43:45,614 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:43:45,615 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:43:45,615 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:43:45,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:43:45,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:43:45,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:43:45,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:43:45,620 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:43:45,621 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:43:45,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:43:45,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:43:45,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:43:45,622 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:43:45,622 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:43:45,622 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:43:45,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:43:45,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:43:45,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:43:45,624 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:43:45,624 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:43:45,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:44:45,595 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:44:45,597 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:44:45,597 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (1001, datetime.datetime(2025, 4, 21, 13, 44, 45, 594882))
2025-04-21 14:44:45,599 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:44:45,672 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 14:44:45,672 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:44:45,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:44:45,674 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:44:45,674 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 14:44:45,674 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 14:44:45,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:44:45,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:44:45,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:44:45,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 14:44:45,677 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 14:44:45,677 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 14:44:45,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:44:45,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:44:45,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:44:45,678 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 14:44:45,679 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 14:44:45,679 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 14:44:45,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:44:45,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:44:45,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:44:45,681 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 14:44:45,681 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 14:44:45,681 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 14:44:45,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:44:45,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:44:45,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:44:45,682 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 14:44:45,682 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:44:45,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:45:21,920 - root - INFO - 应用程序关闭中...
2025-04-21 14:45:21,922 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:45:21,922 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:45:21,922 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:45:21,922 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:45:21,922 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:45:21,922 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:45:21,922 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:45:21,923 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:45:21,923 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:45:21,923 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:45:21,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:45:21,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:45:21,923 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:45:21,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:45:21,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:45:21,923 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:45:21,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:45:21,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:45:21,924 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:45:21,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:45:21,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:45:21,924 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:45:21,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:45:21,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:45:21,924 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:45:21,924 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:45:21,924 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:45:21,924 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:45:21,924 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:45:21,925 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:45:21,925 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:45:21,925 - data.session - INFO - 数据库连接已关闭
2025-04-21 14:45:23,645 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:45:23,645 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:45:24,376 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 14:45:24,376 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 14:45:24,436 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 14:45:24,487 - data.session - INFO - 正在初始化数据库...
2025-04-21 14:45:24,532 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 14:45:24,547 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:45:24,547 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,548 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:45:24,548 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,549 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:45:24,549 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,549 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:45:24,549 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 14:45:24,550 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,551 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 14:45:24,551 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,552 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 14:45:24,552 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,555 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 14:45:24,555 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,556 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 14:45:24,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,557 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 14:45:24,558 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,558 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 14:45:24,559 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,560 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 14:45:24,560 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,563 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 14:45:24,564 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,564 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 14:45:24,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,567 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 14:45:24,567 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 14:45:24,568 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:45:24,569 - data.session - INFO - 数据库表初始化完成
2025-04-21 14:45:24,907 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 14:45:24,907 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 14:45:24,909 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 14:45:24,909 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 14:45:24,909 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 14:45:24,909 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 14:45:24,910 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 14:45:24,910 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 14:45:24,910 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 14:45:24,910 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 14:45:24,910 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 14:45:24,910 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 14:45:24,911 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 14:45:24,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 14:45:24,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 14:45:24,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 14:45:24,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 14:45:24,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 14:45:24,912 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 14:45:24,913 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 14:45:24,913 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:45:24,915 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 14:45:24,915 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:45:24,915 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 14:45:24,916 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:45:24,916 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 14:45:24,916 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 14:45:24,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:45:24,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 14:45:24,926 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1, 1)
2025-04-21 14:45:24,926 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 14:45:24,927 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:45:24,927 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 14:45:24,928 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 14:45:24,928 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 14:45:24,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:45:24,929 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 14:45:24,930 - sqlalchemy.engine.Engine - INFO - [generated in 0.00080s] (1000, 2000, 2001)
2025-04-21 14:45:24,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:45:24,931 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 14:45:24,932 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 14:45:24,932 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 14:45:24,932 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 14:45:24,932 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 14:45:24,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 14:45:24,942 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 14:45:24,942 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (1001, datetime.datetime(2025, 4, 21, 13, 45, 24, 928264))
2025-04-21 14:45:24,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 14:45:27,090 - root - INFO - 应用程序关闭中...
2025-04-21 14:45:27,090 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 14:45:27,090 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 14:45:27,091 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 14:45:27,091 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 14:45:27,093 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 14:45:27,095 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 14:45:27,097 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 14:45:27,100 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 14:45:27,101 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 14:45:27,103 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 14:45:27,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 14:45:27,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 14:45:27,107 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 14:45:27,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 14:45:27,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 14:45:27,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 14:45:27,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 14:45:27,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 14:45:27,115 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 14:45:27,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 14:45:27,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 14:45:27,121 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 14:45:27,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 14:45:27,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 14:45:27,127 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 14:45:27,129 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 14:45:27,131 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 14:45:27,132 - root - INFO - 增强版任务调度器已停止
2025-04-21 14:45:27,133 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 14:45:27,133 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 14:45:27,133 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 14:45:27,134 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:51:33,623 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:51:33,623 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:51:34,336 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:51:34,336 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:51:34,398 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:51:34,465 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:51:34,505 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:51:34,522 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:51:34,525 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,526 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:51:34,526 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,527 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:51:34,527 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,528 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:34,528 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:51:34,528 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,531 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:51:34,531 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,535 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:51:34,536 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,538 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:51:34,538 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,540 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:51:34,540 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,540 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:51:34,541 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,544 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:51:34,544 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,545 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:51:34,545 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,546 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:51:34,546 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,547 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:51:34,549 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,551 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:51:34,551 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:51:34,552 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:34,554 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:51:34,899 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:51:34,899 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:51:34,900 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:51:34,900 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:51:34,902 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:51:34,902 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:51:34,902 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:51:34,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:51:34,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:51:34,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:51:34,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:51:34,903 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:51:34,904 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:51:34,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:51:34,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:51:34,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:51:34,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:51:34,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:51:34,906 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:51:34,906 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:51:34,909 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:51:34,909 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:51:34,910 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:51:34,910 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:51:34,911 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:51:34,911 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:51:34,911 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:51:34,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:34,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:51:34,923 - sqlalchemy.engine.Engine - INFO - [generated in 0.00300s] (1, 1)
2025-04-21 15:51:34,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:51:34,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:34,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:51:34,926 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:51:34,926 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:51:34,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:34,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:51:34,928 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1000, 2000, 2001)
2025-04-21 15:51:34,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:34,931 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-21 15:51:34,931 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 15:51:34,933 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:51:34,934 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:51:34,934 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:51:34,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:34,937 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:51:34,937 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (1001, datetime.datetime(2025, 4, 21, 14, 51, 34, 926988))
2025-04-21 15:51:34,938 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,410 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 15:51:39,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,415 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:51:39,415 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:51:39,416 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,417 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,417 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:51:39,417 - sqlalchemy.engine.Engine - INFO - [cached since 0.003258s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:51:39,425 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,425 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 15:51:39,426 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,427 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:51:39,427 - sqlalchemy.engine.Engine - INFO - [cached since 0.01236s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:51:39,429 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 15:51:39,430 - sqlalchemy.engine.Engine - INFO - [generated in 0.00136s] ('977f4df2-567d-43bd-85b5-75b3eee08d8b', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 15, 51, 39, 427016), None, None, 1002, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 15, 51, 39, 425459), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 15, 51, 39, 429024), datetime.datetime(2025, 4, 21, 15, 51, 39, 429024), 0)
2025-04-21 15:51:39,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,451 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,451 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:51:39,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,454 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:51:39,454 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0443秒
2025-04-21 15:51:39,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:51:39,493 - services.execution.task_executor - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b 设置超时时间: 3600秒
2025-04-21 15:51:39,495 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,495 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,495 - sqlalchemy.engine.Engine - INFO - [cached since 0.04402s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:51:39,497 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:51:39,497 - sqlalchemy.engine.Engine - INFO - [cached since 0.08273s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:51:39,501 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,506 - sqlalchemy.engine.Engine - INFO - [generated in 0.00526s] (datetime.datetime(2025, 4, 21, 15, 51, 39, 500373), datetime.datetime(2025, 4, 21, 15, 51, 39, 501286), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 15:51:39,507 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,519 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,520 - sqlalchemy.engine.Engine - INFO - [generated in 0.00199s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 51, 39, 518973), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 15:51:39,521 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,527 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:51:39,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,532 - 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-21 15:51:39,534 - sqlalchemy.engine.Engine - INFO - [generated in 0.00178s] ('393d4e5a-5af9-488a-98d3-fb3371839eac', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 51, 39, 529980), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 51, 39, 532972), datetime.datetime(2025, 4, 21, 15, 51, 39, 532972), 0)
2025-04-21 15:51:39,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,548 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,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-21 15:51:39,557 - sqlalchemy.engine.Engine - INFO - [generated in 0.00204s] ('393d4e5a-5af9-488a-98d3-fb3371839eac',)
2025-04-21 15:51:39,560 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:51:39,561 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:51:39,563 - 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-21 15:51:39,566 - sqlalchemy.engine.Engine - INFO - [generated in 0.00331s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 51, 39, 563972), '393d4e5a-5af9-488a-98d3-fb3371839eac')
2025-04-21 15:51:39,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,580 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:51:39,582 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:51:39,584 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 15:51:39,588 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,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-21 15:51:39,590 - sqlalchemy.engine.Engine - INFO - [cached since 0.05745s ago] ('7b515f81-d7db-49b3-906c-bbb104ce9575', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 51, 39, 586972), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 51, 39, 588983), datetime.datetime(2025, 4, 21, 15, 51, 39, 588983), 0)
2025-04-21 15:51:39,592 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,602 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 7b515f81-d7db-49b3-906c-bbb104ce9575
2025-04-21 15:51:39,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,604 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:51:39,604 - sqlalchemy.engine.Engine - INFO - [cached since 0.04843s ago] ('7b515f81-d7db-49b3-906c-bbb104ce9575',)
2025-04-21 15:51:39,604 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:51:39,606 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:51:39,608 - 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-21 15:51:39,612 - sqlalchemy.engine.Engine - INFO - [cached since 0.04879s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 51, 39, 608978), '7b515f81-d7db-49b3-906c-bbb104ce9575')
2025-04-21 15:51:39,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,625 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:51:39,625 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 15:51:39,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,628 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,628 - sqlalchemy.engine.Engine - INFO - [cached since 0.1779s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:51:39,630 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,634 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,636 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:51:39,638 - sqlalchemy.engine.Engine - INFO - [cached since 0.2233s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:51:39,642 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,644 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:51:39,649 - sqlalchemy.engine.Engine - INFO - [cached since 0.2344s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:51:39,649 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 15:51:39,652 - sqlalchemy.engine.Engine - INFO - [cached since 0.2235s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 15, 51, 39, 649973), None, None, 1002, None, None, None, '977f4df2-567d-43bd-85b5-75b3eee08d8b', '977f4df2-567d-43bd-85b5-75b3eee08d8b', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 15, 51, 39, 644973), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 15, 51, 39, 649973), datetime.datetime(2025, 4, 21, 15, 51, 39, 649973), 0)
2025-04-21 15:51:39,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,661 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,661 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,661 - sqlalchemy.engine.Engine - INFO - [cached since 0.2105s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:51:39,662 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,663 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:51:39,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,663 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,664 - sqlalchemy.engine.Engine - INFO - [cached since 0.2128s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:51:39,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:51:39,696 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:51:39,697 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,697 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,697 - sqlalchemy.engine.Engine - INFO - [cached since 0.2468s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:51:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:51:39,699 - sqlalchemy.engine.Engine - INFO - [cached since 0.2848s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:51:39,700 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,700 - sqlalchemy.engine.Engine - INFO - [cached since 0.1995s ago] (datetime.datetime(2025, 4, 21, 15, 51, 39, 700892), datetime.datetime(2025, 4, 21, 15, 51, 39, 700892), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:51:39,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,712 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:39,712 - sqlalchemy.engine.Engine - INFO - [cached since 0.194s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 51, 39, 712574), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:51:39,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,722 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:51:39,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,723 - 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-21 15:51:39,723 - sqlalchemy.engine.Engine - INFO - [cached since 0.1909s ago] ('696ab574-776a-4ee8-885f-6d4d685cb205', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 51, 39, 722896), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 51, 39, 723889), datetime.datetime(2025, 4, 21, 15, 51, 39, 723889), 0)
2025-04-21 15:51:39,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,735 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,736 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:51:39,736 - sqlalchemy.engine.Engine - INFO - [cached since 0.1808s ago] ('696ab574-776a-4ee8-885f-6d4d685cb205',)
2025-04-21 15:51:39,737 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:51:39,737 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:51:39,737 - 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-21 15:51:39,737 - sqlalchemy.engine.Engine - INFO - [cached since 0.1737s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 51, 39, 737357), '696ab574-776a-4ee8-885f-6d4d685cb205')
2025-04-21 15:51:39,738 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,744 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:51:39,744 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:51:39,744 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:51:39,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,749 - 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-21 15:51:39,749 - sqlalchemy.engine.Engine - INFO - [cached since 0.2163s ago] ('9b88804c-7fd4-4206-9d51-4a0ba0f3d873', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 51, 39, 745359), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 51, 39, 749373), datetime.datetime(2025, 4, 21, 15, 51, 39, 749373), 0)
2025-04-21 15:51:39,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,755 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 9b88804c-7fd4-4206-9d51-4a0ba0f3d873
2025-04-21 15:51:39,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:39,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:51:39,757 - sqlalchemy.engine.Engine - INFO - [cached since 0.2019s ago] ('9b88804c-7fd4-4206-9d51-4a0ba0f3d873',)
2025-04-21 15:51:39,757 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:51:39,758 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:51:39,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-21 15:51:39,762 - sqlalchemy.engine.Engine - INFO - [cached since 0.1987s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 51, 39, 758806), '9b88804c-7fd4-4206-9d51-4a0ba0f3d873')
2025-04-21 15:51:39,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:39,769 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:51:42,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:42,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:42,672 - sqlalchemy.engine.Engine - INFO - [cached since 3.221s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:51:42,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:45,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:45,692 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:45,693 - sqlalchemy.engine.Engine - INFO - [cached since 6.242s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:51:45,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:48,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:48,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:48,700 - sqlalchemy.engine.Engine - INFO - [cached since 9.249s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:51:48,701 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:51,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:51,722 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:51,723 - sqlalchemy.engine.Engine - INFO - [cached since 12.27s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:51:51,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:54,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:54,725 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:54,726 - sqlalchemy.engine.Engine - INFO - [cached since 15.28s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:51:54,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:51:57,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:51:57,730 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:51:57,731 - sqlalchemy.engine.Engine - INFO - [cached since 18.28s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:51:57,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:00,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:00,710 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:00,710 - sqlalchemy.engine.Engine - INFO - [cached since 21.26s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:00,711 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:03,732 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:03,732 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:03,733 - sqlalchemy.engine.Engine - INFO - [cached since 24.28s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:03,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:06,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:06,762 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:06,767 - sqlalchemy.engine.Engine - INFO - [cached since 27.32s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:06,769 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:09,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:09,793 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:09,793 - sqlalchemy.engine.Engine - INFO - [cached since 30.34s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:09,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:12,811 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:12,811 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:12,811 - sqlalchemy.engine.Engine - INFO - [cached since 33.36s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:12,812 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:15,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:15,801 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:15,801 - sqlalchemy.engine.Engine - INFO - [cached since 36.35s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:15,803 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:15,971 - root - INFO - 应用程序关闭中...
2025-04-21 15:52:15,972 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:52:15,972 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:52:15,972 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:52:15,972 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:52:15,972 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:52:15,973 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:52:15,973 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:52:15,974 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:52:15,974 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:52:15,974 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:52:15,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:52:15,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:52:15,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:52:15,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:52:15,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:52:15,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:52:15,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:52:15,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:52:15,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:52:15,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:52:15,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:52:15,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:52:15,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:52:15,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:52:15,976 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:52:15,976 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:52:15,976 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:52:15,976 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:52:15,976 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:52:15,976 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:52:15,976 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:52:15,977 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:52:17,215 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:52:17,215 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:52:17,274 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:52:17,329 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:52:17,363 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:52:17,389 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:52:17,390 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,392 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:52:17,392 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,393 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:52:17,393 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,393 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,393 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:52:17,394 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,397 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:52:17,398 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,399 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:52:17,399 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,401 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:52:17,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,404 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:52:17,405 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,406 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:52:17,406 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,407 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:52:17,407 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,408 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:52:17,408 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,409 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:52:17,410 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,410 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:52:17,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:52:17,412 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:17,412 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,413 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:52:17,758 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:52:17,758 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:52:17,759 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:52:17,759 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:52:17,759 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:52:17,759 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:52:17,759 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:52:17,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:52:17,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:52:17,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:52:17,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:52:17,760 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:52:17,761 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:52:17,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:52:17,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:52:17,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:52:17,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:52:17,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:52:17,762 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:52:17,762 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:52:17,764 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:52:17,765 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:52:17,765 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:52:17,766 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:52:17,766 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:52:17,767 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:52:17,767 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:52:17,767 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,775 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:52:17,776 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1, 1)
2025-04-21 15:52:17,777 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:52:17,778 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,778 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:52:17,780 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:52:17,780 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:52:17,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,784 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:52:17,784 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1000, 2000, 2001)
2025-04-21 15:52:17,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,796 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:52:17,797 - services.enhanced_scheduler.task_persistence - INFO - 已加载 2 个待处理任务
2025-04-21 15:52:17,797 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,798 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:17,798 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:17,799 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,800 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:52:17,800 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (1001, datetime.datetime(2025, 4, 21, 14, 52, 17, 781086))
2025-04-21 15:52:17,801 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:17,802 - sqlalchemy.engine.Engine - INFO - [cached since 0.003566s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:52:17,802 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,803 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,804 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:52:17,804 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:52:17,805 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:52:17,805 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:52:17,805 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 2 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:52:17,806 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:52:17,806 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:52:17,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:52:17,873 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:52:17,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:52:17,874 - services.execution.task_executor - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b 设置超时时间: 3600秒
2025-04-21 15:52:17,875 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,876 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:17,876 - sqlalchemy.engine.Engine - INFO - [cached since 0.0785s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:17,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,877 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:17,878 - sqlalchemy.engine.Engine - INFO - [cached since 0.07993s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:52:17,880 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:17,880 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:52:17,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:17,882 - sqlalchemy.engine.Engine - INFO - [cached since 0.001319s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:52:17,882 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,883 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,885 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:17,885 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 52, 17, 884752), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:52:17,885 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,885 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:17,885 - sqlalchemy.engine.Engine - INFO - [cached since 0.0008596s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 52, 17, 885754), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 15:52:17,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,901 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:52:17,902 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,903 - 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-21 15:52:17,904 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('243cc1ee-2f57-4832-a266-af879da5cc98', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 52, 17, 901860), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 17, 903786), datetime.datetime(2025, 4, 21, 15, 52, 17, 903786), 0)
2025-04-21 15:52:17,905 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,907 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:52:17,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,908 - 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-21 15:52:17,908 - sqlalchemy.engine.Engine - INFO - [cached since 0.004991s ago] ('69d93635-97f4-4222-a215-096e46dc0a61', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 52, 17, 907778), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 17, 908778), datetime.datetime(2025, 4, 21, 15, 52, 17, 908778), 0)
2025-04-21 15:52:17,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,923 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:17,923 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] ('243cc1ee-2f57-4832-a266-af879da5cc98',)
2025-04-21 15:52:17,925 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:52:17,925 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:52:17,926 - 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-21 15:52:17,926 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 17, 926493), '243cc1ee-2f57-4832-a266-af879da5cc98')
2025-04-21 15:52:17,927 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,929 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:17,929 - sqlalchemy.engine.Engine - INFO - [cached since 0.0069s ago] ('69d93635-97f4-4222-a215-096e46dc0a61',)
2025-04-21 15:52:17,930 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:52:17,930 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:52:17,931 - 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-21 15:52:17,931 - sqlalchemy.engine.Engine - INFO - [cached since 0.005411s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 17, 931491), '69d93635-97f4-4222-a215-096e46dc0a61')
2025-04-21 15:52:17,932 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,934 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:52:17,935 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:52:17,935 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:52:17,936 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,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-21 15:52:17,937 - sqlalchemy.engine.Engine - INFO - [cached since 0.03307s ago] ('54ee0430-c295-4582-864f-94dae867f54d', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 52, 17, 935490), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 17, 936501), datetime.datetime(2025, 4, 21, 15, 52, 17, 936501), 0)
2025-04-21 15:52:17,937 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,942 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:52:17,944 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:52:17,944 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 15:52:17,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,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-21 15:52:17,945 - sqlalchemy.engine.Engine - INFO - [cached since 0.04156s ago] ('523a8211-f556-4d2a-85e0-38ac7a2619f3', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 52, 17, 944083), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 17, 945074), datetime.datetime(2025, 4, 21, 15, 52, 17, 945074), 0)
2025-04-21 15:52:17,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,949 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 54ee0430-c295-4582-864f-94dae867f54d
2025-04-21 15:52:17,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,951 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:17,951 - sqlalchemy.engine.Engine - INFO - [cached since 0.02859s ago] ('54ee0430-c295-4582-864f-94dae867f54d',)
2025-04-21 15:52:17,953 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:52:17,953 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:52:17,954 - 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-21 15:52:17,954 - sqlalchemy.engine.Engine - INFO - [cached since 0.02805s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 17, 954074), '54ee0430-c295-4582-864f-94dae867f54d')
2025-04-21 15:52:17,955 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,955 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 523a8211-f556-4d2a-85e0-38ac7a2619f3
2025-04-21 15:52:17,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,956 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:17,956 - sqlalchemy.engine.Engine - INFO - [cached since 0.03377s ago] ('523a8211-f556-4d2a-85e0-38ac7a2619f3',)
2025-04-21 15:52:17,957 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:52:17,957 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:52:17,957 - 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-21 15:52:17,957 - sqlalchemy.engine.Engine - INFO - [cached since 0.03166s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 17, 957621), '523a8211-f556-4d2a-85e0-38ac7a2619f3')
2025-04-21 15:52:17,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,961 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:52:17,970 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:52:17,971 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 15:52:17,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,971 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:17,972 - sqlalchemy.engine.Engine - INFO - [cached since 0.1737s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:52:17,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,974 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,975 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:17,975 - sqlalchemy.engine.Engine - INFO - [cached since 0.0942s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:52:17,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,976 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,977 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:17,980 - sqlalchemy.engine.Engine - INFO - [cached since 0.09927s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:52:17,982 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 15:52:17,982 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('6d510a6c-ef0c-404d-bb72-360c34030459', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 15, 52, 17, 981296), None, None, 1002, None, None, None, '977f4df2-567d-43bd-85b5-75b3eee08d8b', '977f4df2-567d-43bd-85b5-75b3eee08d8b', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 15, 52, 17, 976154), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 15, 52, 17, 982303), datetime.datetime(2025, 4, 21, 15, 52, 17, 982303), 0)
2025-04-21 15:52:17,983 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,991 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:17,991 - sqlalchemy.engine.Engine - INFO - [cached since 0.193s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:17,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:17,993 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 (优先级 1) 添加到队列 0
2025-04-21 15:52:17,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:17,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:17,996 - sqlalchemy.engine.Engine - INFO - [cached since 0.1987s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:17,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:18,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:52:18,074 - services.execution.task_executor - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 设置超时时间: 3600秒
2025-04-21 15:52:18,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:18,075 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:18,075 - sqlalchemy.engine.Engine - INFO - [cached since 0.277s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:18,076 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:18,077 - sqlalchemy.engine.Engine - INFO - [cached since 0.1962s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:52:18,078 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:18,079 - sqlalchemy.engine.Engine - INFO - [generated in 0.00079s] (datetime.datetime(2025, 4, 21, 15, 52, 18, 78424), datetime.datetime(2025, 4, 21, 15, 52, 18, 78424), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:52:18,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:18,088 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:18,089 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:18,089 - sqlalchemy.engine.Engine - INFO - [cached since 0.204s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 52, 18, 89284), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:52:18,090 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:18,100 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:52:18,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:18,101 - 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-21 15:52:18,102 - sqlalchemy.engine.Engine - INFO - [cached since 0.1982s ago] ('0e3f9d21-312b-4589-aba4-8b43c103594b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 52, 18, 100415), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 18, 101415), datetime.datetime(2025, 4, 21, 15, 52, 18, 101415), 0)
2025-04-21 15:52:18,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:18,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:18,111 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:18,111 - sqlalchemy.engine.Engine - INFO - [cached since 0.1892s ago] ('0e3f9d21-312b-4589-aba4-8b43c103594b',)
2025-04-21 15:52:18,112 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:52:18,112 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:52:18,113 - 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-21 15:52:18,113 - sqlalchemy.engine.Engine - INFO - [cached since 0.1877s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 18, 113699), '0e3f9d21-312b-4589-aba4-8b43c103594b')
2025-04-21 15:52:18,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:18,121 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:52:18,121 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:52:18,122 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:52:18,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:18,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-21 15:52:18,123 - sqlalchemy.engine.Engine - INFO - [cached since 0.2193s ago] ('745e5645-413d-4c5c-ad9a-25ee513e1833', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 52, 18, 122036), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 18, 123040), datetime.datetime(2025, 4, 21, 15, 52, 18, 123040), 0)
2025-04-21 15:52:18,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:18,130 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 745e5645-413d-4c5c-ad9a-25ee513e1833
2025-04-21 15:52:18,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:18,131 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:18,131 - sqlalchemy.engine.Engine - INFO - [cached since 0.2084s ago] ('745e5645-413d-4c5c-ad9a-25ee513e1833',)
2025-04-21 15:52:18,132 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:52:18,132 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:52:18,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-21 15:52:18,133 - sqlalchemy.engine.Engine - INFO - [cached since 0.2073s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 18, 133046), '745e5645-413d-4c5c-ad9a-25ee513e1833')
2025-04-21 15:52:18,134 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:18,139 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:52:21,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:21,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:21,015 - sqlalchemy.engine.Engine - INFO - [cached since 3.217s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:21,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:24,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:24,029 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:24,030 - sqlalchemy.engine.Engine - INFO - [cached since 6.232s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:24,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:27,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:27,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:27,025 - sqlalchemy.engine.Engine - INFO - [cached since 9.227s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:27,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:30,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:30,040 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:30,041 - sqlalchemy.engine.Engine - INFO - [cached since 12.24s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:30,042 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:33,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:33,059 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:33,061 - sqlalchemy.engine.Engine - INFO - [cached since 15.26s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:33,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:36,080 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:36,081 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:36,081 - sqlalchemy.engine.Engine - INFO - [cached since 18.28s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:36,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:39,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:39,098 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:39,099 - sqlalchemy.engine.Engine - INFO - [cached since 21.3s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:39,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:42,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:42,095 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:42,095 - sqlalchemy.engine.Engine - INFO - [cached since 24.3s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:42,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:45,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:45,121 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:45,122 - sqlalchemy.engine.Engine - INFO - [cached since 27.32s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:45,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:48,144 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:48,145 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:48,145 - sqlalchemy.engine.Engine - INFO - [cached since 30.35s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:48,146 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:51,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:51,166 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:51,166 - sqlalchemy.engine.Engine - INFO - [cached since 33.37s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:51,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:51,345 - root - INFO - 应用程序关闭中...
2025-04-21 15:52:51,345 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:52:51,345 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:52:51,345 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:52:51,345 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:52:51,345 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:52:51,345 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:52:51,345 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:52:51,345 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:52:51,345 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:52:51,345 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:52:51,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:52:51,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:52:51,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:52:51,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:52:51,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:52:51,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:52:51,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:52:51,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:52:51,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:52:51,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:52:51,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:52:51,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:52:51,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:52:51,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:52:51,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:52:51,348 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:52:51,348 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:52:51,348 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:52:51,348 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:52:51,352 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:52:51,353 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:52:51,353 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:52:52,593 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:52:52,594 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:52:52,657 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:52:52,723 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:52:52,764 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:52:52,766 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:52:52,766 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,767 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:52:52,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,768 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:52:52,768 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:52,769 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:52:52,769 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,771 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:52:52,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,772 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:52:52,772 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,774 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:52:52,774 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,776 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:52:52,776 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,778 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:52:52,778 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,779 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:52:52,779 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,781 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:52:52,781 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,783 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:52:52,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,785 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:52:52,785 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,786 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:52:52,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:52:52,788 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:52,789 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:52:53,138 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:52:53,139 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:52:53,139 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:52:53,140 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:52:53,140 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:52:53,140 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:52:53,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:52:53,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:52:53,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:52:53,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:52:53,142 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:52:53,142 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:52:53,142 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:52:53,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:52:53,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:52:53,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:52:53,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:52:53,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:52:53,145 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:52:53,145 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:52:53,158 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:52:53,159 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:52:53,160 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:52:53,161 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:52:53,161 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:52:53,161 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:52:53,161 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:52:53,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:52:53,170 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1, 1)
2025-04-21 15:52:53,171 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:52:53,171 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,172 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:52:53,172 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:52:53,174 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:52:53,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:52:53,176 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (1000, 2000, 2001)
2025-04-21 15:52:53,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,178 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:52:53,178 - services.enhanced_scheduler.task_persistence - INFO - 已加载 3 个待处理任务
2025-04-21 15:52:53,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,180 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,180 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:53,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,180 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:52:53,180 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1001, datetime.datetime(2025, 4, 21, 14, 52, 53, 174014))
2025-04-21 15:52:53,182 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,182 - sqlalchemy.engine.Engine - INFO - [cached since 0.002708s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:53,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,184 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,185 - sqlalchemy.engine.Engine - INFO - [cached since 0.004909s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:52:53,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,186 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:52:53,186 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:52:53,186 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 (优先级 1) 添加到队列 0
2025-04-21 15:52:53,187 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:52:53,187 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:52:53,187 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:52:53,187 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 3 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:52:53,187 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:52:53,187 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:52:53,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:52:53,266 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:52:53,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:52:53,268 - services.execution.task_executor - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 设置超时时间: 3600秒
2025-04-21 15:52:53,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:52:53,268 - services.execution.task_executor - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b 设置超时时间: 3600秒
2025-04-21 15:52:53,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,269 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,269 - sqlalchemy.engine.Engine - INFO - [cached since 0.09044s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:52:53,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,269 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,271 - sqlalchemy.engine.Engine - INFO - [cached since 0.09123s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:52:53,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:53,272 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:52:53,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:53,273 - sqlalchemy.engine.Engine - INFO - [cached since 0.001184s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:52:53,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,275 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:52:53,276 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,279 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,279 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 52, 53, 279439), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:52:53,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,279 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,279 - sqlalchemy.engine.Engine - INFO - [cached since 0.001052s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 52, 53, 279439), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:52:53,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,283 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,283 - sqlalchemy.engine.Engine - INFO - [cached since 0.1038s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:52:53,284 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,285 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:53,285 - sqlalchemy.engine.Engine - INFO - [cached since 0.01277s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:52:53,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,286 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,287 - sqlalchemy.engine.Engine - INFO - [cached since 0.007989s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 52, 53, 286542), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 15:52:53,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,294 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:52:53,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,296 - 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-21 15:52:53,296 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('a67b6ff3-3c0a-40ee-a3fb-4892ab27ccbb', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 52, 53, 295929), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 53, 296932), datetime.datetime(2025, 4, 21, 15, 52, 53, 296932), 0)
2025-04-21 15:52:53,298 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,301 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:52:53,302 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:52:53,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,302 - 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-21 15:52:53,303 - sqlalchemy.engine.Engine - INFO - [cached since 0.005847s ago] ('e76ac8cc-1560-4e45-86e2-4a87d47e33ac', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 52, 53, 301367), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 53, 302312), datetime.datetime(2025, 4, 21, 15, 52, 53, 302312), 0)
2025-04-21 15:52:53,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,303 - 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-21 15:52:53,304 - sqlalchemy.engine.Engine - INFO - [cached since 0.006768s ago] ('03401182-38ae-4c67-aec6-795d7ac1b48d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 52, 53, 302312), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 53, 303287), datetime.datetime(2025, 4, 21, 15, 52, 53, 303287), 0)
2025-04-21 15:52:53,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,308 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,310 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:53,312 - sqlalchemy.engine.Engine - INFO - [generated in 0.00166s] ('a67b6ff3-3c0a-40ee-a3fb-4892ab27ccbb',)
2025-04-21 15:52:53,313 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:52:53,313 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:52:53,316 - 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-21 15:52:53,316 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 53, 315250), 'a67b6ff3-3c0a-40ee-a3fb-4892ab27ccbb')
2025-04-21 15:52:53,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,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-21 15:52:53,322 - sqlalchemy.engine.Engine - INFO - [cached since 0.01176s ago] ('03401182-38ae-4c67-aec6-795d7ac1b48d',)
2025-04-21 15:52:53,325 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,329 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,330 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:53,330 - sqlalchemy.engine.Engine - INFO - [cached since 0.01992s ago] ('e76ac8cc-1560-4e45-86e2-4a87d47e33ac',)
2025-04-21 15:52:53,331 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:52:53,332 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:52:53,333 - 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-21 15:52:53,333 - sqlalchemy.engine.Engine - INFO - [cached since 0.01734s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 53, 332293), '03401182-38ae-4c67-aec6-795d7ac1b48d')
2025-04-21 15:52:53,334 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:52:53,334 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:52:53,334 - 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-21 15:52:53,335 - sqlalchemy.engine.Engine - INFO - [cached since 0.01928s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 53, 334320), 'e76ac8cc-1560-4e45-86e2-4a87d47e33ac')
2025-04-21 15:52:53,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,339 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,339 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:52:53,341 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:52:53,345 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:52:53,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,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-21 15:52:53,348 - sqlalchemy.engine.Engine - INFO - [cached since 0.05116s ago] ('d305b9f6-1a9b-49bd-8981-4b6a4849f9b5', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 52, 53, 346248), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 53, 347249), datetime.datetime(2025, 4, 21, 15, 52, 53, 347249), 0)
2025-04-21 15:52:53,350 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:52:53,350 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:52:53,353 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 15:52:53,354 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,358 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,359 - 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-21 15:52:53,360 - sqlalchemy.engine.Engine - INFO - [cached since 0.06361s ago] ('9cd1e5bd-cb2f-4fbc-8342-c301b904155c', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 52, 53, 353248), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 53, 359248), datetime.datetime(2025, 4, 21, 15, 52, 53, 359248), 0)
2025-04-21 15:52:53,362 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:52:53,362 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:52:53,363 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:52:53,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,368 - 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-21 15:52:53,372 - sqlalchemy.engine.Engine - INFO - [cached since 0.07463s ago] ('baddd258-74ee-4ba1-9a11-3fb3d0667b3a', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 52, 53, 364248), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 53, 368341), datetime.datetime(2025, 4, 21, 15, 52, 53, 368341), 0)
2025-04-21 15:52:53,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,376 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: d305b9f6-1a9b-49bd-8981-4b6a4849f9b5
2025-04-21 15:52:53,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,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-21 15:52:53,383 - sqlalchemy.engine.Engine - INFO - [cached since 0.07336s ago] ('d305b9f6-1a9b-49bd-8981-4b6a4849f9b5',)
2025-04-21 15:52:53,387 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 9cd1e5bd-cb2f-4fbc-8342-c301b904155c
2025-04-21 15:52:53,388 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:52:53,389 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:52:53,389 - 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-21 15:52:53,393 - sqlalchemy.engine.Engine - INFO - [cached since 0.07699s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 53, 389266), 'd305b9f6-1a9b-49bd-8981-4b6a4849f9b5')
2025-04-21 15:52:53,393 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,393 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:53,394 - sqlalchemy.engine.Engine - INFO - [cached since 0.08363s ago] ('9cd1e5bd-cb2f-4fbc-8342-c301b904155c',)
2025-04-21 15:52:53,395 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: baddd258-74ee-4ba1-9a11-3fb3d0667b3a
2025-04-21 15:52:53,395 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,396 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:52:53,396 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:52:53,397 - 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-21 15:52:53,399 - sqlalchemy.engine.Engine - INFO - [cached since 0.08338s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 53, 397249), '9cd1e5bd-cb2f-4fbc-8342-c301b904155c')
2025-04-21 15:52:53,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,407 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:53,410 - sqlalchemy.engine.Engine - INFO - [cached since 0.1002s ago] ('baddd258-74ee-4ba1-9a11-3fb3d0667b3a',)
2025-04-21 15:52:53,411 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:52:53,413 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,417 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:52:53,417 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:52:53,418 - 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-21 15:52:53,420 - sqlalchemy.engine.Engine - INFO - [cached since 0.1044s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 53, 418281), 'baddd258-74ee-4ba1-9a11-3fb3d0667b3a')
2025-04-21 15:52:53,423 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:52:53,425 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 15:52:53,425 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,429 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,431 - sqlalchemy.engine.Engine - INFO - [cached since 0.2514s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:52:53,431 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,432 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,434 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,436 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:53,437 - sqlalchemy.engine.Engine - INFO - [cached since 0.1647s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:52:53,438 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,438 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,439 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:53,439 - sqlalchemy.engine.Engine - INFO - [cached since 0.1667s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:52:53,440 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 15:52:53,441 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 15, 52, 53, 439248), None, None, 1002, None, None, None, '977f4df2-567d-43bd-85b5-75b3eee08d8b', '977f4df2-567d-43bd-85b5-75b3eee08d8b', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 15, 52, 53, 438249), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 15, 52, 53, 440248), datetime.datetime(2025, 4, 21, 15, 52, 53, 440248), 0)
2025-04-21 15:52:53,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,442 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:52:53,451 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,452 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,452 - sqlalchemy.engine.Engine - INFO - [cached since 0.2723s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:52:53,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,454 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 (优先级 1) 添加到队列 0
2025-04-21 15:52:53,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,454 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,455 - sqlalchemy.engine.Engine - INFO - [cached since 0.2752s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:52:53,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:52:53,456 - services.execution.task_executor - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 设置超时时间: 3600秒
2025-04-21 15:52:53,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,457 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,457 - sqlalchemy.engine.Engine - INFO - [cached since 0.278s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:52:53,458 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:52:53,459 - sqlalchemy.engine.Engine - INFO - [cached since 0.187s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:52:53,460 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,460 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] (datetime.datetime(2025, 4, 21, 15, 52, 53, 459564), datetime.datetime(2025, 4, 21, 15, 52, 53, 460567), '9f808ed8-3551-4f19-bcd0-5a414bc36d54')
2025-04-21 15:52:53,461 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,467 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,468 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:53,468 - sqlalchemy.engine.Engine - INFO - [cached since 0.1888s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 52, 53, 468039), '9f808ed8-3551-4f19-bcd0-5a414bc36d54')
2025-04-21 15:52:53,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,475 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:52:53,476 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,476 - 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-21 15:52:53,476 - sqlalchemy.engine.Engine - INFO - [cached since 0.1794s ago] ('2f5aff5d-9d7c-47d9-810d-4926e1d21fd6', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9f808ed8-3551-4f19-bcd0-5a414bc36d54', datetime.datetime(2025, 4, 21, 15, 52, 53, 476035), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 53, 476035), datetime.datetime(2025, 4, 21, 15, 52, 53, 476035), 0)
2025-04-21 15:52:53,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,483 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,484 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:53,484 - sqlalchemy.engine.Engine - INFO - [cached since 0.1737s ago] ('2f5aff5d-9d7c-47d9-810d-4926e1d21fd6',)
2025-04-21 15:52:53,484 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:52:53,485 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:52:53,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-21 15:52:53,485 - sqlalchemy.engine.Engine - INFO - [cached since 0.1695s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 53, 485040), '2f5aff5d-9d7c-47d9-810d-4926e1d21fd6')
2025-04-21 15:52:53,486 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,491 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:52:53,491 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:52:53,491 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:52:53,491 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,492 - 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-21 15:52:53,492 - sqlalchemy.engine.Engine - INFO - [cached since 0.1953s ago] ('797bd432-3260-4189-a312-62800e4d22a1', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9f808ed8-3551-4f19-bcd0-5a414bc36d54', datetime.datetime(2025, 4, 21, 15, 52, 53, 491349), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 52, 53, 492354), datetime.datetime(2025, 4, 21, 15, 52, 53, 492354), 0)
2025-04-21 15:52:53,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,499 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 797bd432-3260-4189-a312-62800e4d22a1
2025-04-21 15:52:53,500 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:53,500 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:52:53,501 - sqlalchemy.engine.Engine - INFO - [cached since 0.1909s ago] ('797bd432-3260-4189-a312-62800e4d22a1',)
2025-04-21 15:52:53,501 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:52:53,501 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:52:53,502 - 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-21 15:52:53,502 - sqlalchemy.engine.Engine - INFO - [cached since 0.1867s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 52, 53, 502680), '797bd432-3260-4189-a312-62800e4d22a1')
2025-04-21 15:52:53,502 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:53,508 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:52:56,463 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:56,463 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:56,464 - sqlalchemy.engine.Engine - INFO - [cached since 3.284s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:52:56,465 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:52:59,477 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:52:59,478 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:52:59,480 - sqlalchemy.engine.Engine - INFO - [cached since 6.3s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:52:59,481 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:02,473 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:02,475 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:02,479 - sqlalchemy.engine.Engine - INFO - [cached since 9.299s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:02,484 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:05,472 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:05,474 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:05,474 - sqlalchemy.engine.Engine - INFO - [cached since 12.29s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:05,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:08,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:08,482 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:08,482 - sqlalchemy.engine.Engine - INFO - [cached since 15.3s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:08,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:11,500 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:11,500 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:11,500 - sqlalchemy.engine.Engine - INFO - [cached since 18.32s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:11,501 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:14,520 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:14,522 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:14,522 - sqlalchemy.engine.Engine - INFO - [cached since 21.34s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:14,524 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:17,528 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:17,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:17,534 - sqlalchemy.engine.Engine - INFO - [cached since 24.35s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:17,539 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:20,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:20,535 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:20,536 - sqlalchemy.engine.Engine - INFO - [cached since 27.36s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:20,537 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:23,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:23,553 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:23,554 - sqlalchemy.engine.Engine - INFO - [cached since 30.37s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:23,555 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:23,773 - root - INFO - 应用程序关闭中...
2025-04-21 15:53:23,773 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:53:23,773 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:53:23,774 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:53:23,774 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:53:23,775 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:53:23,775 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:53:23,775 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:53:23,776 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:53:23,776 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:53:23,776 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:53:23,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:53:23,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:53:23,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:53:23,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:53:23,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:53:23,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:53:23,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:53:23,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:53:23,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:53:23,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:53:23,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:53:23,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:53:23,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:53:23,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:53:23,778 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:53:23,778 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:53:23,778 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:53:23,778 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:53:23,779 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:53:23,779 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:53:23,779 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:53:23,779 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:53:24,997 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:53:24,998 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:53:25,058 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:53:25,110 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:53:25,121 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:53:25,138 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:53:25,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,139 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:53:25,140 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,140 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:53:25,141 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,142 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:53:25,142 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,144 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:53:25,146 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,148 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:53:25,148 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,149 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:53:25,150 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,153 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:53:25,154 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,155 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:53:25,155 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,156 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:53:25,156 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,157 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:53:25,157 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,157 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:53:25,158 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,160 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:53:25,160 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,161 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:53:25,161 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:53:25,163 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,164 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:53:25,537 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:53:25,540 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:53:25,543 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:53:25,543 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:53:25,546 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:53:25,547 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:53:25,548 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:53:25,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:53:25,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:53:25,553 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:53:25,554 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:53:25,557 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:53:25,557 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:53:25,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:53:25,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:53:25,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:53:25,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:53:25,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:53:25,567 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:53:25,567 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:53:25,582 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:53:25,584 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:53:25,585 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:53:25,587 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:53:25,593 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:53:25,596 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:53:25,597 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:53:25,600 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:53:25,614 - sqlalchemy.engine.Engine - INFO - [generated in 0.00227s] (1, 1)
2025-04-21 15:53:25,620 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:53:25,622 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,624 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:53:25,624 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:53:25,625 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:53:25,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,627 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:53:25,628 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1000, 2000, 2001)
2025-04-21 15:53:25,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,631 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:53:25,632 - services.enhanced_scheduler.task_persistence - INFO - 已加载 4 个待处理任务
2025-04-21 15:53:25,632 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,633 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,633 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:53:25,634 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,634 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:53:25,635 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (1001, datetime.datetime(2025, 4, 21, 14, 53, 25, 625108))
2025-04-21 15:53:25,636 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,636 - sqlalchemy.engine.Engine - INFO - [cached since 0.002996s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:53:25,637 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,638 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,638 - sqlalchemy.engine.Engine - INFO - [cached since 0.005248s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:53:25,639 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,639 - sqlalchemy.engine.Engine - INFO - [cached since 0.006467s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:25,640 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,641 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:53:25,641 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:53:25,641 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 (优先级 1) 添加到队列 0
2025-04-21 15:53:25,641 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:53:25,642 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:53:25,642 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:53:25,642 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 (优先级 1) 添加到队列 0
2025-04-21 15:53:25,642 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:53:25,642 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 4 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:53:25,642 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:53:25,642 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:53:25,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:53:25,677 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:53:25,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:53:25,684 - services.execution.task_executor - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 设置超时时间: 3600秒
2025-04-21 15:53:25,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:53:25,685 - services.execution.task_executor - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b 设置超时时间: 3600秒
2025-04-21 15:53:25,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:53:25,686 - services.execution.task_executor - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 设置超时时间: 3600秒
2025-04-21 15:53:25,687 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,687 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,688 - sqlalchemy.engine.Engine - INFO - [cached since 0.0552s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:53:25,688 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,689 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,689 - sqlalchemy.engine.Engine - INFO - [cached since 0.05672s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:53:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:53:25,691 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:53:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:53:25,693 - sqlalchemy.engine.Engine - INFO - [cached since 0.002037s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:53:25,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,696 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,697 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:53:25,697 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:53:25,697 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,698 - sqlalchemy.engine.Engine - INFO - [cached since 0.06543s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:53:25,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,700 - sqlalchemy.engine.Engine - INFO - [cached since 0.06697s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:53:25,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,701 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,701 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 53, 25, 701029), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:53:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:53:25,702 - sqlalchemy.engine.Engine - INFO - [cached since 0.01074s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:53:25,702 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,703 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,703 - sqlalchemy.engine.Engine - INFO - [cached since 0.001798s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 53, 25, 703028), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:53:25,703 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:53:25,704 - sqlalchemy.engine.Engine - INFO - [cached since 0.01226s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:53:25,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,706 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,706 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,706 - sqlalchemy.engine.Engine - INFO - [cached since 0.005528s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 53, 25, 706108), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 15:53:25,707 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,707 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,707 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,708 - sqlalchemy.engine.Engine - INFO - [cached since 0.007148s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 53, 25, 707025), '9f808ed8-3551-4f19-bcd0-5a414bc36d54')
2025-04-21 15:53:25,709 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,719 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:53:25,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,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-21 15:53:25,721 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('5b7239d9-ecb4-46ff-b19b-a367cd22218f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 53, 25, 719607), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 721967), datetime.datetime(2025, 4, 21, 15, 53, 25, 721967), 0)
2025-04-21 15:53:25,722 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,726 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:53:25,727 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:53:25,729 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:53:25,730 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,730 - 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-21 15:53:25,731 - sqlalchemy.engine.Engine - INFO - [cached since 0.009511s ago] ('92ec16b5-b5ac-4eb5-bad7-7341626f2d7e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 53, 25, 726545), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 730537), datetime.datetime(2025, 4, 21, 15, 53, 25, 730537), 0)
2025-04-21 15:53:25,731 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,732 - 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-21 15:53:25,733 - sqlalchemy.engine.Engine - INFO - [cached since 0.0117s ago] ('9f3f92dc-9dc6-4988-b942-9b54abea1037', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 53, 25, 727537), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 732536), datetime.datetime(2025, 4, 21, 15, 53, 25, 732536), 0)
2025-04-21 15:53:25,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,735 - 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-21 15:53:25,736 - sqlalchemy.engine.Engine - INFO - [cached since 0.01483s ago] ('c9e0e598-24e9-42fa-a74f-9a3619e5c014', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9f808ed8-3551-4f19-bcd0-5a414bc36d54', datetime.datetime(2025, 4, 21, 15, 53, 25, 729615), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 735653), datetime.datetime(2025, 4, 21, 15, 53, 25, 735653), 0)
2025-04-21 15:53:25,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,737 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,738 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,739 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:53:25,740 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('5b7239d9-ecb4-46ff-b19b-a367cd22218f',)
2025-04-21 15:53:25,741 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:53:25,741 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,742 - 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-21 15:53:25,742 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 742655), '5b7239d9-ecb4-46ff-b19b-a367cd22218f')
2025-04-21 15:53:25,743 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,745 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:53:25,746 - sqlalchemy.engine.Engine - INFO - [cached since 0.00619s ago] ('9f3f92dc-9dc6-4988-b942-9b54abea1037',)
2025-04-21 15:53:25,746 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:53:25,746 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,746 - 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-21 15:53:25,747 - sqlalchemy.engine.Engine - INFO - [cached since 0.005069s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 746653), '9f3f92dc-9dc6-4988-b942-9b54abea1037')
2025-04-21 15:53:25,747 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,751 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:53:25,751 - sqlalchemy.engine.Engine - INFO - [cached since 0.0117s ago] ('92ec16b5-b5ac-4eb5-bad7-7341626f2d7e',)
2025-04-21 15:53:25,751 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,752 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:53:25,752 - sqlalchemy.engine.Engine - INFO - [cached since 0.01265s ago] ('c9e0e598-24e9-42fa-a74f-9a3619e5c014',)
2025-04-21 15:53:25,753 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:53:25,753 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,753 - 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-21 15:53:25,754 - sqlalchemy.engine.Engine - INFO - [cached since 0.01196s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 753660), '92ec16b5-b5ac-4eb5-bad7-7341626f2d7e')
2025-04-21 15:53:25,754 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:53:25,755 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,755 - 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-21 15:53:25,755 - sqlalchemy.engine.Engine - INFO - [cached since 0.01361s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 755662), 'c9e0e598-24e9-42fa-a74f-9a3619e5c014')
2025-04-21 15:53:25,756 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,756 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:53:25,756 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:53:25,757 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:53:25,757 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,758 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,758 - 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-21 15:53:25,759 - sqlalchemy.engine.Engine - INFO - [cached since 0.03788s ago] ('3d10d593-de7f-4747-9dce-b16546bdb66b', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 53, 25, 757660), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 758661), datetime.datetime(2025, 4, 21, 15, 53, 25, 758661), 0)
2025-04-21 15:53:25,759 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:53:25,760 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:53:25,760 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 15:53:25,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,761 - 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-21 15:53:25,762 - sqlalchemy.engine.Engine - INFO - [cached since 0.0407s ago] ('2f7a7d2a-f876-4c13-bbdc-2ec0484e130e', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 53, 25, 760662), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 761661), datetime.datetime(2025, 4, 21, 15, 53, 25, 761661), 0)
2025-04-21 15:53:25,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,765 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:53:25,765 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:53:25,766 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:53:25,766 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,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-21 15:53:25,767 - sqlalchemy.engine.Engine - INFO - [cached since 0.04581s ago] ('e69922d1-68fa-4eb9-a5cc-5ec507bc2fd1', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 53, 25, 766659), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 767669), datetime.datetime(2025, 4, 21, 15, 53, 25, 767669), 0)
2025-04-21 15:53:25,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,769 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:53:25,770 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:53:25,770 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:53:25,771 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,771 - 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-21 15:53:25,771 - sqlalchemy.engine.Engine - INFO - [cached since 0.0506s ago] ('810cded2-e824-49aa-b2e9-46217fbd7ff3', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9f808ed8-3551-4f19-bcd0-5a414bc36d54', datetime.datetime(2025, 4, 21, 15, 53, 25, 770744), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 771743), datetime.datetime(2025, 4, 21, 15, 53, 25, 771743), 0)
2025-04-21 15:53:25,772 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 3d10d593-de7f-4747-9dce-b16546bdb66b
2025-04-21 15:53:25,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,773 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,773 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:53:25,773 - sqlalchemy.engine.Engine - INFO - [cached since 0.0342s ago] ('3d10d593-de7f-4747-9dce-b16546bdb66b',)
2025-04-21 15:53:25,774 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:53:25,774 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,775 - 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-21 15:53:25,775 - sqlalchemy.engine.Engine - INFO - [cached since 0.03325s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 775843), '3d10d593-de7f-4747-9dce-b16546bdb66b')
2025-04-21 15:53:25,775 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,777 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2f7a7d2a-f876-4c13-bbdc-2ec0484e130e
2025-04-21 15:53:25,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,778 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:53:25,779 - sqlalchemy.engine.Engine - INFO - [cached since 0.0399s ago] ('2f7a7d2a-f876-4c13-bbdc-2ec0484e130e',)
2025-04-21 15:53:25,780 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:53:25,780 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,780 - 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-21 15:53:25,781 - sqlalchemy.engine.Engine - INFO - [cached since 0.03921s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 780839), '2f7a7d2a-f876-4c13-bbdc-2ec0484e130e')
2025-04-21 15:53:25,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,781 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e69922d1-68fa-4eb9-a5cc-5ec507bc2fd1
2025-04-21 15:53:25,783 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 810cded2-e824-49aa-b2e9-46217fbd7ff3
2025-04-21 15:53:25,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,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-21 15:53:25,784 - sqlalchemy.engine.Engine - INFO - [cached since 0.04417s ago] ('810cded2-e824-49aa-b2e9-46217fbd7ff3',)
2025-04-21 15:53:25,784 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,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-21 15:53:25,786 - sqlalchemy.engine.Engine - INFO - [cached since 0.04619s ago] ('e69922d1-68fa-4eb9-a5cc-5ec507bc2fd1',)
2025-04-21 15:53:25,787 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:53:25,787 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,788 - 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-21 15:53:25,788 - sqlalchemy.engine.Engine - INFO - [cached since 0.04603s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 788323), '810cded2-e824-49aa-b2e9-46217fbd7ff3')
2025-04-21 15:53:25,789 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:53:25,790 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,790 - 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-21 15:53:25,790 - sqlalchemy.engine.Engine - INFO - [cached since 0.0484s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 790319), 'e69922d1-68fa-4eb9-a5cc-5ec507bc2fd1')
2025-04-21 15:53:25,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,793 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:53:25,794 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:53:25,794 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 15:53:25,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,797 - sqlalchemy.engine.Engine - INFO - [cached since 0.1646s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:53:25,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,800 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:53:25,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,801 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:53:25,802 - sqlalchemy.engine.Engine - INFO - [cached since 0.1111s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:53:25,803 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,804 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,804 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:53:25,804 - sqlalchemy.engine.Engine - INFO - [cached since 0.1131s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:53:25,807 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 15:53:25,807 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 15, 53, 25, 805318), None, None, 1002, None, None, None, '977f4df2-567d-43bd-85b5-75b3eee08d8b', '977f4df2-567d-43bd-85b5-75b3eee08d8b', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 15, 53, 25, 803320), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 15, 53, 25, 807316), datetime.datetime(2025, 4, 21, 15, 53, 25, 807316), 0)
2025-04-21 15:53:25,808 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:53:25,808 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,815 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,816 - sqlalchemy.engine.Engine - INFO - [cached since 0.1829s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:25,817 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,823 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 (优先级 1) 添加到队列 0
2025-04-21 15:53:25,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,829 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,829 - sqlalchemy.engine.Engine - INFO - [cached since 0.1965s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:25,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:53:25,877 - services.execution.task_executor - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 设置超时时间: 3600秒
2025-04-21 15:53:25,878 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,880 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,881 - sqlalchemy.engine.Engine - INFO - [cached since 0.2489s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:53:25,889 - sqlalchemy.engine.Engine - INFO - [cached since 0.1985s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:53:25,892 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,893 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] (datetime.datetime(2025, 4, 21, 15, 53, 25, 892615), datetime.datetime(2025, 4, 21, 15, 53, 25, 892615), '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3')
2025-04-21 15:53:25,895 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,909 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:25,909 - sqlalchemy.engine.Engine - INFO - [cached since 0.2086s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 53, 25, 909613), '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3')
2025-04-21 15:53:25,910 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,919 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:53:25,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,924 - 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-21 15:53:25,924 - sqlalchemy.engine.Engine - INFO - [cached since 0.2027s ago] ('17087db7-9365-4273-8c86-5f47e2cbcdc4', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 53, 25, 920622), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 924335), datetime.datetime(2025, 4, 21, 15, 53, 25, 924335), 0)
2025-04-21 15:53:25,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,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-21 15:53:25,941 - sqlalchemy.engine.Engine - INFO - [cached since 0.2015s ago] ('17087db7-9365-4273-8c86-5f47e2cbcdc4',)
2025-04-21 15:53:25,944 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:53:25,945 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,946 - 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-21 15:53:25,947 - sqlalchemy.engine.Engine - INFO - [cached since 0.2055s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 946339), '17087db7-9365-4273-8c86-5f47e2cbcdc4')
2025-04-21 15:53:25,952 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,961 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:53:25,963 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:53:25,966 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:53:25,967 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,969 - 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-21 15:53:25,970 - sqlalchemy.engine.Engine - INFO - [cached since 0.2492s ago] ('74551eaa-5f51-49e5-91de-8f4a08a548ad', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 53, 25, 967835), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 53, 25, 969829), datetime.datetime(2025, 4, 21, 15, 53, 25, 969829), 0)
2025-04-21 15:53:25,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:25,980 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 74551eaa-5f51-49e5-91de-8f4a08a548ad
2025-04-21 15:53:25,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:25,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-21 15:53:25,986 - sqlalchemy.engine.Engine - INFO - [cached since 0.2466s ago] ('74551eaa-5f51-49e5-91de-8f4a08a548ad',)
2025-04-21 15:53:25,987 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:53:25,988 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:53:25,991 - 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-21 15:53:25,995 - sqlalchemy.engine.Engine - INFO - [cached since 0.2535s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 53, 25, 991827), '74551eaa-5f51-49e5-91de-8f4a08a548ad')
2025-04-21 15:53:25,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:26,009 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:53:28,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:28,842 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:28,843 - sqlalchemy.engine.Engine - INFO - [cached since 3.211s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:28,845 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:31,860 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:31,861 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:31,861 - sqlalchemy.engine.Engine - INFO - [cached since 6.229s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:31,862 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:34,875 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:34,875 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:34,877 - sqlalchemy.engine.Engine - INFO - [cached since 9.244s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:34,878 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:37,892 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:37,893 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:37,894 - sqlalchemy.engine.Engine - INFO - [cached since 12.26s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:37,895 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:40,908 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:40,909 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:40,909 - sqlalchemy.engine.Engine - INFO - [cached since 15.28s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:40,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:43,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:43,933 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:43,933 - sqlalchemy.engine.Engine - INFO - [cached since 18.3s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:43,937 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:46,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:46,940 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:46,941 - sqlalchemy.engine.Engine - INFO - [cached since 21.31s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:46,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:49,955 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:49,956 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:49,957 - sqlalchemy.engine.Engine - INFO - [cached since 24.32s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:49,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:52,970 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:52,971 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:52,971 - sqlalchemy.engine.Engine - INFO - [cached since 27.34s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:52,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:55,977 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:55,978 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:55,979 - sqlalchemy.engine.Engine - INFO - [cached since 30.35s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:55,980 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:53:58,987 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:53:58,988 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:53:58,988 - sqlalchemy.engine.Engine - INFO - [cached since 33.36s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:53:58,989 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:02,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:02,017 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:02,017 - sqlalchemy.engine.Engine - INFO - [cached since 36.38s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:02,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:05,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:05,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:05,044 - sqlalchemy.engine.Engine - INFO - [cached since 39.41s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:05,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:08,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:08,059 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:08,060 - sqlalchemy.engine.Engine - INFO - [cached since 42.43s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:08,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:11,038 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:11,039 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:11,040 - sqlalchemy.engine.Engine - INFO - [cached since 45.41s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:11,042 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:14,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:14,063 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:14,064 - sqlalchemy.engine.Engine - INFO - [cached since 48.43s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:14,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:17,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:17,080 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:17,080 - sqlalchemy.engine.Engine - INFO - [cached since 51.45s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:17,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:20,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:20,097 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:20,097 - sqlalchemy.engine.Engine - INFO - [cached since 54.46s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:20,098 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:23,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:23,086 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:23,086 - sqlalchemy.engine.Engine - INFO - [cached since 57.45s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:23,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:25,648 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:25,649 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:54:25,649 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (1001, datetime.datetime(2025, 4, 21, 14, 54, 25, 647949))
2025-04-21 15:54:25,651 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:26,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:26,099 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:26,099 - sqlalchemy.engine.Engine - INFO - [cached since 60.47s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:26,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:29,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:29,103 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:29,105 - sqlalchemy.engine.Engine - INFO - [cached since 63.47s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:29,109 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:32,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:32,123 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:32,123 - sqlalchemy.engine.Engine - INFO - [cached since 66.49s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:32,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:35,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:35,131 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:35,132 - sqlalchemy.engine.Engine - INFO - [cached since 69.5s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:35,134 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:38,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:54:38,136 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:54:38,137 - sqlalchemy.engine.Engine - INFO - [cached since 72.5s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:54:38,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:54:40,602 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 15:54:40,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:54:40,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:54:40,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:54:40,603 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 15:54:40,603 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 15:54:40,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:54:40,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:54:40,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:54:40,604 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 15:54:40,604 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 15:54:40,604 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 15:54:40,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:54:40,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:54:40,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:54:40,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 15:54:40,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 15:54:40,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 15:54:40,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:54:40,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:54:40,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:54:40,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 15:54:40,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 15:54:40,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 15:54:40,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:54:40,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:54:40,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:54:40,606 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 15:54:40,606 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:54:40,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:55:25,648 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:25,649 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:55:25,650 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (1001, datetime.datetime(2025, 4, 21, 14, 55, 25, 648900))
2025-04-21 15:55:25,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:25,847 - root - INFO - 应用程序关闭中...
2025-04-21 15:55:25,848 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:55:25,848 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:55:25,848 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:55:25,849 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:55:25,850 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:55:25,850 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:55:25,851 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:55:25,851 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:55:25,851 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:55:25,851 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:55:25,851 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:55:25,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:55:25,852 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:55:25,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:55:25,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:55:25,853 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:55:25,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:55:25,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:55:25,855 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:55:25,856 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:55:25,856 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:55:25,856 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:55:25,856 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:55:25,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:55:25,857 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:55:25,857 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:55:25,857 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:55:25,858 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:55:25,858 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:55:25,858 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:55:25,858 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:55:25,858 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:55:27,135 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:55:27,135 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:55:27,192 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:55:27,242 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:55:27,270 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:55:27,289 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:55:27,289 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,290 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:55:27,290 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,291 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:55:27,291 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,292 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:55:27,292 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,294 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:55:27,294 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,298 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:55:27,298 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,299 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:55:27,300 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,302 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:55:27,302 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,303 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:55:27,304 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,306 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:55:27,307 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,308 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:55:27,308 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,309 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:55:27,310 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,311 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:55:27,311 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,312 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:55:27,313 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:27,313 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,314 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:55:27,686 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:55:27,686 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:55:27,686 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:55:27,686 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:55:27,687 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:55:27,687 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:55:27,687 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:55:27,687 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:55:27,688 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:55:27,688 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:55:27,688 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:55:27,688 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:55:27,689 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:55:27,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:55:27,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:55:27,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:55:27,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:55:27,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:55:27,691 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:55:27,691 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:55:27,713 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:27,714 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:55:27,715 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:55:27,716 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:55:27,716 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:55:27,716 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:55:27,717 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:55:27,717 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:55:27,727 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1, 1)
2025-04-21 15:55:27,728 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:55:27,728 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,729 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:55:27,729 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:55:27,730 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:55:27,730 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,732 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:55:27,732 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (1000, 2000, 2001)
2025-04-21 15:55:27,733 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,734 - services.enhanced_scheduler.task_persistence - INFO - 已加载 5 个待处理任务
2025-04-21 15:55:27,734 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:27,735 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,736 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,736 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:55:27,737 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,737 - sqlalchemy.engine.Engine - INFO - [cached since 0.001436s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:55:27,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,738 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:55:27,738 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 55, 27, 730304))
2025-04-21 15:55:27,741 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,741 - sqlalchemy.engine.Engine - INFO - [cached since 0.004917s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:55:27,742 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,742 - sqlalchemy.engine.Engine - INFO - [cached since 0.006524s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:55:27,742 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,744 - sqlalchemy.engine.Engine - INFO - [cached since 0.00776s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:55:27,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,745 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:55:27,745 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:55:27,745 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 (优先级 1) 添加到队列 0
2025-04-21 15:55:27,745 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:55:27,745 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 (优先级 1) 添加到队列 0
2025-04-21 15:55:27,745 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:55:27,745 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:55:27,746 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:55:27,746 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 (优先级 1) 添加到队列 0
2025-04-21 15:55:27,746 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:55:27,746 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 5 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:55:27,746 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:55:27,746 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:55:27,748 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:55:27,806 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:55:27,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:55:27,808 - services.execution.task_executor - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 设置超时时间: 3600秒
2025-04-21 15:55:27,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:55:27,812 - services.execution.task_executor - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 设置超时时间: 3600秒
2025-04-21 15:55:27,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:55:27,816 - services.execution.task_executor - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b 设置超时时间: 3600秒
2025-04-21 15:55:27,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:55:27,819 - services.execution.task_executor - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 设置超时时间: 3600秒
2025-04-21 15:55:27,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,822 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,827 - sqlalchemy.engine.Engine - INFO - [cached since 0.09055s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:55:27,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,831 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,833 - sqlalchemy.engine.Engine - INFO - [cached since 0.09664s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:55:27,836 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:27,837 - sqlalchemy.engine.Engine - INFO - [generated in 0.00242s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:27,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:27,841 - sqlalchemy.engine.Engine - INFO - [cached since 0.005348s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:27,846 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,849 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:27,852 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,853 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:27,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,858 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,862 - sqlalchemy.engine.Engine - INFO - [generated in 0.00345s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 27, 858158), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:55:27,866 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:27,868 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,872 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,875 - sqlalchemy.engine.Engine - INFO - [cached since 0.1391s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:55:27,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:27,883 - sqlalchemy.engine.Engine - INFO - [cached since 0.04739s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:27,886 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,887 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,890 - sqlalchemy.engine.Engine - INFO - [cached since 0.1537s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:55:27,894 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:27,896 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,899 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,899 - sqlalchemy.engine.Engine - INFO - [cached since 0.04083s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 27, 899159), '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3')
2025-04-21 15:55:27,900 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,902 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,902 - sqlalchemy.engine.Engine - INFO - [cached since 0.1663s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:55:27,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,909 - 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-21 15:55:27,910 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] ('d1c106f0-63bb-4fd6-9a70-b040835f1213', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 55, 27, 896166), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 909167), datetime.datetime(2025, 4, 21, 15, 55, 27, 909167), 0)
2025-04-21 15:55:27,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:27,912 - sqlalchemy.engine.Engine - INFO - [cached since 0.07664s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:55:27,913 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,913 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,914 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:27,915 - sqlalchemy.engine.Engine - INFO - [cached since 0.07931s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:27,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,917 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,917 - sqlalchemy.engine.Engine - INFO - [cached since 0.05924s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 27, 917484), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:55:27,918 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,918 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,919 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,919 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,919 - sqlalchemy.engine.Engine - INFO - [cached since 0.0611s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 27, 919488), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 15:55:27,920 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:27,920 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,921 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:27,921 - sqlalchemy.engine.Engine - INFO - [cached since 0.06338s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 27, 921488), '9f808ed8-3551-4f19-bcd0-5a414bc36d54')
2025-04-21 15:55:27,922 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,922 - 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-21 15:55:27,923 - sqlalchemy.engine.Engine - INFO - [cached since 0.01437s ago] ('578f23f7-22a7-4673-be46-643ba0725eb5', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 55, 27, 920489), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 922489), datetime.datetime(2025, 4, 21, 15, 55, 27, 922489), 0)
2025-04-21 15:55:27,924 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,925 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,926 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:27,926 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('d1c106f0-63bb-4fd6-9a70-b040835f1213',)
2025-04-21 15:55:27,927 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:27,928 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:27,930 - 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-21 15:55:27,931 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 27, 930176), 'd1c106f0-63bb-4fd6-9a70-b040835f1213')
2025-04-21 15:55:27,932 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:27,932 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,933 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,933 - 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-21 15:55:27,933 - sqlalchemy.engine.Engine - INFO - [cached since 0.02397s ago] ('01bbbb95-47e2-47ed-9869-dfcc75acfd79', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 55, 27, 932384), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 933164), datetime.datetime(2025, 4, 21, 15, 55, 27, 933164), 0)
2025-04-21 15:55:27,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,934 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:27,935 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:27,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,935 - 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-21 15:55:27,936 - sqlalchemy.engine.Engine - INFO - [cached since 0.02704s ago] ('ca6c020d-3501-496a-8e14-1a8dbe10420b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 55, 27, 934615), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 935715), datetime.datetime(2025, 4, 21, 15, 55, 27, 935715), 0)
2025-04-21 15:55:27,936 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,936 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:27,937 - sqlalchemy.engine.Engine - INFO - [cached since 0.01146s ago] ('578f23f7-22a7-4673-be46-643ba0725eb5',)
2025-04-21 15:55:27,938 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,938 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,939 - 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-21 15:55:27,939 - sqlalchemy.engine.Engine - INFO - [cached since 0.03023s ago] ('449e6207-a6f7-4d4f-b540-140fc49ece71', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9f808ed8-3551-4f19-bcd0-5a414bc36d54', datetime.datetime(2025, 4, 21, 15, 55, 27, 935715), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 938792), datetime.datetime(2025, 4, 21, 15, 55, 27, 938792), 0)
2025-04-21 15:55:27,940 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:27,940 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:27,940 - 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-21 15:55:27,940 - sqlalchemy.engine.Engine - INFO - [cached since 0.01085s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 27, 940919), '578f23f7-22a7-4673-be46-643ba0725eb5')
2025-04-21 15:55:27,941 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:27,941 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:27,941 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:27,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,942 - 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-21 15:55:27,942 - sqlalchemy.engine.Engine - INFO - [cached since 0.03341s ago] ('a04c26a8-4d71-42a9-bac5-1e0460869ce4', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 55, 27, 941955), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 942918), datetime.datetime(2025, 4, 21, 15, 55, 27, 942918), 0)
2025-04-21 15:55:27,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,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-21 15:55:27,946 - sqlalchemy.engine.Engine - INFO - [cached since 0.02023s ago] ('01bbbb95-47e2-47ed-9869-dfcc75acfd79',)
2025-04-21 15:55:27,946 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:27,946 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:27,947 - 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-21 15:55:27,947 - sqlalchemy.engine.Engine - INFO - [cached since 0.01741s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 27, 947918), '01bbbb95-47e2-47ed-9869-dfcc75acfd79')
2025-04-21 15:55:27,948 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,951 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:27,951 - sqlalchemy.engine.Engine - INFO - [cached since 0.02492s ago] ('ca6c020d-3501-496a-8e14-1a8dbe10420b',)
2025-04-21 15:55:27,952 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:27,952 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:27,952 - 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-21 15:55:27,952 - sqlalchemy.engine.Engine - INFO - [cached since 0.02205s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 27, 952399), 'ca6c020d-3501-496a-8e14-1a8dbe10420b')
2025-04-21 15:55:27,955 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,959 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a04c26a8-4d71-42a9-bac5-1e0460869ce4
2025-04-21 15:55:27,959 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:27,960 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:27,960 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:27,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,961 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:27,961 - sqlalchemy.engine.Engine - INFO - [cached since 0.03503s ago] ('a04c26a8-4d71-42a9-bac5-1e0460869ce4',)
2025-04-21 15:55:27,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,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-21 15:55:27,962 - sqlalchemy.engine.Engine - INFO - [cached since 0.03573s ago] ('449e6207-a6f7-4d4f-b540-140fc49ece71',)
2025-04-21 15:55:27,962 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:27,963 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:27,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-21 15:55:27,963 - sqlalchemy.engine.Engine - INFO - [cached since 0.03321s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 27, 963392), 'a04c26a8-4d71-42a9-bac5-1e0460869ce4')
2025-04-21 15:55:27,963 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,964 - 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-21 15:55:27,964 - sqlalchemy.engine.Engine - INFO - [cached since 0.05501s ago] ('7fcc4908-f3db-4eff-809a-61cb0fa3f68b', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 55, 27, 960397), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 964694), datetime.datetime(2025, 4, 21, 15, 55, 27, 964694), 0)
2025-04-21 15:55:27,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,965 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:27,965 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:27,966 - 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-21 15:55:27,966 - sqlalchemy.engine.Engine - INFO - [cached since 0.03573s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 27, 966193), '449e6207-a6f7-4d4f-b540-140fc49ece71')
2025-04-21 15:55:27,966 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:27,966 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:27,967 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:27,967 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,967 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:27,967 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:27,968 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 15:55:27,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,968 - 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-21 15:55:27,968 - sqlalchemy.engine.Engine - INFO - [cached since 0.05915s ago] ('c1501533-2018-4869-a730-598e6cb1667f', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 55, 27, 967206), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 968205), datetime.datetime(2025, 4, 21, 15, 55, 27, 968205), 0)
2025-04-21 15:55:27,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,973 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,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-21 15:55:27,974 - sqlalchemy.engine.Engine - INFO - [cached since 0.06453s ago] ('63bc95a7-5942-471d-9f16-5ce450316faf', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 55, 27, 968205), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 974207), datetime.datetime(2025, 4, 21, 15, 55, 27, 974207), 0)
2025-04-21 15:55:27,974 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,978 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:27,984 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:27,985 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:27,985 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:27,985 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 63bc95a7-5942-471d-9f16-5ce450316faf
2025-04-21 15:55:27,987 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c1501533-2018-4869-a730-598e6cb1667f
2025-04-21 15:55:27,987 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 7fcc4908-f3db-4eff-809a-61cb0fa3f68b
2025-04-21 15:55:27,987 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,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-21 15:55:27,988 - sqlalchemy.engine.Engine - INFO - [cached since 0.07942s ago] ('bb126739-fe09-4fb1-9787-1c300f9f6a75', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9f808ed8-3551-4f19-bcd0-5a414bc36d54', datetime.datetime(2025, 4, 21, 15, 55, 27, 985800), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 27, 988799), datetime.datetime(2025, 4, 21, 15, 55, 27, 988799), 0)
2025-04-21 15:55:27,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,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-21 15:55:27,991 - sqlalchemy.engine.Engine - INFO - [cached since 0.06464s ago] ('7fcc4908-f3db-4eff-809a-61cb0fa3f68b',)
2025-04-21 15:55:27,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:27,993 - sqlalchemy.engine.Engine - INFO - [cached since 0.06733s ago] ('63bc95a7-5942-471d-9f16-5ce450316faf',)
2025-04-21 15:55:27,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:27,995 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:27,995 - sqlalchemy.engine.Engine - INFO - [cached since 0.06924s ago] ('c1501533-2018-4869-a730-598e6cb1667f',)
2025-04-21 15:55:27,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,996 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:27,996 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:27,996 - 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-21 15:55:27,996 - sqlalchemy.engine.Engine - INFO - [cached since 0.06668s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 27, 996799), '7fcc4908-f3db-4eff-809a-61cb0fa3f68b')
2025-04-21 15:55:27,997 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:27,997 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:27,997 - 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-21 15:55:27,997 - sqlalchemy.engine.Engine - INFO - [cached since 0.06765s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 27, 997803), '63bc95a7-5942-471d-9f16-5ce450316faf')
2025-04-21 15:55:27,998 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:27,998 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:27,998 - 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-21 15:55:27,998 - sqlalchemy.engine.Engine - INFO - [cached since 0.06863s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 27, 998802), 'c1501533-2018-4869-a730-598e6cb1667f')
2025-04-21 15:55:27,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:27,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:28,001 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: bb126739-fe09-4fb1-9787-1c300f9f6a75
2025-04-21 15:55:28,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:28,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-21 15:55:28,006 - sqlalchemy.engine.Engine - INFO - [cached since 0.08004s ago] ('bb126739-fe09-4fb1-9787-1c300f9f6a75',)
2025-04-21 15:55:28,006 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:28,007 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:28,007 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:28,007 - 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-21 15:55:28,007 - sqlalchemy.engine.Engine - INFO - [cached since 0.0778s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 28, 7797), 'bb126739-fe09-4fb1-9787-1c300f9f6a75')
2025-04-21 15:55:28,009 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:28,011 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:28,012 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:28,012 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 15:55:28,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:28,012 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:28,013 - sqlalchemy.engine.Engine - INFO - [cached since 0.2767s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:55:28,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:28,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:28,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:28,014 - sqlalchemy.engine.Engine - INFO - [cached since 0.1789s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:28,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:28,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:28,016 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:28,016 - sqlalchemy.engine.Engine - INFO - [cached since 0.1804s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:28,017 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 15:55:28,018 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('093a7188-727b-44b8-82bb-b9177841895e', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 15, 55, 28, 17230), None, None, 1002, None, None, None, '977f4df2-567d-43bd-85b5-75b3eee08d8b', '977f4df2-567d-43bd-85b5-75b3eee08d8b', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 15, 55, 28, 15213), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 15, 55, 28, 17230), datetime.datetime(2025, 4, 21, 15, 55, 28, 17230), 0)
2025-04-21 15:55:28,018 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:28,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:28,025 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:28,025 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:28,025 - sqlalchemy.engine.Engine - INFO - [cached since 0.2893s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:28,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:28,027 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e (优先级 1) 添加到队列 0
2025-04-21 15:55:28,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:28,028 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:28,029 - sqlalchemy.engine.Engine - INFO - [cached since 0.2927s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:28,029 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:31,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:31,021 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:31,022 - sqlalchemy.engine.Engine - INFO - [cached since 3.286s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:31,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:34,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:34,031 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:34,031 - sqlalchemy.engine.Engine - INFO - [cached since 6.295s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:34,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:37,025 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:37,026 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:37,031 - sqlalchemy.engine.Engine - INFO - [cached since 9.295s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:37,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:40,038 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:40,039 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:40,039 - sqlalchemy.engine.Engine - INFO - [cached since 12.3s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:40,042 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:43,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:43,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:43,059 - sqlalchemy.engine.Engine - INFO - [cached since 15.32s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:43,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:46,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:46,096 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:46,097 - sqlalchemy.engine.Engine - INFO - [cached since 18.36s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:46,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:46,298 - root - INFO - 应用程序关闭中...
2025-04-21 15:55:46,299 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:55:46,299 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:55:46,299 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:55:46,299 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:55:46,299 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:55:46,299 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:55:46,299 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:55:46,301 - services.enhanced_scheduler.task_persistence - INFO - 备份 1 个任务到 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155546.json
2025-04-21 15:55:46,301 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:55:46,302 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:55:46,302 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:55:46,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:55:46,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:55:46,303 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:55:46,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:55:46,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:55:46,304 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:55:46,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:55:46,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:55:46,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:55:46,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:55:46,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:55:46,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:55:46,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:55:46,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:55:46,306 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:55:46,306 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:55:46,307 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:55:46,307 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:55:46,307 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:55:46,308 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:55:46,308 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:55:46,308 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:55:47,540 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:55:47,541 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:55:47,596 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:55:47,640 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:55:47,676 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:55:47,703 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:55:47,704 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,705 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:55:47,705 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,706 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:55:47,706 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,707 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:47,707 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:55:47,708 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,709 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:55:47,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,711 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:55:47,711 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,712 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:55:47,714 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,714 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:55:47,715 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,724 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:55:47,724 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,725 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:55:47,726 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,729 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:55:47,730 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,731 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:55:47,732 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,733 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:55:47,733 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,734 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:55:47,734 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:47,738 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:47,738 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:55:48,090 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:55:48,090 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:55:48,090 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:55:48,090 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:55:48,091 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:55:48,091 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:55:48,091 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:55:48,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:55:48,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:55:48,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:55:48,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:55:48,092 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:55:48,092 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:55:48,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:55:48,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:55:48,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:55:48,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:55:48,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:55:48,095 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:55:48,095 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:55:48,096 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:48,096 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:55:48,096 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:55:48,097 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:55:48,097 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:55:48,098 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:55:48,098 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:55:48,098 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,107 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:55:48,108 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (1, 1)
2025-04-21 15:55:48,109 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:55:48,109 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,110 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:55:48,110 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:55:48,110 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:55:48,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:55:48,115 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (1000, 2000, 2001)
2025-04-21 15:55:48,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,117 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:48,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,120 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:55:48,120 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 55, 48, 110812))
2025-04-21 15:55:48,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,122 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155546.json 加载任务，合并后共 6 个任务
2025-04-21 15:55:48,122 - services.enhanced_scheduler.task_persistence - INFO - 已加载 6 个待处理任务
2025-04-21 15:55:48,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,123 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,123 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:48,124 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,124 - sqlalchemy.engine.Engine - INFO - [cached since 0.001314s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:55:48,125 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,125 - sqlalchemy.engine.Engine - INFO - [cached since 0.002443s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:55:48,126 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,126 - sqlalchemy.engine.Engine - INFO - [cached since 0.003753s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:55:48,127 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,127 - sqlalchemy.engine.Engine - INFO - [cached since 0.004836s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:55:48,128 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,128 - sqlalchemy.engine.Engine - INFO - [cached since 0.005984s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:55:48,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,130 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e (优先级 1) 添加到队列 0
2025-04-21 15:55:48,130 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:55:48,130 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:55:48,130 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:55:48,130 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 (优先级 1) 添加到队列 0
2025-04-21 15:55:48,130 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:55:48,130 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 (优先级 1) 添加到队列 0
2025-04-21 15:55:48,130 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:55:48,130 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:55:48,130 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:55:48,131 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 (优先级 1) 添加到队列 0
2025-04-21 15:55:48,131 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:55:48,131 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 6 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:55:48,131 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:55:48,131 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:55:48,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:55:48,196 - services.execution.task_executor - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e 设置超时时间: 3600秒
2025-04-21 15:55:48,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:55:48,201 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:55:48,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:55:48,203 - services.execution.task_executor - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 设置超时时间: 3600秒
2025-04-21 15:55:48,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:55:48,207 - services.execution.task_executor - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 设置超时时间: 3600秒
2025-04-21 15:55:48,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:55:48,211 - services.execution.task_executor - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b 设置超时时间: 3600秒
2025-04-21 15:55:48,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,213 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,216 - sqlalchemy.engine.Engine - INFO - [cached since 0.09365s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:48,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,223 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,227 - sqlalchemy.engine.Engine - INFO - [cached since 0.1043s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:55:48,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:48,233 - sqlalchemy.engine.Engine - INFO - [generated in 0.00333s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:48,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:48,237 - sqlalchemy.engine.Engine - INFO - [cached since 0.007684s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:48,239 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,240 - sqlalchemy.engine.Engine - INFO - [generated in 0.00167s] (datetime.datetime(2025, 4, 21, 15, 55, 48, 238602), datetime.datetime(2025, 4, 21, 15, 55, 48, 239588), '093a7188-727b-44b8-82bb-b9177841895e')
2025-04-21 15:55:48,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,242 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,242 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:48,242 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:48,242 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:48,243 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,244 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,245 - sqlalchemy.engine.Engine - INFO - [cached since 0.1221s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:55:48,245 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,245 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,246 - sqlalchemy.engine.Engine - INFO - [cached since 0.123s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:55:48,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,247 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,247 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 48, 247421), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:55:48,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,248 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,248 - sqlalchemy.engine.Engine - INFO - [cached since 0.1255s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:55:48,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:48,250 - sqlalchemy.engine.Engine - INFO - [cached since 0.01971s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:48,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:48,250 - sqlalchemy.engine.Engine - INFO - [cached since 0.02065s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:48,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:48,253 - sqlalchemy.engine.Engine - INFO - [cached since 0.02399s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:55:48,255 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,260 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,261 - sqlalchemy.engine.Engine - INFO - [cached since 0.01459s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 48, 260957), '093a7188-727b-44b8-82bb-b9177841895e')
2025-04-21 15:55:48,262 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,262 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,263 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,263 - sqlalchemy.engine.Engine - INFO - [cached since 0.017s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 48, 263958), '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3')
2025-04-21 15:55:48,264 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,264 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,264 - sqlalchemy.engine.Engine - INFO - [cached since 0.01816s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 48, 264956), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:55:48,265 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,265 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,266 - sqlalchemy.engine.Engine - INFO - [cached since 0.01922s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 48, 265956), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 15:55:48,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,268 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,268 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,269 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:48,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,271 - 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-21 15:55:48,271 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('4edfc777-3c2c-4163-9c4d-9f6121e801ee', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 55, 48, 269478), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 270654), datetime.datetime(2025, 4, 21, 15, 55, 48, 270654), 0)
2025-04-21 15:55:48,272 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:48,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,273 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,273 - 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-21 15:55:48,273 - sqlalchemy.engine.Engine - INFO - [cached since 0.002382s ago] ('f8539f0b-104f-4d62-8a86-aed5422ea2f2', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 55, 48, 272119), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 273138), datetime.datetime(2025, 4, 21, 15, 55, 48, 273138), 0)
2025-04-21 15:55:48,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,279 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:48,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,280 - 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-21 15:55:48,281 - sqlalchemy.engine.Engine - INFO - [cached since 0.009637s ago] ('5458fc1e-57cd-46b8-b0d3-8a46a73236e4', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 55, 48, 279217), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 280146), datetime.datetime(2025, 4, 21, 15, 55, 48, 280146), 0)
2025-04-21 15:55:48,281 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:48,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,282 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,282 - 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-21 15:55:48,283 - sqlalchemy.engine.Engine - INFO - [cached since 0.01173s ago] ('48df2bf6-5d1c-42a3-910d-494dde48fd05', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 55, 48, 281139), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 282140), datetime.datetime(2025, 4, 21, 15, 55, 48, 282140), 0)
2025-04-21 15:55:48,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,285 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:48,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,286 - 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-21 15:55:48,286 - sqlalchemy.engine.Engine - INFO - [cached since 0.01521s ago] ('c3025323-0214-41ed-a4ac-70aabdc3e007', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 55, 48, 285278), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 286285), datetime.datetime(2025, 4, 21, 15, 55, 48, 286285), 0)
2025-04-21 15:55:48,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,287 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:48,288 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('4edfc777-3c2c-4163-9c4d-9f6121e801ee',)
2025-04-21 15:55:48,288 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,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-21 15:55:48,288 - sqlalchemy.engine.Engine - INFO - [cached since 0.001022s ago] ('f8539f0b-104f-4d62-8a86-aed5422ea2f2',)
2025-04-21 15:55:48,289 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,289 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:48,290 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,290 - 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-21 15:55:48,290 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 290276), '4edfc777-3c2c-4163-9c4d-9f6121e801ee')
2025-04-21 15:55:48,291 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:48,291 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,291 - 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-21 15:55:48,292 - sqlalchemy.engine.Engine - INFO - [cached since 0.001534s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 291370), 'f8539f0b-104f-4d62-8a86-aed5422ea2f2')
2025-04-21 15:55:48,292 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,292 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,293 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:48,293 - sqlalchemy.engine.Engine - INFO - [cached since 0.005977s ago] ('5458fc1e-57cd-46b8-b0d3-8a46a73236e4',)
2025-04-21 15:55:48,294 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:48,294 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,294 - 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-21 15:55:48,294 - sqlalchemy.engine.Engine - INFO - [cached since 0.004281s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 294399), '5458fc1e-57cd-46b8-b0d3-8a46a73236e4')
2025-04-21 15:55:48,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55: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-21 15:55:48,296 - sqlalchemy.engine.Engine - INFO - [cached since 0.008843s ago] ('48df2bf6-5d1c-42a3-910d-494dde48fd05',)
2025-04-21 15:55:48,297 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:48,297 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,297 - 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-21 15:55:48,297 - sqlalchemy.engine.Engine - INFO - [cached since 0.007167s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 297391), '48df2bf6-5d1c-42a3-910d-494dde48fd05')
2025-04-21 15:55:48,298 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,299 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:48,300 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:48,300 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:48,301 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:48,301 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:48,301 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:48,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,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-21 15:55:48,302 - sqlalchemy.engine.Engine - INFO - [cached since 0.01446s ago] ('c3025323-0214-41ed-a4ac-70aabdc3e007',)
2025-04-21 15:55:48,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,302 - 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-21 15:55:48,303 - sqlalchemy.engine.Engine - INFO - [cached since 0.03187s ago] ('19311ea8-e32f-4d90-ae61-e72aeabb2e51', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 55, 48, 300611), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 302379), datetime.datetime(2025, 4, 21, 15, 55, 48, 302379), 0)
2025-04-21 15:55:48,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,303 - 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-21 15:55:48,303 - sqlalchemy.engine.Engine - INFO - [cached since 0.03266s ago] ('5477a3f6-7602-4129-8212-484ddd7c6f56', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 55, 48, 301470), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 303389), datetime.datetime(2025, 4, 21, 15, 55, 48, 303389), 0)
2025-04-21 15:55:48,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,305 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:48,305 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,305 - 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-21 15:55:48,305 - sqlalchemy.engine.Engine - INFO - [cached since 0.01486s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 305086), 'c3025323-0214-41ed-a4ac-70aabdc3e007')
2025-04-21 15:55:48,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,306 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:48,306 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:48,306 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:48,307 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,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-21 15:55:48,307 - sqlalchemy.engine.Engine - INFO - [cached since 0.0363s ago] ('7c76e724-3803-4c34-b61b-9346d45afa70', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 55, 48, 306088), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 307098), datetime.datetime(2025, 4, 21, 15, 55, 48, 307098), 0)
2025-04-21 15:55:48,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,311 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:48,311 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:48,311 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:48,311 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,312 - 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-21 15:55:48,312 - sqlalchemy.engine.Engine - INFO - [cached since 0.0409s ago] ('fbdc5359-55fa-4176-81e9-5c9544b4b5bc', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 55, 48, 311088), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 312089), datetime.datetime(2025, 4, 21, 15, 55, 48, 312089), 0)
2025-04-21 15:55:48,312 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,313 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 19311ea8-e32f-4d90-ae61-e72aeabb2e51
2025-04-21 15:55:48,313 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 5477a3f6-7602-4129-8212-484ddd7c6f56
2025-04-21 15:55:48,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:48,315 - sqlalchemy.engine.Engine - INFO - [cached since 0.02738s ago] ('19311ea8-e32f-4d90-ae61-e72aeabb2e51',)
2025-04-21 15:55:48,315 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:48,315 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:48,315 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 15:55:48,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,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-21 15:55:48,317 - sqlalchemy.engine.Engine - INFO - [cached since 0.02903s ago] ('5477a3f6-7602-4129-8212-484ddd7c6f56',)
2025-04-21 15:55:48,317 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:48,317 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,317 - 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-21 15:55:48,317 - sqlalchemy.engine.Engine - INFO - [cached since 0.02722s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 317108), '19311ea8-e32f-4d90-ae61-e72aeabb2e51')
2025-04-21 15:55:48,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,318 - 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-21 15:55:48,319 - sqlalchemy.engine.Engine - INFO - [cached since 0.04755s ago] ('84fcb754-6fff-4381-9771-ea6c8d85361c', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 55, 48, 316218), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 48, 318224), datetime.datetime(2025, 4, 21, 15, 55, 48, 318224), 0)
2025-04-21 15:55:48,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,319 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:48,320 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,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-21 15:55:48,320 - sqlalchemy.engine.Engine - INFO - [cached since 0.02967s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 320117), '5477a3f6-7602-4129-8212-484ddd7c6f56')
2025-04-21 15:55:48,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,320 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 7c76e724-3803-4c34-b61b-9346d45afa70
2025-04-21 15:55:48,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,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-21 15:55:48,321 - sqlalchemy.engine.Engine - INFO - [cached since 0.03421s ago] ('7c76e724-3803-4c34-b61b-9346d45afa70',)
2025-04-21 15:55:48,322 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:48,322 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,322 - 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-21 15:55:48,322 - sqlalchemy.engine.Engine - INFO - [cached since 0.03247s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 322591), '7c76e724-3803-4c34-b61b-9346d45afa70')
2025-04-21 15:55:48,323 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,327 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: fbdc5359-55fa-4176-81e9-5c9544b4b5bc
2025-04-21 15:55:48,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,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-21 15:55:48,328 - sqlalchemy.engine.Engine - INFO - [cached since 0.04123s ago] ('fbdc5359-55fa-4176-81e9-5c9544b4b5bc',)
2025-04-21 15:55:48,329 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:48,329 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,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-21 15:55:48,329 - sqlalchemy.engine.Engine - INFO - [cached since 0.03967s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 329801), 'fbdc5359-55fa-4176-81e9-5c9544b4b5bc')
2025-04-21 15:55:48,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,334 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:48,334 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 84fcb754-6fff-4381-9771-ea6c8d85361c
2025-04-21 15:55:48,335 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:48,335 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:48,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,336 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:48,336 - sqlalchemy.engine.Engine - INFO - [cached since 0.04885s ago] ('84fcb754-6fff-4381-9771-ea6c8d85361c',)
2025-04-21 15:55:48,336 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:48,337 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:48,337 - 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-21 15:55:48,337 - sqlalchemy.engine.Engine - INFO - [cached since 0.04714s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 48, 337716), '84fcb754-6fff-4381-9771-ea6c8d85361c')
2025-04-21 15:55:48,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,341 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:48,345 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:48,345 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 15:55:48,345 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,345 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,347 - sqlalchemy.engine.Engine - INFO - [cached since 0.2237s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:55:48,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,347 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,347 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:48,347 - sqlalchemy.engine.Engine - INFO - [cached since 0.1186s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:48,349 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:48,350 - sqlalchemy.engine.Engine - INFO - [cached since 0.1201s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:48,352 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 15:55:48,352 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 15, 55, 48, 350998), None, None, 1002, None, None, None, '977f4df2-567d-43bd-85b5-75b3eee08d8b', '977f4df2-567d-43bd-85b5-75b3eee08d8b', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 15, 55, 48, 349087), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 15, 55, 48, 350998), datetime.datetime(2025, 4, 21, 15, 55, 48, 350998), 0)
2025-04-21 15:55:48,352 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,358 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,358 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,359 - sqlalchemy.engine.Engine - INFO - [cached since 0.2356s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:55:48,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:48,360 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 (优先级 1) 添加到队列 0
2025-04-21 15:55:48,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:48,360 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:48,361 - sqlalchemy.engine.Engine - INFO - [cached since 0.2377s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:55:48,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:51,383 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:51,384 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:51,385 - sqlalchemy.engine.Engine - INFO - [cached since 3.263s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:55:51,387 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:54,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:54,399 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:54,399 - sqlalchemy.engine.Engine - INFO - [cached since 6.276s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:55:54,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:54,616 - root - INFO - 应用程序关闭中...
2025-04-21 15:55:54,616 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:55:54,616 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:55:54,617 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:55:54,617 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:55:54,617 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:55:54,617 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:55:54,618 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:55:54,626 - services.enhanced_scheduler.task_persistence - INFO - 备份 2 个任务到 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155554.json
2025-04-21 15:55:54,626 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:55:54,626 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:55:54,628 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:55:54,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:55:54,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:55:54,628 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:55:54,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:55:54,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:55:54,628 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:55:54,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:55:54,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:55:54,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:55:54,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:55:54,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:55:54,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:55:54,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:55:54,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:55:54,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:55:54,629 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:55:54,629 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:55:54,630 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:55:54,630 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:55:54,630 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:55:54,630 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:55:54,632 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:55:55,795 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:55:55,795 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:55:55,849 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:55:55,896 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:55:55,931 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:55:55,954 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:55:55,954 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,954 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:55:55,957 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,957 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:55:55,957 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,958 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:55,958 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:55:55,958 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,960 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:55:55,960 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,962 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:55:55,963 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,963 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:55:55,964 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,965 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:55:55,965 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,965 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:55:55,965 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,967 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:55:55,967 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,967 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:55:55,967 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,968 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:55:55,968 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,968 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:55:55,968 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,970 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:55:55,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:55:55,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:55,973 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:55:56,319 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:55:56,320 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:55:56,320 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:55:56,320 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:55:56,320 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:55:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:55:56,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:55:56,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:55:56,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:55:56,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:55:56,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:55:56,322 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:55:56,322 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:55:56,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:55:56,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:55:56,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:55:56,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:55:56,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:55:56,325 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:55:56,325 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:55:56,343 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:56,344 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:55:56,345 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:55:56,346 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:55:56,347 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:55:56,348 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:55:56,348 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:55:56,348 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,356 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:55:56,357 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (1, 1)
2025-04-21 15:55:56,358 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:55:56,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,361 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:55:56,362 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:55:56,362 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:55:56,363 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,364 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:55:56,365 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (1000, 2000, 2001)
2025-04-21 15:55:56,389 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,392 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:56,393 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,393 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:55:56,394 - sqlalchemy.engine.Engine - INFO - [generated in 0.00091s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 55, 56, 362809))
2025-04-21 15:55:56,395 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155554.json 加载任务，合并后共 7 个任务
2025-04-21 15:55:56,396 - services.enhanced_scheduler.task_persistence - INFO - 已加载 7 个待处理任务
2025-04-21 15:55:56,396 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,398 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,398 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:56,399 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,400 - sqlalchemy.engine.Engine - INFO - [cached since 0.002044s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:55:56,401 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,401 - sqlalchemy.engine.Engine - INFO - [cached since 0.003301s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:55:56,402 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,402 - sqlalchemy.engine.Engine - INFO - [cached since 0.004569s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:55:56,403 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,403 - sqlalchemy.engine.Engine - INFO - [cached since 0.005599s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:55:56,404 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,404 - sqlalchemy.engine.Engine - INFO - [cached since 0.006681s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:55:56,405 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,408 - sqlalchemy.engine.Engine - INFO - [cached since 0.01007s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:55:56,408 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,409 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e (优先级 1) 添加到队列 0
2025-04-21 15:55:56,409 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:55:56,409 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:55:56,409 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:55:56,409 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 (优先级 1) 添加到队列 0
2025-04-21 15:55:56,410 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:55:56,410 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 (优先级 1) 添加到队列 0
2025-04-21 15:55:56,410 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:55:56,410 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:55:56,410 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:55:56,410 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 (优先级 1) 添加到队列 0
2025-04-21 15:55:56,410 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:55:56,410 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 (优先级 1) 添加到队列 0
2025-04-21 15:55:56,410 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152, 优先级: 1
2025-04-21 15:55:56,410 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 7 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:55:56,410 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:55:56,410 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:55:56,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:55:56,513 - services.execution.task_executor - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e 设置超时时间: 3600秒
2025-04-21 15:55:56,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:55:56,514 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:55:56,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:55:56,514 - services.execution.task_executor - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 设置超时时间: 3600秒
2025-04-21 15:55:56,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:55:56,515 - services.execution.task_executor - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 设置超时时间: 3600秒
2025-04-21 15:55:56,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:55:56,515 - services.execution.task_executor - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b 设置超时时间: 3600秒
2025-04-21 15:55:56,516 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,516 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,518 - sqlalchemy.engine.Engine - INFO - [cached since 0.12s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:55:56,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,518 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,518 - sqlalchemy.engine.Engine - INFO - [cached since 0.1207s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:55:56,519 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:56,520 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:56,521 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:56,528 - sqlalchemy.engine.Engine - INFO - [cached since 0.008226s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:56,529 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,533 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,538 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:56,539 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:56,539 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:55:56,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,543 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,545 - sqlalchemy.engine.Engine - INFO - [generated in 0.00175s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 56, 543118), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:55:56,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,552 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,556 - sqlalchemy.engine.Engine - INFO - [cached since 0.158s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:55:56,559 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,560 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,561 - sqlalchemy.engine.Engine - INFO - [cached since 0.1631s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:55:56,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,561 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:56,562 - sqlalchemy.engine.Engine - INFO - [cached since 0.04271s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:55:56,562 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,563 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,563 - sqlalchemy.engine.Engine - INFO - [cached since 0.1658s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:55:56,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,564 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,565 - sqlalchemy.engine.Engine - INFO - [cached since 0.02233s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 56, 564437), '093a7188-727b-44b8-82bb-b9177841895e')
2025-04-21 15:55:56,565 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,566 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:56,567 - sqlalchemy.engine.Engine - INFO - [cached since 0.04735s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:56,569 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:56,572 - sqlalchemy.engine.Engine - INFO - [cached since 0.0527s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:56,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,577 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,582 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:56,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,588 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,590 - sqlalchemy.engine.Engine - INFO - [cached since 0.04737s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 56, 588560), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 15:55:56,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,596 - 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-21 15:55:56,599 - sqlalchemy.engine.Engine - INFO - [generated in 0.00300s] ('f3c1a572-44a7-4188-8af7-62f11da50e5b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 55, 56, 584553), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 596554), datetime.datetime(2025, 4, 21, 15, 55, 56, 596554), 0)
2025-04-21 15:55:56,602 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,605 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,606 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,608 - sqlalchemy.engine.Engine - INFO - [cached since 0.06587s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 56, 606554), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:55:56,611 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:56,612 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,615 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,616 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,618 - 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-21 15:55:56,620 - sqlalchemy.engine.Engine - INFO - [cached since 0.02386s ago] ('24f3104f-c429-4040-83d1-a33f760513bb', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 55, 56, 611554), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 618553), datetime.datetime(2025, 4, 21, 15, 55, 56, 618553), 0)
2025-04-21 15:55:56,621 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,622 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,622 - sqlalchemy.engine.Engine - INFO - [cached since 0.07953s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 55, 56, 622554), '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3')
2025-04-21 15:55:56,622 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:56,623 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,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-21 15:55:56,625 - sqlalchemy.engine.Engine - INFO - [cached since 0.02835s ago] ('cc1fb509-943c-4ae9-9b80-f10841c897a3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 55, 56, 623554), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 624554), datetime.datetime(2025, 4, 21, 15, 55, 56, 624554), 0)
2025-04-21 15:55:56,626 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,632 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:56,634 - sqlalchemy.engine.Engine - INFO - [generated in 0.00215s] ('f3c1a572-44a7-4188-8af7-62f11da50e5b',)
2025-04-21 15:55:56,637 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:56,638 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:56,639 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,641 - 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-21 15:55:56,645 - sqlalchemy.engine.Engine - INFO - [generated in 0.00339s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 641554), 'f3c1a572-44a7-4188-8af7-62f11da50e5b')
2025-04-21 15:55:56,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,652 - 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-21 15:55:56,652 - sqlalchemy.engine.Engine - INFO - [cached since 0.05588s ago] ('7a33fa53-49fe-44b1-b294-fb826aa4c249', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 55, 56, 638575), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 652563), datetime.datetime(2025, 4, 21, 15, 55, 56, 652563), 0)
2025-04-21 15:55:56,655 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,656 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,656 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:56,657 - sqlalchemy.engine.Engine - INFO - [cached since 0.02448s ago] ('24f3104f-c429-4040-83d1-a33f760513bb',)
2025-04-21 15:55:56,659 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,662 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:56,666 - sqlalchemy.engine.Engine - INFO - [cached since 0.03358s ago] ('cc1fb509-943c-4ae9-9b80-f10841c897a3',)
2025-04-21 15:55:56,668 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,669 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:55:56,670 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:56,670 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,673 - 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-21 15:55:56,673 - sqlalchemy.engine.Engine - INFO - [cached since 0.03242s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 673553), 'cc1fb509-943c-4ae9-9b80-f10841c897a3')
2025-04-21 15:55:56,674 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:56,675 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,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-21 15:55:56,676 - sqlalchemy.engine.Engine - INFO - [cached since 0.03518s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 675555), '24f3104f-c429-4040-83d1-a33f760513bb')
2025-04-21 15:55:56,677 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:56,677 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:56,677 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:56,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,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-21 15:55:56,678 - sqlalchemy.engine.Engine - INFO - [cached since 0.0823s ago] ('a4951970-14a1-4eec-9777-1f85043b7e9d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 55, 56, 669555), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 678554), datetime.datetime(2025, 4, 21, 15, 55, 56, 678554), 0)
2025-04-21 15:55:56,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,679 - 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-21 15:55:56,679 - sqlalchemy.engine.Engine - INFO - [cached since 0.08335s ago] ('cec583a1-bf58-41bf-acf7-3b9616006dd4', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 55, 56, 677554), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 679741), datetime.datetime(2025, 4, 21, 15, 55, 56, 679741), 0)
2025-04-21 15:55:56,680 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,682 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,682 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,682 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:56,682 - sqlalchemy.engine.Engine - INFO - [cached since 0.04932s ago] ('7a33fa53-49fe-44b1-b294-fb826aa4c249',)
2025-04-21 15:55:56,682 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,683 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:56,683 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,684 - 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-21 15:55:56,684 - sqlalchemy.engine.Engine - INFO - [cached since 0.04268s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 684004), '7a33fa53-49fe-44b1-b294-fb826aa4c249')
2025-04-21 15:55:56,685 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:56,685 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:56,685 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 15:55:56,686 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,686 - 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-21 15:55:56,686 - sqlalchemy.engine.Engine - INFO - [cached since 0.08944s ago] ('dff01326-a7da-4ebe-aaf4-70e10c3fa478', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 55, 56, 685004), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 686007), datetime.datetime(2025, 4, 21, 15, 55, 56, 686007), 0)
2025-04-21 15:55:56,687 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,690 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:56,690 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:56,690 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:56,691 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: cec583a1-bf58-41bf-acf7-3b9616006dd4
2025-04-21 15:55:56,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,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-21 15:55:56,693 - sqlalchemy.engine.Engine - INFO - [cached since 0.06095s ago] ('cec583a1-bf58-41bf-acf7-3b9616006dd4',)
2025-04-21 15:55:56,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,693 - 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-21 15:55:56,694 - sqlalchemy.engine.Engine - INFO - [cached since 0.09769s ago] ('62dfda55-4bf1-4431-9513-a16c22d257ab', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 55, 56, 691986), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 693982), datetime.datetime(2025, 4, 21, 15, 55, 56, 693982), 0)
2025-04-21 15:55:56,694 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:56,694 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,694 - 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-21 15:55:56,695 - sqlalchemy.engine.Engine - INFO - [cached since 0.05403s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 694982), 'cec583a1-bf58-41bf-acf7-3b9616006dd4')
2025-04-21 15:55:56,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,697 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: dff01326-a7da-4ebe-aaf4-70e10c3fa478
2025-04-21 15:55:56,697 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:56,697 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:56,698 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:56,698 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,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-21 15:55:56,699 - sqlalchemy.engine.Engine - INFO - [cached since 0.06659s ago] ('dff01326-a7da-4ebe-aaf4-70e10c3fa478',)
2025-04-21 15:55:56,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,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-21 15:55:56,700 - sqlalchemy.engine.Engine - INFO - [cached since 0.1034s ago] ('376ad7fd-3f1f-4c86-8d23-8640ae0ce304', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 55, 56, 698220), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 700507), datetime.datetime(2025, 4, 21, 15, 55, 56, 700507), 0)
2025-04-21 15:55:56,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:56,700 - sqlalchemy.engine.Engine - INFO - [cached since 0.06815s ago] ('a4951970-14a1-4eec-9777-1f85043b7e9d',)
2025-04-21 15:55:56,701 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:56,701 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,701 - 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-21 15:55:56,701 - sqlalchemy.engine.Engine - INFO - [cached since 0.06023s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 701509), 'dff01326-a7da-4ebe-aaf4-70e10c3fa478')
2025-04-21 15:55:56,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,702 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:55:56,702 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,703 - 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-21 15:55:56,704 - sqlalchemy.engine.Engine - INFO - [cached since 0.06261s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 703507), 'a4951970-14a1-4eec-9777-1f85043b7e9d')
2025-04-21 15:55:56,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,705 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 62dfda55-4bf1-4431-9513-a16c22d257ab
2025-04-21 15:55:56,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,706 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,706 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:56,707 - sqlalchemy.engine.Engine - INFO - [cached since 0.07441s ago] ('62dfda55-4bf1-4431-9513-a16c22d257ab',)
2025-04-21 15:55:56,707 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:56,708 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:56,708 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,708 - 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-21 15:55:56,708 - sqlalchemy.engine.Engine - INFO - [cached since 0.06743s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 708813), '62dfda55-4bf1-4431-9513-a16c22d257ab')
2025-04-21 15:55:56,710 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 376ad7fd-3f1f-4c86-8d23-8640ae0ce304
2025-04-21 15:55:56,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,711 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:56,711 - sqlalchemy.engine.Engine - INFO - [cached since 0.07857s ago] ('376ad7fd-3f1f-4c86-8d23-8640ae0ce304',)
2025-04-21 15:55:56,711 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:56,712 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,713 - 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-21 15:55:56,713 - sqlalchemy.engine.Engine - INFO - [cached since 0.07204s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 713786), '376ad7fd-3f1f-4c86-8d23-8640ae0ce304')
2025-04-21 15:55:56,714 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:55:56,714 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:55:56,714 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:55:56,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,715 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:56,715 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 15:55:56,716 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,716 - 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-21 15:55:56,716 - sqlalchemy.engine.Engine - INFO - [cached since 0.12s ago] ('4c0737ab-a907-4fc5-8483-19b0d003d281', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 55, 56, 715681), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 55, 56, 716691), datetime.datetime(2025, 4, 21, 15, 55, 56, 716691), 0)
2025-04-21 15:55:56,716 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,717 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,717 - sqlalchemy.engine.Engine - INFO - [cached since 0.3198s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:55:56,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:56,720 - sqlalchemy.engine.Engine - INFO - [cached since 0.2007s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:56,721 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,721 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:56,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:55:56,722 - sqlalchemy.engine.Engine - INFO - [cached since 0.2024s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:55:56,723 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 15:55:56,723 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('04d68bb4-c67f-421a-bc0e-3fff6c236052', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 15, 55, 56, 722690), None, None, 1002, None, None, None, '977f4df2-567d-43bd-85b5-75b3eee08d8b', '977f4df2-567d-43bd-85b5-75b3eee08d8b', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 15, 55, 56, 721691), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 15, 55, 56, 723813), datetime.datetime(2025, 4, 21, 15, 55, 56, 723813), 0)
2025-04-21 15:55:56,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,727 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:56,730 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4c0737ab-a907-4fc5-8483-19b0d003d281
2025-04-21 15:55:56,730 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,730 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:55:56,731 - sqlalchemy.engine.Engine - INFO - [cached since 0.09809s ago] ('4c0737ab-a907-4fc5-8483-19b0d003d281',)
2025-04-21 15:55:56,731 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:55:56,732 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:55:56,732 - 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-21 15:55:56,732 - sqlalchemy.engine.Engine - INFO - [cached since 0.09059s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 55, 56, 732284), '4c0737ab-a907-4fc5-8483-19b0d003d281')
2025-04-21 15:55:56,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,735 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,735 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,735 - sqlalchemy.engine.Engine - INFO - [cached since 0.3375s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:55:56,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,736 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 04d68bb4-c67f-421a-bc0e-3fff6c236052 (优先级 1) 添加到队列 0
2025-04-21 15:55:56,737 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:56,737 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:56,738 - sqlalchemy.engine.Engine - INFO - [cached since 0.3397s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:55:56,738 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:55:56,740 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:55:59,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:55:59,763 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:55:59,763 - sqlalchemy.engine.Engine - INFO - [cached since 3.366s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:55:59,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:02,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:02,780 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:02,781 - sqlalchemy.engine.Engine - INFO - [cached since 6.384s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:02,782 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:05,812 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:05,813 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:05,815 - sqlalchemy.engine.Engine - INFO - [cached since 9.417s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:05,817 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:08,841 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:08,842 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:08,842 - sqlalchemy.engine.Engine - INFO - [cached since 12.45s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:08,846 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:11,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:11,857 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:11,859 - sqlalchemy.engine.Engine - INFO - [cached since 15.46s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:11,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:14,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:14,882 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:14,883 - sqlalchemy.engine.Engine - INFO - [cached since 18.48s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:14,884 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:17,897 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:17,903 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:17,904 - sqlalchemy.engine.Engine - INFO - [cached since 21.51s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:17,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:20,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:20,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:20,928 - sqlalchemy.engine.Engine - INFO - [cached since 24.53s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:20,929 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:23,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:23,930 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:23,932 - sqlalchemy.engine.Engine - INFO - [cached since 27.53s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:23,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:26,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:26,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:26,928 - sqlalchemy.engine.Engine - INFO - [cached since 30.53s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:26,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:29,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:29,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:29,932 - sqlalchemy.engine.Engine - INFO - [cached since 33.53s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:29,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:32,922 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:32,924 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:32,924 - sqlalchemy.engine.Engine - INFO - [cached since 36.53s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:32,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:35,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:35,930 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:35,931 - sqlalchemy.engine.Engine - INFO - [cached since 39.53s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:35,932 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:38,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:38,946 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:38,950 - sqlalchemy.engine.Engine - INFO - [cached since 42.55s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:38,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:41,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:41,987 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:41,988 - sqlalchemy.engine.Engine - INFO - [cached since 45.59s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:41,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:45,009 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:45,010 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:45,011 - sqlalchemy.engine.Engine - INFO - [cached since 48.61s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:45,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:48,005 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:48,006 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:48,006 - sqlalchemy.engine.Engine - INFO - [cached since 51.61s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:48,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:51,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:51,019 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:51,020 - sqlalchemy.engine.Engine - INFO - [cached since 54.62s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:51,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:54,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:54,032 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:54,032 - sqlalchemy.engine.Engine - INFO - [cached since 57.63s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:54,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:56,406 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:56,406 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:56:56,407 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 56, 56, 406056))
2025-04-21 15:56:56,408 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:57,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:57,045 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:57,045 - sqlalchemy.engine.Engine - INFO - [cached since 60.65s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:57,048 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:57,258 - root - INFO - 应用程序关闭中...
2025-04-21 15:56:57,258 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:56:57,260 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:56:57,260 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:56:57,260 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:56:57,260 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:56:57,260 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:56:57,261 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:56:57,263 - services.enhanced_scheduler.task_persistence - INFO - 备份 3 个任务到 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155657.json
2025-04-21 15:56:57,263 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:56:57,263 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:56:57,263 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:56:57,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:56:57,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:56:57,264 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:56:57,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:56:57,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:56:57,265 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:56:57,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:56:57,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:56:57,266 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:56:57,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:56:57,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:56:57,266 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:56:57,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:56:57,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:56:57,267 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:56:57,267 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:56:57,267 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:56:57,268 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:56:57,268 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:56:57,268 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:56:57,268 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:56:57,269 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:56:58,452 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:56:58,452 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:56:58,509 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:56:58,562 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:56:58,581 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:56:58,583 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:56:58,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,583 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:56:58,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,584 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:56:58,584 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:58,584 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:56:58,584 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,586 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:56:58,586 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,587 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:56:58,587 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,588 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:56:58,588 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,588 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:56:58,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,589 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:56:58,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,591 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:56:58,591 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,591 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:56:58,591 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,594 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:56:58,594 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,595 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:56:58,595 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,597 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:56:58,597 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:56:58,598 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:58,598 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:56:58,980 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:56:58,981 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:56:58,981 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:56:58,982 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:56:58,982 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:56:58,982 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:56:58,982 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:56:58,982 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:56:58,982 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:56:58,982 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:56:58,982 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:56:58,982 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:56:58,982 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:56:58,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:56:58,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:56:58,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:56:58,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:56:58,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:56:58,984 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:56:58,984 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:56:58,985 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:56:58,986 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:56:58,986 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:56:58,986 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:56:58,986 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:56:58,987 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:56:58,987 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:56:58,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:58,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:56:58,999 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (1, 1)
2025-04-21 15:56:58,999 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:56:59,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,000 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:56:59,001 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:56:59,001 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:56:59,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,003 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:56:59,004 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1000, 2000, 2001)
2025-04-21 15:56:59,005 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,006 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:56:59,007 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155657.json 加载任务，合并后共 8 个任务
2025-04-21 15:56:59,007 - services.enhanced_scheduler.task_persistence - INFO - 已加载 8 个待处理任务
2025-04-21 15:56:59,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,008 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,008 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:59,008 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:56:59,009 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 56, 59, 1096))
2025-04-21 15:56:59,010 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,011 - sqlalchemy.engine.Engine - INFO - [cached since 0.00288s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:56:59,011 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,013 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,013 - sqlalchemy.engine.Engine - INFO - [cached since 0.005424s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:56:59,014 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,014 - sqlalchemy.engine.Engine - INFO - [cached since 0.006351s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:56:59,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,015 - sqlalchemy.engine.Engine - INFO - [cached since 0.007554s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:56:59,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,016 - sqlalchemy.engine.Engine - INFO - [cached since 0.008465s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:56:59,016 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,016 - sqlalchemy.engine.Engine - INFO - [cached since 0.009347s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:56:59,017 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,017 - sqlalchemy.engine.Engine - INFO - [cached since 0.01025s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:56:59,018 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,018 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 04d68bb4-c67f-421a-bc0e-3fff6c236052 (优先级 1) 添加到队列 0
2025-04-21 15:56:59,019 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 04d68bb4-c67f-421a-bc0e-3fff6c236052, 优先级: 1
2025-04-21 15:56:59,019 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e (优先级 1) 添加到队列 0
2025-04-21 15:56:59,019 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:56:59,019 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:56:59,019 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:56:59,021 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 (优先级 1) 添加到队列 0
2025-04-21 15:56:59,021 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:56:59,021 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 (优先级 1) 添加到队列 0
2025-04-21 15:56:59,021 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:56:59,021 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:56:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:56:59,022 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 (优先级 1) 添加到队列 0
2025-04-21 15:56:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:56:59,022 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 (优先级 1) 添加到队列 0
2025-04-21 15:56:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152, 优先级: 1
2025-04-21 15:56:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 8 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:56:59,022 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:56:59,022 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:56:59,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 04d68bb4-c67f-421a-bc0e-3fff6c236052, 优先级: 1
2025-04-21 15:56:59,081 - services.execution.task_executor - DEBUG - 任务 04d68bb4-c67f-421a-bc0e-3fff6c236052 设置超时时间: 3600秒
2025-04-21 15:56:59,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:56:59,084 - services.execution.task_executor - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e 设置超时时间: 3600秒
2025-04-21 15:56:59,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:56:59,086 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:56:59,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:56:59,090 - services.execution.task_executor - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 设置超时时间: 3600秒
2025-04-21 15:56:59,093 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:56:59,093 - services.execution.task_executor - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 设置超时时间: 3600秒
2025-04-21 15:56:59,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,097 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,098 - sqlalchemy.engine.Engine - INFO - [cached since 0.09095s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:56:59,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,099 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,100 - sqlalchemy.engine.Engine - INFO - [cached since 0.09248s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:56:59,103 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:56:59,107 - sqlalchemy.engine.Engine - INFO - [generated in 0.00345s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:56:59,109 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:56:59,112 - sqlalchemy.engine.Engine - INFO - [cached since 0.008721s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:56:59,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,118 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,120 - sqlalchemy.engine.Engine - INFO - [generated in 0.00203s] (datetime.datetime(2025, 4, 21, 15, 56, 59, 117840), datetime.datetime(2025, 4, 21, 15, 56, 59, 118841), '04d68bb4-c67f-421a-bc0e-3fff6c236052')
2025-04-21 15:56:59,122 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:56:59,124 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:56:59,126 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:56:59,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,130 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,132 - sqlalchemy.engine.Engine - INFO - [cached since 0.1246s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:56:59,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,139 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,142 - sqlalchemy.engine.Engine - INFO - [generated in 0.00361s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 56, 59, 139982), '093a7188-727b-44b8-82bb-b9177841895e')
2025-04-21 15:56:59,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:56:59,146 - sqlalchemy.engine.Engine - INFO - [cached since 0.0428s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:56:59,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,152 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,156 - sqlalchemy.engine.Engine - INFO - [cached since 0.1487s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:56:59,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,158 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,159 - sqlalchemy.engine.Engine - INFO - [cached since 0.1516s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:56:59,159 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:56:59,161 - sqlalchemy.engine.Engine - INFO - [cached since 0.05745s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:56:59,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,163 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,163 - sqlalchemy.engine.Engine - INFO - [cached since 0.02437s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 56, 59, 163474), '04d68bb4-c67f-421a-bc0e-3fff6c236052')
2025-04-21 15:56:59,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:56:59,165 - sqlalchemy.engine.Engine - INFO - [cached since 0.06173s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:56:59,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,166 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,166 - sqlalchemy.engine.Engine - INFO - [cached since 0.02784s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 56, 59, 166948), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:56:59,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,168 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,168 - sqlalchemy.engine.Engine - INFO - [cached since 0.02995s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 56, 59, 168944), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:56:59,169 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:56:59,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,171 - 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-21 15:56:59,171 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('c3d11718-0b6e-4a0b-8f96-7a67da37da85', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 56, 59, 169944), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 171950), datetime.datetime(2025, 4, 21, 15, 56, 59, 171950), 0)
2025-04-21 15:56:59,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,172 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:56:59,172 - sqlalchemy.engine.Engine - INFO - [cached since 0.03372s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 56, 59, 172944), '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3')
2025-04-21 15:56:59,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,174 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:56:59,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,177 - sqlalchemy.engine.Engine - INFO - [cached since 0.006253s ago] ('0510f646-4179-4e2c-abd4-c4305c980064', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '04d68bb4-c67f-421a-bc0e-3fff6c236052', datetime.datetime(2025, 4, 21, 15, 56, 59, 175949), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 176941), datetime.datetime(2025, 4, 21, 15, 56, 59, 176941), 0)
2025-04-21 15:56:59,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,181 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:56:59,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,182 - 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-21 15:56:59,182 - sqlalchemy.engine.Engine - INFO - [cached since 0.00992s ago] ('dcc6c0cd-3e9a-4d20-be50-5db2e395d83c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 56, 59, 181104), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 182114), datetime.datetime(2025, 4, 21, 15, 56, 59, 182114), 0)
2025-04-21 15:56:59,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,185 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:56:59,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,186 - 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-21 15:56:59,187 - sqlalchemy.engine.Engine - INFO - [cached since 0.01498s ago] ('5853a2a7-7f5b-4d87-b70a-ff871ef2b17c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 56, 59, 185123), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 186769), datetime.datetime(2025, 4, 21, 15, 56, 59, 186769), 0)
2025-04-21 15:56:59,187 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,188 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:56:59,188 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('c3d11718-0b6e-4a0b-8f96-7a67da37da85',)
2025-04-21 15:56:59,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,190 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:56:59,191 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,192 - 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-21 15:56:59,194 - sqlalchemy.engine.Engine - INFO - [generated in 0.00138s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 192272), 'c3d11718-0b6e-4a0b-8f96-7a67da37da85')
2025-04-21 15:56:59,195 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:56:59,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,196 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:56:59,196 - sqlalchemy.engine.Engine - INFO - [cached since 0.008181s ago] ('dcc6c0cd-3e9a-4d20-be50-5db2e395d83c',)
2025-04-21 15:56:59,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,197 - sqlalchemy.engine.Engine - INFO - [cached since 0.008757s ago] ('0510f646-4179-4e2c-abd4-c4305c980064',)
2025-04-21 15:56:59,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,198 - sqlalchemy.engine.Engine - INFO - [cached since 0.02604s ago] ('6595d985-19b2-4e51-a7d1-8334c9547a62', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 56, 59, 195265), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 197264), datetime.datetime(2025, 4, 21, 15, 56, 59, 197264), 0)
2025-04-21 15:56:59,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,199 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:56:59,199 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,199 - 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-21 15:56:59,199 - sqlalchemy.engine.Engine - INFO - [cached since 0.007008s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 199265), 'dcc6c0cd-3e9a-4d20-be50-5db2e395d83c')
2025-04-21 15:56:59,200 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:56:59,200 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,200 - 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-21 15:56:59,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.008013s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 200265), '0510f646-4179-4e2c-abd4-c4305c980064')
2025-04-21 15:56:59,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,202 - sqlalchemy.engine.Engine - INFO - [cached since 0.01393s ago] ('5853a2a7-7f5b-4d87-b70a-ff871ef2b17c',)
2025-04-21 15:56:59,203 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:56:59,203 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,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-21 15:56:59,203 - sqlalchemy.engine.Engine - INFO - [cached since 0.01125s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 203264), '5853a2a7-7f5b-4d87-b70a-ff871ef2b17c')
2025-04-21 15:56:59,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,205 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:56:59,205 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:56:59,205 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:56:59,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,206 - 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-21 15:56:59,207 - sqlalchemy.engine.Engine - INFO - [cached since 0.03501s ago] ('097e0d47-efac-4fb4-a872-1e1b8eaa2dcf', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 56, 59, 206279), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 206279), datetime.datetime(2025, 4, 21, 15, 56, 59, 206279), 0)
2025-04-21 15:56:59,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,210 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:56:59,210 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:56:59,211 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:56:59,211 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:56:59,211 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:56:59,211 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:56:59,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,212 - sqlalchemy.engine.Engine - INFO - [cached since 0.02451s ago] ('6595d985-19b2-4e51-a7d1-8334c9547a62',)
2025-04-21 15:56:59,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,213 - sqlalchemy.engine.Engine - INFO - [cached since 0.04154s ago] ('bfbb610e-669d-4316-8014-bfb3d33b2e40', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 56, 59, 211686), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 213686), datetime.datetime(2025, 4, 21, 15, 56, 59, 213686), 0)
2025-04-21 15:56:59,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,214 - 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-21 15:56:59,214 - sqlalchemy.engine.Engine - INFO - [cached since 0.04252s ago] ('1b937182-5656-4a50-8029-d5a22a6aae50', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '04d68bb4-c67f-421a-bc0e-3fff6c236052', datetime.datetime(2025, 4, 21, 15, 56, 59, 211686), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 214686), datetime.datetime(2025, 4, 21, 15, 56, 59, 214686), 0)
2025-04-21 15:56:59,214 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,215 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:56:59,215 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,215 - 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-21 15:56:59,215 - sqlalchemy.engine.Engine - INFO - [cached since 0.02343s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 215686), '6595d985-19b2-4e51-a7d1-8334c9547a62')
2025-04-21 15:56:59,215 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,216 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:56:59,216 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:56:59,216 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:56:59,216 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,217 - 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-21 15:56:59,217 - sqlalchemy.engine.Engine - INFO - [cached since 0.04566s ago] ('81589252-bf7b-437a-b40c-6d3e04c4eb01', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 56, 59, 216685), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 217694), datetime.datetime(2025, 4, 21, 15, 56, 59, 217694), 0)
2025-04-21 15:56:59,217 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,219 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 097e0d47-efac-4fb4-a872-1e1b8eaa2dcf
2025-04-21 15:56:59,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,220 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:56:59,220 - sqlalchemy.engine.Engine - INFO - [cached since 0.03231s ago] ('097e0d47-efac-4fb4-a872-1e1b8eaa2dcf',)
2025-04-21 15:56:59,220 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:56:59,221 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,221 - 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-21 15:56:59,221 - sqlalchemy.engine.Engine - INFO - [cached since 0.02922s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 221700), '097e0d47-efac-4fb4-a872-1e1b8eaa2dcf')
2025-04-21 15:56:59,221 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,225 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: bfbb610e-669d-4316-8014-bfb3d33b2e40
2025-04-21 15:56:59,225 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1b937182-5656-4a50-8029-d5a22a6aae50
2025-04-21 15:56:59,226 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,226 - sqlalchemy.engine.Engine - INFO - [cached since 0.03792s ago] ('bfbb610e-669d-4316-8014-bfb3d33b2e40',)
2025-04-21 15:56:59,226 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,227 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:56:59,227 - sqlalchemy.engine.Engine - INFO - [cached since 0.03868s ago] ('1b937182-5656-4a50-8029-d5a22a6aae50',)
2025-04-21 15:56:59,227 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:56:59,227 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,228 - 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-21 15:56:59,228 - sqlalchemy.engine.Engine - INFO - [cached since 0.03553s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 228257), 'bfbb610e-669d-4316-8014-bfb3d33b2e40')
2025-04-21 15:56:59,228 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:56:59,228 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,228 - 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-21 15:56:59,229 - sqlalchemy.engine.Engine - INFO - [cached since 0.0365s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 228257), '1b937182-5656-4a50-8029-d5a22a6aae50')
2025-04-21 15:56:59,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,231 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:56:59,231 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:56:59,231 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:56:59,231 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:56:59,232 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 81589252-bf7b-437a-b40c-6d3e04c4eb01
2025-04-21 15:56:59,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,233 - sqlalchemy.engine.Engine - INFO - [cached since 0.06099s ago] ('8be5e25f-f6b5-47c5-91b0-1df442d39f0d', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 56, 59, 231354), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 56, 59, 232356), datetime.datetime(2025, 4, 21, 15, 56, 59, 232356), 0)
2025-04-21 15:56:59,233 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,233 - sqlalchemy.engine.Engine - INFO - [cached since 0.04556s ago] ('81589252-bf7b-437a-b40c-6d3e04c4eb01',)
2025-04-21 15:56:59,234 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,234 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:56:59,234 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,235 - 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-21 15:56:59,235 - sqlalchemy.engine.Engine - INFO - [cached since 0.04276s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 235354), '81589252-bf7b-437a-b40c-6d3e04c4eb01')
2025-04-21 15:56:59,235 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:56:59,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,238 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:56:59,244 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 8be5e25f-f6b5-47c5-91b0-1df442d39f0d
2025-04-21 15:56:59,245 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:56:59,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:56:59,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-21 15:56:59,246 - sqlalchemy.engine.Engine - INFO - [cached since 0.05835s ago] ('8be5e25f-f6b5-47c5-91b0-1df442d39f0d',)
2025-04-21 15:56:59,247 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:56:59,248 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:56:59,248 - 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-21 15:56:59,249 - sqlalchemy.engine.Engine - INFO - [cached since 0.05659s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 56, 59, 248328), '8be5e25f-f6b5-47c5-91b0-1df442d39f0d')
2025-04-21 15:56:59,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:56:59,255 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:57:59,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:57:59,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:57:59,022 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 57, 59, 20813))
2025-04-21 15:57:59,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:57:59,203 - root - INFO - 应用程序关闭中...
2025-04-21 15:57:59,203 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:57:59,203 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:57:59,203 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:57:59,203 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:57:59,203 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:57:59,204 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:57:59,205 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:57:59,209 - services.enhanced_scheduler.task_persistence - INFO - 备份 3 个任务到 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155759.json
2025-04-21 15:57:59,209 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:57:59,209 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:57:59,209 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:57:59,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:57:59,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:57:59,211 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:57:59,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:57:59,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:57:59,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:57:59,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:57:59,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:57:59,213 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:57:59,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:57:59,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:57:59,216 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:57:59,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:57:59,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:57:59,216 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:57:59,216 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:57:59,216 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:57:59,216 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:57:59,216 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:57:59,217 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:57:59,217 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:57:59,217 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:58:00,437 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:58:00,438 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:58:00,512 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:58:00,561 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:58:00,593 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:58:00,614 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:58:00,614 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,616 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:58:00,616 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,616 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:58:00,617 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,617 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:00,617 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:58:00,617 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,620 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:58:00,620 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,621 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:58:00,622 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,622 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:58:00,624 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,625 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:58:00,625 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:58:00,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:58:00,627 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,627 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:58:00,628 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,628 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:58:00,629 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,629 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:58:00,629 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,630 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:58:00,631 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:00,632 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:00,632 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:58:01,011 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:58:01,014 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:58:01,014 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:58:01,016 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:58:01,019 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:58:01,019 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:58:01,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:58:01,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:58:01,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:58:01,024 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:58:01,026 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:58:01,028 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:58:01,029 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:58:01,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:58:01,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:58:01,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:58:01,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:58:01,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:58:01,037 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:58:01,040 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:58:01,044 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:01,048 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:58:01,052 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:58:01,053 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:58:01,058 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:58:01,062 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:58:01,066 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:58:01,068 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,077 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:58:01,078 - sqlalchemy.engine.Engine - INFO - [generated in 0.00137s] (1, 1)
2025-04-21 15:58:01,084 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:58:01,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,090 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:58:01,092 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:58:01,093 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:58:01,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,101 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:58:01,105 - sqlalchemy.engine.Engine - INFO - [generated in 0.00453s] (1000, 2000, 2001)
2025-04-21 15:58:01,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,114 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:01,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,116 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:58:01,118 - sqlalchemy.engine.Engine - INFO - [generated in 0.00228s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 58, 1, 96288))
2025-04-21 15:58:01,122 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155759.json 加载任务，合并后共 8 个任务
2025-04-21 15:58:01,122 - services.enhanced_scheduler.task_persistence - INFO - 已加载 8 个待处理任务
2025-04-21 15:58:01,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,125 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,125 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:58:01,126 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,127 - sqlalchemy.engine.Engine - INFO - [cached since 0.001936s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:58:01,128 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,128 - sqlalchemy.engine.Engine - INFO - [cached since 0.003118s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:58:01,129 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,132 - sqlalchemy.engine.Engine - INFO - [cached since 0.007241s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:58:01,133 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,133 - sqlalchemy.engine.Engine - INFO - [cached since 0.008692s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:58:01,134 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,135 - sqlalchemy.engine.Engine - INFO - [cached since 0.009928s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:58:01,136 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,136 - sqlalchemy.engine.Engine - INFO - [cached since 0.01133s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:58:01,137 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,137 - sqlalchemy.engine.Engine - INFO - [cached since 0.01233s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:58:01,138 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,139 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 04d68bb4-c67f-421a-bc0e-3fff6c236052 (优先级 1) 添加到队列 0
2025-04-21 15:58:01,140 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 04d68bb4-c67f-421a-bc0e-3fff6c236052, 优先级: 1
2025-04-21 15:58:01,140 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e (优先级 1) 添加到队列 0
2025-04-21 15:58:01,140 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:58:01,140 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:58:01,140 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:58:01,140 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 (优先级 1) 添加到队列 0
2025-04-21 15:58:01,140 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:58:01,141 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 (优先级 1) 添加到队列 0
2025-04-21 15:58:01,141 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:58:01,141 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:58:01,141 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:58:01,141 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 (优先级 1) 添加到队列 0
2025-04-21 15:58:01,142 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:58:01,142 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 (优先级 1) 添加到队列 0
2025-04-21 15:58:01,142 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152, 优先级: 1
2025-04-21 15:58:01,142 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 8 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:58:01,142 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:58:01,142 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:58:01,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 04d68bb4-c67f-421a-bc0e-3fff6c236052, 优先级: 1
2025-04-21 15:58:01,256 - services.execution.task_executor - DEBUG - 任务 04d68bb4-c67f-421a-bc0e-3fff6c236052 设置超时时间: 3600秒
2025-04-21 15:58:01,256 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:58:01,256 - services.execution.task_executor - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e 设置超时时间: 3600秒
2025-04-21 15:58:01,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:58:01,257 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:58:01,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:58:01,258 - services.execution.task_executor - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 设置超时时间: 3600秒
2025-04-21 15:58:01,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:58:01,259 - services.execution.task_executor - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 设置超时时间: 3600秒
2025-04-21 15:58:01,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,260 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,261 - sqlalchemy.engine.Engine - INFO - [cached since 0.1355s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:58:01,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,261 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,261 - sqlalchemy.engine.Engine - INFO - [cached since 0.1361s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:58:01,262 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:01,263 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:01,264 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:01,264 - sqlalchemy.engine.Engine - INFO - [cached since 0.001845s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:01,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,266 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:01,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,267 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:01,267 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:01,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,269 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,269 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 1, 269059), '04d68bb4-c67f-421a-bc0e-3fff6c236052')
2025-04-21 15:58:01,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,269 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,269 - sqlalchemy.engine.Engine - INFO - [cached since 0.1446s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:58:01,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,270 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,270 - sqlalchemy.engine.Engine - INFO - [cached since 0.1456s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:58:01,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,272 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,273 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,273 - sqlalchemy.engine.Engine - INFO - [cached since 0.1484s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:58:01,274 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:01,274 - sqlalchemy.engine.Engine - INFO - [cached since 0.01215s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:01,274 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:01,276 - sqlalchemy.engine.Engine - INFO - [cached since 0.01328s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:01,276 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,276 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,276 - sqlalchemy.engine.Engine - INFO - [cached since 0.00795s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 1, 276790), '093a7188-727b-44b8-82bb-b9177841895e')
2025-04-21 15:58:01,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:01,278 - sqlalchemy.engine.Engine - INFO - [cached since 0.01639s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:01,278 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,280 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,280 - sqlalchemy.engine.Engine - INFO - [cached since 0.01241s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 1, 280856), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:58:01,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,281 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,281 - sqlalchemy.engine.Engine - INFO - [cached since 0.01313s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 1, 281797), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:58:01,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,283 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,287 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:01,287 - sqlalchemy.engine.Engine - INFO - [cached since 0.01904s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 1, 287713), '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3')
2025-04-21 15:58:01,288 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:01,289 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,294 - 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-21 15:58:01,295 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('46abf649-7b12-43fc-87f7-8ec24bfad9bb', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '04d68bb4-c67f-421a-bc0e-3fff6c236052', datetime.datetime(2025, 4, 21, 15, 58, 1, 288719), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 294713), datetime.datetime(2025, 4, 21, 15, 58, 1, 294713), 0)
2025-04-21 15:58:01,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,295 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:01,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,297 - 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-21 15:58:01,297 - sqlalchemy.engine.Engine - INFO - [cached since 0.002884s ago] ('42209a75-06cf-4702-b2d4-4d15214f92cd', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 58, 1, 296201), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 297201), datetime.datetime(2025, 4, 21, 15, 58, 1, 297201), 0)
2025-04-21 15:58:01,298 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,300 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:01,302 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:01,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,303 - 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-21 15:58:01,303 - sqlalchemy.engine.Engine - INFO - [cached since 0.009104s ago] ('f1fb0ffd-a2ff-4157-9373-81422711068a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 58, 1, 302329), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 303331), datetime.datetime(2025, 4, 21, 15, 58, 1, 303331), 0)
2025-04-21 15:58:01,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,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-21 15:58:01,304 - sqlalchemy.engine.Engine - INFO - [cached since 0.01002s ago] ('d58a1723-83ea-4da1-bde2-d7d82383ba47', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 58, 1, 303331), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 304332), datetime.datetime(2025, 4, 21, 15, 58, 1, 304332), 0)
2025-04-21 15:58:01,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,306 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:01,306 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,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-21 15:58:01,307 - sqlalchemy.engine.Engine - INFO - [cached since 0.01286s ago] ('7ff3b1d2-d0d8-4876-90d4-c99a74914028', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 58, 1, 306060), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 307336), datetime.datetime(2025, 4, 21, 15, 58, 1, 307336), 0)
2025-04-21 15:58:01,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,309 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,309 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('46abf649-7b12-43fc-87f7-8ec24bfad9bb',)
2025-04-21 15:58:01,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,310 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:01,310 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,311 - 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-21 15:58:01,311 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 311465), '46abf649-7b12-43fc-87f7-8ec24bfad9bb')
2025-04-21 15:58:01,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,315 - sqlalchemy.engine.Engine - INFO - [cached since 0.006654s ago] ('42209a75-06cf-4702-b2d4-4d15214f92cd',)
2025-04-21 15:58:01,318 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:01,318 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,325 - 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-21 15:58:01,325 - sqlalchemy.engine.Engine - INFO - [cached since 0.01385s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 325465), '42209a75-06cf-4702-b2d4-4d15214f92cd')
2025-04-21 15:58:01,325 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:01,325 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:01,326 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:01,327 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,328 - 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-21 15:58:01,331 - sqlalchemy.engine.Engine - INFO - [cached since 0.03808s ago] ('68bd3216-87f2-42f6-9152-304774d0b13c', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '04d68bb4-c67f-421a-bc0e-3fff6c236052', datetime.datetime(2025, 4, 21, 15, 58, 1, 326801), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 328801), datetime.datetime(2025, 4, 21, 15, 58, 1, 328801), 0)
2025-04-21 15:58:01,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,333 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,334 - sqlalchemy.engine.Engine - INFO - [cached since 0.02538s ago] ('f1fb0ffd-a2ff-4157-9373-81422711068a',)
2025-04-21 15:58:01,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,335 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,335 - sqlalchemy.engine.Engine - INFO - [cached since 0.02692s ago] ('7ff3b1d2-d0d8-4876-90d4-c99a74914028',)
2025-04-21 15:58:01,336 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,337 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,337 - sqlalchemy.engine.Engine - INFO - [cached since 0.02876s ago] ('d58a1723-83ea-4da1-bde2-d7d82383ba47',)
2025-04-21 15:58:01,340 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:01,340 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,340 - 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-21 15:58:01,340 - sqlalchemy.engine.Engine - INFO - [cached since 0.02918s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 340038), 'f1fb0ffd-a2ff-4157-9373-81422711068a')
2025-04-21 15:58:01,341 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:01,341 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,341 - 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-21 15:58:01,341 - sqlalchemy.engine.Engine - INFO - [cached since 0.03079s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 341944), '7ff3b1d2-d0d8-4876-90d4-c99a74914028')
2025-04-21 15:58:01,342 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:01,342 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,342 - 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-21 15:58:01,343 - sqlalchemy.engine.Engine - INFO - [cached since 0.03185s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 342944), 'd58a1723-83ea-4da1-bde2-d7d82383ba47')
2025-04-21 15:58:01,343 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,343 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:01,343 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:01,343 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:01,343 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,345 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 68bd3216-87f2-42f6-9152-304774d0b13c
2025-04-21 15:58:01,345 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,345 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,345 - 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-21 15:58:01,346 - sqlalchemy.engine.Engine - INFO - [cached since 0.05176s ago] ('1f077e7c-8d1e-4cdd-9af4-4357120a7263', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 58, 1, 343943), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 345393), datetime.datetime(2025, 4, 21, 15, 58, 1, 345393), 0)
2025-04-21 15:58:01,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,346 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,346 - sqlalchemy.engine.Engine - INFO - [cached since 0.03801s ago] ('68bd3216-87f2-42f6-9152-304774d0b13c',)
2025-04-21 15:58:01,346 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,354 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:01,354 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,354 - 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-21 15:58:01,354 - sqlalchemy.engine.Engine - INFO - [cached since 0.04355s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 354716), '68bd3216-87f2-42f6-9152-304774d0b13c')
2025-04-21 15:58:01,356 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:01,357 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:01,357 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:01,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,359 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,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-21 15:58:01,360 - sqlalchemy.engine.Engine - INFO - [cached since 0.06551s ago] ('bfb3e49f-06d7-4962-a05b-fcab556dc864', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 58, 1, 357996), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 360001), datetime.datetime(2025, 4, 21, 15, 58, 1, 360001), 0)
2025-04-21 15:58:01,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,361 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:01,361 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:01,361 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:01,361 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,361 - 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-21 15:58:01,365 - sqlalchemy.engine.Engine - INFO - [cached since 0.07071s ago] ('9c728f5c-a27c-4c46-a52a-7adee5e0a5d5', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 58, 1, 361004), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 361999), datetime.datetime(2025, 4, 21, 15, 58, 1, 361999), 0)
2025-04-21 15:58:01,366 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:01,366 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:01,366 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:01,367 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,369 - 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-21 15:58:01,369 - sqlalchemy.engine.Engine - INFO - [cached since 0.07453s ago] ('06c87405-1a83-41ff-9ee7-513c2d77a8af', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 58, 1, 366001), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 1, 369001), datetime.datetime(2025, 4, 21, 15, 58, 1, 369001), 0)
2025-04-21 15:58:01,370 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1f077e7c-8d1e-4cdd-9af4-4357120a7263
2025-04-21 15:58:01,371 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:01,371 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,371 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: bfb3e49f-06d7-4962-a05b-fcab556dc864
2025-04-21 15:58:01,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,372 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,372 - sqlalchemy.engine.Engine - INFO - [cached since 0.06292s ago] ('1f077e7c-8d1e-4cdd-9af4-4357120a7263',)
2025-04-21 15:58:01,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,373 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,373 - sqlalchemy.engine.Engine - INFO - [cached since 0.06413s ago] ('bfb3e49f-06d7-4962-a05b-fcab556dc864',)
2025-04-21 15:58:01,373 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:01,374 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,374 - 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-21 15:58:01,374 - sqlalchemy.engine.Engine - INFO - [cached since 0.06284s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 374265), '1f077e7c-8d1e-4cdd-9af4-4357120a7263')
2025-04-21 15:58:01,375 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:01,375 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,375 - 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-21 15:58:01,376 - sqlalchemy.engine.Engine - INFO - [cached since 0.06419s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 375259), 'bfb3e49f-06d7-4962-a05b-fcab556dc864')
2025-04-21 15:58:01,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,377 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 9c728f5c-a27c-4c46-a52a-7adee5e0a5d5
2025-04-21 15:58:01,377 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,378 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,378 - sqlalchemy.engine.Engine - INFO - [cached since 0.06903s ago] ('9c728f5c-a27c-4c46-a52a-7adee5e0a5d5',)
2025-04-21 15:58:01,378 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:01,379 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,380 - 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-21 15:58:01,380 - sqlalchemy.engine.Engine - INFO - [cached since 0.06856s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 380259), '9c728f5c-a27c-4c46-a52a-7adee5e0a5d5')
2025-04-21 15:58:01,380 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,381 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 06c87405-1a83-41ff-9ee7-513c2d77a8af
2025-04-21 15:58:01,382 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:01,385 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:01,386 - sqlalchemy.engine.Engine - INFO - [cached since 0.07676s ago] ('06c87405-1a83-41ff-9ee7-513c2d77a8af',)
2025-04-21 15:58:01,388 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:01,389 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:01,390 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:01,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-21 15:58:01,395 - sqlalchemy.engine.Engine - INFO - [cached since 0.0834s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 1, 393266), '06c87405-1a83-41ff-9ee7-513c2d77a8af')
2025-04-21 15:58:01,396 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:01,396 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:01,397 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:01,404 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:37,318 - root - INFO - 应用程序关闭中...
2025-04-21 15:58:37,319 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:58:37,319 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:58:37,319 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:58:37,320 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:58:37,320 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:58:37,320 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:58:37,320 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:58:37,324 - services.enhanced_scheduler.task_persistence - INFO - 备份 3 个任务到 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155837.json
2025-04-21 15:58:37,324 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:58:37,324 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:58:37,325 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:58:37,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:58:37,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:58:37,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:58:37,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:58:37,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:58:37,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:58:37,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:58:37,327 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:58:37,327 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:58:37,327 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:58:37,327 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:58:37,327 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:58:37,327 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:58:37,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:58:37,328 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:58:37,328 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:58:37,328 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:58:37,328 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:58:37,328 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:58:37,328 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:58:37,329 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:58:37,329 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:58:38,473 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:58:38,473 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:58:38,527 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:58:38,572 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:58:38,601 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:58:38,621 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:58:38,621 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,621 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:58:38,622 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,622 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:58:38,622 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,624 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:38,624 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:58:38,624 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:58:38,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,629 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:58:38,630 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,632 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:58:38,632 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,633 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:58:38,633 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,634 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:58:38,635 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,635 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:58:38,636 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,637 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:58:38,637 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,639 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:58:38,639 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,640 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:58:38,640 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,642 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:58:38,643 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:58:38,644 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:38,644 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:58:38,977 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:58:38,978 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:58:38,978 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:58:38,978 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:58:38,978 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:58:38,979 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:58:38,979 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:58:38,979 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:58:38,979 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:58:38,979 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:58:38,979 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:58:38,979 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:58:38,980 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:58:38,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:58:38,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:58:38,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:58:38,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:58:38,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:58:38,982 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:58:38,982 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:58:38,983 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:38,984 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:58:38,984 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:58:38,985 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:58:38,985 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:58:38,986 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:58:38,986 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:58:38,987 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:38,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:58:38,996 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (1, 1)
2025-04-21 15:58:38,998 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:58:38,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:38,998 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:58:38,999 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:58:38,999 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:58:38,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,001 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:58:39,001 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (1000, 2000, 2001)
2025-04-21 15:58:39,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,003 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:39,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,005 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:58:39,005 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 58, 38, 999476))
2025-04-21 15:58:39,006 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155837.json 加载任务，合并后共 8 个任务
2025-04-21 15:58:39,006 - services.enhanced_scheduler.task_persistence - INFO - 已加载 8 个待处理任务
2025-04-21 15:58:39,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,008 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,008 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:58:39,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,010 - sqlalchemy.engine.Engine - INFO - [cached since 0.001787s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:58:39,010 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,011 - sqlalchemy.engine.Engine - INFO - [cached since 0.002782s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:58:39,011 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,012 - sqlalchemy.engine.Engine - INFO - [cached since 0.004008s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:58:39,013 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,013 - sqlalchemy.engine.Engine - INFO - [cached since 0.005218s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:58:39,014 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,015 - sqlalchemy.engine.Engine - INFO - [cached since 0.006828s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:58:39,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,016 - sqlalchemy.engine.Engine - INFO - [cached since 0.007987s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:58:39,017 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,017 - sqlalchemy.engine.Engine - INFO - [cached since 0.009345s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:58:39,018 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,018 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 04d68bb4-c67f-421a-bc0e-3fff6c236052 (优先级 1) 添加到队列 0
2025-04-21 15:58:39,018 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 04d68bb4-c67f-421a-bc0e-3fff6c236052, 优先级: 1
2025-04-21 15:58:39,019 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e (优先级 1) 添加到队列 0
2025-04-21 15:58:39,019 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:58:39,019 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 (优先级 1) 添加到队列 0
2025-04-21 15:58:39,019 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:58:39,019 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 (优先级 1) 添加到队列 0
2025-04-21 15:58:39,019 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:58:39,019 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 (优先级 1) 添加到队列 0
2025-04-21 15:58:39,019 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:58:39,019 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:58:39,019 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:58:39,019 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 (优先级 1) 添加到队列 0
2025-04-21 15:58:39,020 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:58:39,020 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 (优先级 1) 添加到队列 0
2025-04-21 15:58:39,020 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152, 优先级: 1
2025-04-21 15:58:39,020 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 8 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:58:39,020 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:58:39,020 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:58:39,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 04d68bb4-c67f-421a-bc0e-3fff6c236052, 优先级: 1
2025-04-21 15:58:39,086 - services.execution.task_executor - DEBUG - 任务 04d68bb4-c67f-421a-bc0e-3fff6c236052 设置超时时间: 3600秒
2025-04-21 15:58:39,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 093a7188-727b-44b8-82bb-b9177841895e, 优先级: 1
2025-04-21 15:58:39,088 - services.execution.task_executor - DEBUG - 任务 093a7188-727b-44b8-82bb-b9177841895e 设置超时时间: 3600秒
2025-04-21 15:58:39,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 优先级: 1
2025-04-21 15:58:39,088 - services.execution.task_executor - DEBUG - 任务 3466a72b-4fa1-483e-9399-475a8ba9acb2 设置超时时间: 3600秒
2025-04-21 15:58:39,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 优先级: 1
2025-04-21 15:58:39,089 - services.execution.task_executor - DEBUG - 任务 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3 设置超时时间: 3600秒
2025-04-21 15:58:39,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 优先级: 1
2025-04-21 15:58:39,092 - services.execution.task_executor - DEBUG - 任务 6d510a6c-ef0c-404d-bb72-360c34030459 设置超时时间: 3600秒
2025-04-21 15:58:39,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,094 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,100 - sqlalchemy.engine.Engine - INFO - [cached since 0.09164s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:58:39,103 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,104 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,104 - sqlalchemy.engine.Engine - INFO - [cached since 0.0961s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:58:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:39,114 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:39,116 - sqlalchemy.engine.Engine - INFO - [cached since 0.002248s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:39,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,117 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:39,118 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,119 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:39,119 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:58:39,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,121 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,121 - sqlalchemy.engine.Engine - INFO - [cached since 0.113s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:58:39,121 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,122 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,122 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 39, 122555), '093a7188-727b-44b8-82bb-b9177841895e')
2025-04-21 15:58:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:39,124 - sqlalchemy.engine.Engine - INFO - [cached since 0.01092s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:39,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,125 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,125 - sqlalchemy.engine.Engine - INFO - [cached since 0.1169s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:58:39,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,127 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,127 - sqlalchemy.engine.Engine - INFO - [cached since 0.119s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:58:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:39,128 - sqlalchemy.engine.Engine - INFO - [cached since 0.0149s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:39,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,129 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,129 - sqlalchemy.engine.Engine - INFO - [cached since 0.007076s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 39, 129488), '04d68bb4-c67f-421a-bc0e-3fff6c236052')
2025-04-21 15:58:39,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,131 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:39,131 - sqlalchemy.engine.Engine - INFO - [cached since 0.01768s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:58:39,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,132 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,132 - sqlalchemy.engine.Engine - INFO - [cached since 0.01008s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 39, 132438), '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3')
2025-04-21 15:58:39,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,134 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,134 - sqlalchemy.engine.Engine - INFO - [cached since 0.01177s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 39, 134449), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:58:39,134 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:39,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,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-21 15:58:39,136 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('4ea5f0c4-879f-4d05-a541-158f506a66e3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 58, 39, 134449), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 136814), datetime.datetime(2025, 4, 21, 15, 58, 39, 136814), 0)
2025-04-21 15:58:39,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,137 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:39,138 - sqlalchemy.engine.Engine - INFO - [cached since 0.01579s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 58, 39, 137822), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:58:39,138 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:39,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,139 - 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-21 15:58:39,139 - sqlalchemy.engine.Engine - INFO - [cached since 0.003561s ago] ('7089e2ac-1dba-4da5-b415-c85430125152', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '04d68bb4-c67f-421a-bc0e-3fff6c236052', datetime.datetime(2025, 4, 21, 15, 58, 39, 138812), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 139903), datetime.datetime(2025, 4, 21, 15, 58, 39, 139903), 0)
2025-04-21 15:58:39,140 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,143 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:39,144 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,144 - 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-21 15:58:39,144 - sqlalchemy.engine.Engine - INFO - [cached since 0.007833s ago] ('e7777b5b-758c-41b0-b995-332dbfce000f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 58, 39, 143294), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 144294), datetime.datetime(2025, 4, 21, 15, 58, 39, 144294), 0)
2025-04-21 15:58:39,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,149 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:39,149 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:58:39,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,150 - 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-21 15:58:39,150 - sqlalchemy.engine.Engine - INFO - [cached since 0.01408s ago] ('97a3fa48-864f-4dec-b35d-44d857bcc917', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 58, 39, 149300), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 150799), datetime.datetime(2025, 4, 21, 15, 58, 39, 150799), 0)
2025-04-21 15:58:39,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,151 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:39,151 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('4ea5f0c4-879f-4d05-a541-158f506a66e3',)
2025-04-21 15:58:39,153 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,153 - 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-21 15:58:39,153 - sqlalchemy.engine.Engine - INFO - [cached since 0.0164s ago] ('4c31c829-3b72-45f2-a035-d6c49d29b6d4', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 58, 39, 150288), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 153085), datetime.datetime(2025, 4, 21, 15, 58, 39, 153085), 0)
2025-04-21 15:58:39,153 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,154 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:39,154 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,155 - 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-21 15:58:39,155 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 155091), '4ea5f0c4-879f-4d05-a541-158f506a66e3')
2025-04-21 15:58:39,156 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,156 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,157 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,157 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:39,157 - sqlalchemy.engine.Engine - INFO - [cached since 0.00542s ago] ('e7777b5b-758c-41b0-b995-332dbfce000f',)
2025-04-21 15:58:39,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,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-21 15:58:39,158 - sqlalchemy.engine.Engine - INFO - [cached since 0.006124s ago] ('7089e2ac-1dba-4da5-b415-c85430125152',)
2025-04-21 15:58:39,159 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:39,159 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,159 - 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-21 15:58:39,159 - sqlalchemy.engine.Engine - INFO - [cached since 0.00427s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 159089), 'e7777b5b-758c-41b0-b995-332dbfce000f')
2025-04-21 15:58:39,160 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:39,160 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,160 - 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-21 15:58:39,160 - sqlalchemy.engine.Engine - INFO - [cached since 0.005351s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 160090), '7089e2ac-1dba-4da5-b415-c85430125152')
2025-04-21 15:58:39,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,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-21 15:58:39,162 - sqlalchemy.engine.Engine - INFO - [cached since 0.01034s ago] ('97a3fa48-864f-4dec-b35d-44d857bcc917',)
2025-04-21 15:58:39,162 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:39,163 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,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-21 15:58:39,163 - sqlalchemy.engine.Engine - INFO - [cached since 0.009027s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 163591), '97a3fa48-864f-4dec-b35d-44d857bcc917')
2025-04-21 15:58:39,164 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:39,165 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:39,168 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:39,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,175 - 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-21 15:58:39,177 - sqlalchemy.engine.Engine - INFO - [cached since 0.04128s ago] ('fa445804-b131-463f-bc6a-6757e7b729c1', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '093a7188-727b-44b8-82bb-b9177841895e', datetime.datetime(2025, 4, 21, 15, 58, 39, 169599), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 175600), datetime.datetime(2025, 4, 21, 15, 58, 39, 175600), 0)
2025-04-21 15:58:39,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,183 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:39,189 - sqlalchemy.engine.Engine - INFO - [cached since 0.03735s ago] ('4c31c829-3b72-45f2-a035-d6c49d29b6d4',)
2025-04-21 15:58:39,193 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:39,195 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:39,197 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:39,199 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,202 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:58:39,204 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,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-21 15:58:39,209 - sqlalchemy.engine.Engine - INFO - [cached since 0.05485s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 205692), '4c31c829-3b72-45f2-a035-d6c49d29b6d4')
2025-04-21 15:58:39,211 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,212 - 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-21 15:58:39,214 - sqlalchemy.engine.Engine - INFO - [cached since 0.07778s ago] ('75a08ef2-8991-44be-a770-991b474ac635', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', datetime.datetime(2025, 4, 21, 15, 58, 39, 198592), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 212677), datetime.datetime(2025, 4, 21, 15, 58, 39, 212677), 0)
2025-04-21 15:58:39,217 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:39,217 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:39,222 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:39,224 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:39,225 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:39,226 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:39,227 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,228 - 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-21 15:58:39,229 - sqlalchemy.engine.Engine - INFO - [cached since 0.09287s ago] ('67e028dd-53cd-4068-8db6-e987ceb0b2c8', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '6d510a6c-ef0c-404d-bb72-360c34030459', datetime.datetime(2025, 4, 21, 15, 58, 39, 223675), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 228686), datetime.datetime(2025, 4, 21, 15, 58, 39, 228686), 0)
2025-04-21 15:58:39,231 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,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-21 15:58:39,233 - sqlalchemy.engine.Engine - INFO - [cached since 0.09732s ago] ('1a1eaf73-c6f9-4336-b9c2-db6c4f29a761', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '04d68bb4-c67f-421a-bc0e-3fff6c236052', datetime.datetime(2025, 4, 21, 15, 58, 39, 227668), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 232670), datetime.datetime(2025, 4, 21, 15, 58, 39, 232670), 0)
2025-04-21 15:58:39,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,238 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: fa445804-b131-463f-bc6a-6757e7b729c1
2025-04-21 15:58:39,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,243 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,249 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:39,251 - sqlalchemy.engine.Engine - INFO - [cached since 0.09964s ago] ('fa445804-b131-463f-bc6a-6757e7b729c1',)
2025-04-21 15:58:39,253 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 75a08ef2-8991-44be-a770-991b474ac635
2025-04-21 15:58:39,254 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,256 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:39,257 - sqlalchemy.engine.Engine - INFO - [cached since 0.1059s ago] ('75a08ef2-8991-44be-a770-991b474ac635',)
2025-04-21 15:58:39,259 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:39,260 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,262 - 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-21 15:58:39,264 - sqlalchemy.engine.Engine - INFO - [cached since 0.1098s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 262680), 'fa445804-b131-463f-bc6a-6757e7b729c1')
2025-04-21 15:58:39,270 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:39,272 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,272 - 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-21 15:58:39,273 - sqlalchemy.engine.Engine - INFO - [cached since 0.1188s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 272684), '75a08ef2-8991-44be-a770-991b474ac635')
2025-04-21 15:58:39,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,277 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:58:39,278 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:58:39,280 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:58:39,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,285 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 67e028dd-53cd-4068-8db6-e987ceb0b2c8
2025-04-21 15:58:39,287 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1a1eaf73-c6f9-4336-b9c2-db6c4f29a761
2025-04-21 15:58:39,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,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-21 15:58:39,291 - sqlalchemy.engine.Engine - INFO - [cached since 0.1397s ago] ('67e028dd-53cd-4068-8db6-e987ceb0b2c8',)
2025-04-21 15:58:39,291 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,292 - 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-21 15:58:39,292 - sqlalchemy.engine.Engine - INFO - [cached since 0.1565s ago] ('549fc4be-15f7-4b1f-97f3-8c0fe91fcfe0', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '3466a72b-4fa1-483e-9399-475a8ba9acb2', datetime.datetime(2025, 4, 21, 15, 58, 39, 280684), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 58, 39, 292677), datetime.datetime(2025, 4, 21, 15, 58, 39, 292677), 0)
2025-04-21 15:58:39,293 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:39,293 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,294 - 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-21 15:58:39,294 - sqlalchemy.engine.Engine - INFO - [cached since 0.1396s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 294591), '67e028dd-53cd-4068-8db6-e987ceb0b2c8')
2025-04-21 15:58:39,295 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:39,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,295 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:39,296 - sqlalchemy.engine.Engine - INFO - [cached since 0.1447s ago] ('1a1eaf73-c6f9-4336-b9c2-db6c4f29a761',)
2025-04-21 15:58:39,297 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,297 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,298 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:39,299 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:39,299 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,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-21 15:58:39,300 - sqlalchemy.engine.Engine - INFO - [cached since 0.1452s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 299590), '1a1eaf73-c6f9-4336-b9c2-db6c4f29a761')
2025-04-21 15:58:39,304 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:39,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,315 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 549fc4be-15f7-4b1f-97f3-8c0fe91fcfe0
2025-04-21 15:58:39,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:39,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:58:39,315 - sqlalchemy.engine.Engine - INFO - [cached since 0.1638s ago] ('549fc4be-15f7-4b1f-97f3-8c0fe91fcfe0',)
2025-04-21 15:58:39,316 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:58:39,316 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:58:39,316 - 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-21 15:58:39,317 - sqlalchemy.engine.Engine - INFO - [cached since 0.1624s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 58, 39, 316768), '549fc4be-15f7-4b1f-97f3-8c0fe91fcfe0')
2025-04-21 15:58:39,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:39,325 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:39,331 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:58:51,133 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 15:58:51,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,134 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:58:51,134 - sqlalchemy.engine.Engine - INFO - [cached since 12.02s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:58:51,136 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 15:58:51,136 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 15:58:51,138 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 15:58:51,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,139 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,141 - sqlalchemy.engine.Engine - INFO - [cached since 12.13s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:58:51,142 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 15:58:51,143 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('977f4df2-567d-43bd-85b5-75b3eee08d8b', <TaskStatus.RUNNING: 1001>)
2025-04-21 15:58:51,144 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 04d68bb4-c67f-421a-bc0e-3fff6c236052, 父任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 15:58:51,144 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 04d68bb4-c67f-421a-bc0e-3fff6c236052
2025-04-21 15:58:51,145 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,145 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,145 - sqlalchemy.engine.Engine - INFO - [cached since 12.14s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052',)
2025-04-21 15:58:51,146 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 15:58:51,147 - sqlalchemy.engine.Engine - INFO - [cached since 0.004671s ago] ('04d68bb4-c67f-421a-bc0e-3fff6c236052', <TaskStatus.RUNNING: 1001>)
2025-04-21 15:58:51,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,149 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,149 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,149 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (datetime.datetime(2025, 4, 21, 15, 58, 51, 148697), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 15, 58, 51, 149696), '04d68bb4-c67f-421a-bc0e-3fff6c236052')
2025-04-21 15:58:51,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,168 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 093a7188-727b-44b8-82bb-b9177841895e, 父任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 15:58:51,168 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 093a7188-727b-44b8-82bb-b9177841895e
2025-04-21 15:58:51,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,169 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,169 - sqlalchemy.engine.Engine - INFO - [cached since 12.16s ago] ('093a7188-727b-44b8-82bb-b9177841895e',)
2025-04-21 15:58:51,170 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 15:58:51,172 - sqlalchemy.engine.Engine - INFO - [cached since 0.02914s ago] ('093a7188-727b-44b8-82bb-b9177841895e', <TaskStatus.RUNNING: 1001>)
2025-04-21 15:58:51,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,174 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,175 - sqlalchemy.engine.Engine - INFO - [cached since 0.02569s ago] (datetime.datetime(2025, 4, 21, 15, 58, 51, 174958), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 15, 58, 51, 174958), '093a7188-727b-44b8-82bb-b9177841895e')
2025-04-21 15:58:51,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,183 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2, 父任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 15:58:51,183 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 3466a72b-4fa1-483e-9399-475a8ba9acb2
2025-04-21 15:58:51,183 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,184 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,184 - sqlalchemy.engine.Engine - INFO - [cached since 12.18s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2',)
2025-04-21 15:58:51,185 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 15:58:51,185 - sqlalchemy.engine.Engine - INFO - [cached since 0.04277s ago] ('3466a72b-4fa1-483e-9399-475a8ba9acb2', <TaskStatus.RUNNING: 1001>)
2025-04-21 15:58:51,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,186 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,187 - sqlalchemy.engine.Engine - INFO - [cached since 0.03789s ago] (datetime.datetime(2025, 4, 21, 15, 58, 51, 186957), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 15, 58, 51, 186957), '3466a72b-4fa1-483e-9399-475a8ba9acb2')
2025-04-21 15:58:51,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,198 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3, 父任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 15:58:51,198 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 44fdbc97-e6ce-4efc-90e6-7b2c709a81d3
2025-04-21 15:58:51,199 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,199 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,199 - sqlalchemy.engine.Engine - INFO - [cached since 12.19s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3',)
2025-04-21 15:58:51,200 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 15:58:51,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.05841s ago] ('44fdbc97-e6ce-4efc-90e6-7b2c709a81d3', <TaskStatus.RUNNING: 1001>)
2025-04-21 15:58:51,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,202 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,203 - sqlalchemy.engine.Engine - INFO - [cached since 0.0536s ago] (datetime.datetime(2025, 4, 21, 15, 58, 51, 202957), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 15, 58, 51, 202957), '44fdbc97-e6ce-4efc-90e6-7b2c709a81d3')
2025-04-21 15:58:51,203 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,212 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 6d510a6c-ef0c-404d-bb72-360c34030459, 父任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 15:58:51,212 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 6d510a6c-ef0c-404d-bb72-360c34030459
2025-04-21 15:58:51,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,213 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,214 - sqlalchemy.engine.Engine - INFO - [cached since 12.21s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459',)
2025-04-21 15:58:51,215 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 15:58:51,215 - sqlalchemy.engine.Engine - INFO - [cached since 0.07292s ago] ('6d510a6c-ef0c-404d-bb72-360c34030459', <TaskStatus.RUNNING: 1001>)
2025-04-21 15:58:51,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,217 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,217 - sqlalchemy.engine.Engine - INFO - [cached since 0.06799s ago] (datetime.datetime(2025, 4, 21, 15, 58, 51, 217474), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 15, 58, 51, 217474), '6d510a6c-ef0c-404d-bb72-360c34030459')
2025-04-21 15:58:51,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,226 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 父任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 15:58:51,229 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 9f808ed8-3551-4f19-bcd0-5a414bc36d54
2025-04-21 15:58:51,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,229 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:58:51,230 - sqlalchemy.engine.Engine - INFO - [cached since 12.22s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:58:51,231 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 15:58:51,231 - sqlalchemy.engine.Engine - INFO - [cached since 0.08854s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54', <TaskStatus.RUNNING: 1001>)
2025-04-21 15:58:51,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,244 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,246 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 15:58:51,246 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (0, datetime.datetime(2025, 4, 21, 15, 58, 51, 246711), 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983')
2025-04-21 15:58:51,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,254 - services.enhanced_scheduler.task_scheduler - INFO - 更新任务定义状态为普通状态: a0734d2a-c7a8-4ae9-99ce-c6cd82355983
2025-04-21 15:58:51,255 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,262 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:58:51,264 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 15:58:51,264 - sqlalchemy.engine.Engine - INFO - [cached since 0.01879s ago] (0, datetime.datetime(2025, 4, 21, 15, 58, 51, 264719), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 15:58:51,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,275 - services.enhanced_scheduler.task_scheduler - INFO - 更新任务定义状态为普通状态: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 15:58:51,277 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 15:58:51,278 - sqlalchemy.engine.Engine - INFO - [cached since 0.03195s ago] (0, datetime.datetime(2025, 4, 21, 15, 58, 51, 277054), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 15:58:51,278 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:58:51,280 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.1478秒
2025-04-21 15:59:39,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:39,023 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:59:39,024 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 59, 39, 19966))
2025-04-21 15:59:39,025 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:39,205 - root - INFO - 应用程序关闭中...
2025-04-21 15:59:39,207 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 15:59:39,207 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 15:59:39,207 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 15:59:39,208 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 15:59:39,208 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 15:59:39,208 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 15:59:39,208 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 15:59:39,210 - services.enhanced_scheduler.task_persistence - INFO - 备份 1 个任务到 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json
2025-04-21 15:59:39,210 - services.enhanced_scheduler.task_persistence - DEBUG - 删除旧备份: D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155546.json
2025-04-21 15:59:39,211 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 15:59:39,211 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 15:59:39,211 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 15:59:39,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 15:59:39,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 15:59:39,211 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 15:59:39,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 15:59:39,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 15:59:39,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 15:59:39,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 15:59:39,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 15:59:39,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 15:59:39,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 15:59:39,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 15:59:39,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 15:59:39,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 15:59:39,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 15:59:39,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 15:59:39,213 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 15:59:39,213 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 15:59:39,213 - root - INFO - 增强版任务调度器已停止
2025-04-21 15:59:39,213 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 15:59:39,213 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 15:59:39,213 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 15:59:39,214 - data.session - INFO - 数据库连接已关闭
2025-04-21 15:59:40,503 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 15:59:40,504 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 15:59:40,566 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 15:59:40,615 - data.session - INFO - 正在初始化数据库...
2025-04-21 15:59:40,655 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 15:59:40,676 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:59:40,676 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,679 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:59:40,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,683 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:59:40,684 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,687 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:40,690 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 15:59:40,691 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,693 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 15:59:40,694 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,696 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 15:59:40,699 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 15:59:40,706 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,707 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 15:59:40,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,712 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 15:59:40,713 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,715 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 15:59:40,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,719 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 15:59:40,721 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,723 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 15:59:40,726 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,727 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 15:59:40,728 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,732 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 15:59:40,736 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 15:59:40,739 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:40,745 - data.session - INFO - 数据库表初始化完成
2025-04-21 15:59:41,126 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 15:59:41,127 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 15:59:41,128 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 15:59:41,129 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 15:59:41,131 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 15:59:41,132 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 15:59:41,135 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 15:59:41,135 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 15:59:41,137 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 15:59:41,138 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 15:59:41,138 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 15:59:41,139 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 15:59:41,139 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 15:59:41,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 15:59:41,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 15:59:41,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 15:59:41,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 15:59:41,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 15:59:41,151 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 15:59:41,152 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 15:59:41,169 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:59:41,179 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 15:59:41,179 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:59:41,181 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 15:59:41,182 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:59:41,182 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 15:59:41,183 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 15:59:41,185 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 15:59:41,197 - sqlalchemy.engine.Engine - INFO - [generated in 0.00140s] (1, 1)
2025-04-21 15:59:41,199 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 15:59:41,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,204 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 15:59:41,205 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 15:59:41,205 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 15:59:41,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,209 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 15:59:41,210 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] (1000, 2000, 2001)
2025-04-21 15:59:41,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,231 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:59:41,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,233 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 15:59:41,233 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 14, 59, 41, 206215))
2025-04-21 15:59:41,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,236 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 3 个任务
2025-04-21 15:59:41,236 - services.enhanced_scheduler.task_persistence - INFO - 已加载 3 个待处理任务
2025-04-21 15:59:41,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,237 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,238 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:59:41,242 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,242 - sqlalchemy.engine.Engine - INFO - [cached since 0.004921s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:59:41,243 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,243 - sqlalchemy.engine.Engine - INFO - [cached since 0.006458s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:59:41,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,246 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b (优先级 1) 添加到队列 0
2025-04-21 15:59:41,246 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:59:41,247 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 (优先级 1) 添加到队列 0
2025-04-21 15:59:41,247 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:59:41,247 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 (优先级 1) 添加到队列 0
2025-04-21 15:59:41,247 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152, 优先级: 1
2025-04-21 15:59:41,248 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 3 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-21 15:59:41,248 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 15:59:41,248 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 15:59:41,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b, 优先级: 1
2025-04-21 15:59:41,354 - services.execution.task_executor - DEBUG - 任务 977f4df2-567d-43bd-85b5-75b3eee08d8b 设置超时时间: 3600秒
2025-04-21 15:59:41,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 优先级: 1
2025-04-21 15:59:41,355 - services.execution.task_executor - DEBUG - 任务 9f808ed8-3551-4f19-bcd0-5a414bc36d54 设置超时时间: 3600秒
2025-04-21 15:59:41,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152, 优先级: 1
2025-04-21 15:59:41,356 - services.execution.task_executor - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 设置超时时间: 3600秒
2025-04-21 15:59:41,357 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,358 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,358 - sqlalchemy.engine.Engine - INFO - [cached since 0.121s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:59:41,359 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,359 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,359 - sqlalchemy.engine.Engine - INFO - [cached since 0.1221s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 15:59:41,360 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:59:41,362 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 15:59:41,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:59:41,366 - sqlalchemy.engine.Engine - INFO - [cached since 0.004304s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:59:41,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,367 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,367 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 15:59:41,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,369 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,369 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 59, 41, 369456), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 15:59:41,370 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,370 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,370 - sqlalchemy.engine.Engine - INFO - [cached since 0.001359s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 59, 41, 370455), '9f808ed8-3551-4f19-bcd0-5a414bc36d54')
2025-04-21 15:59:41,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,371 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,371 - sqlalchemy.engine.Engine - INFO - [cached since 0.1347s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 15:59:41,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:59:41,374 - sqlalchemy.engine.Engine - INFO - [cached since 0.01311s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:59:41,375 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,375 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] (datetime.datetime(2025, 4, 21, 15, 59, 41, 374661), datetime.datetime(2025, 4, 21, 15, 59, 41, 375672), 'c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152')
2025-04-21 15:59:41,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,378 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:59:41,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,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-21 15:59:41,381 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('50ec124f-f0a8-408b-8f88-6540218ba042', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 59, 41, 379572), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 59, 41, 380572), datetime.datetime(2025, 4, 21, 15, 59, 41, 380572), 0)
2025-04-21 15:59:41,381 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,389 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:59:41,390 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,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-21 15:59:41,391 - sqlalchemy.engine.Engine - INFO - [cached since 0.01049s ago] ('0e8adb8e-c4ed-442f-877c-a51214cd381e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9f808ed8-3551-4f19-bcd0-5a414bc36d54', datetime.datetime(2025, 4, 21, 15, 59, 41, 390571), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 59, 41, 390571), datetime.datetime(2025, 4, 21, 15, 59, 41, 390571), 0)
2025-04-21 15:59:41,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,395 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,396 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,396 - sqlalchemy.engine.Engine - INFO - [cached since 0.02734s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 59, 41, 396571), 'c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152')
2025-04-21 15:59:41,396 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,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-21 15:59:41,399 - sqlalchemy.engine.Engine - INFO - [generated in 0.00096s] ('50ec124f-f0a8-408b-8f88-6540218ba042',)
2025-04-21 15:59:41,399 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,403 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:59:41,403 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:59:41,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-21 15:59:41,404 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 59, 41, 404571), '50ec124f-f0a8-408b-8f88-6540218ba042')
2025-04-21 15:59:41,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,406 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,406 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:59:41,407 - sqlalchemy.engine.Engine - INFO - [cached since 0.009081s ago] ('0e8adb8e-c4ed-442f-877c-a51214cd381e',)
2025-04-21 15:59:41,407 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:59:41,408 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:59:41,408 - 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-21 15:59:41,408 - sqlalchemy.engine.Engine - INFO - [cached since 0.00428s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 59, 41, 408646), '0e8adb8e-c4ed-442f-877c-a51214cd381e')
2025-04-21 15:59:41,409 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,410 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:59:41,410 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,411 - 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-21 15:59:41,412 - sqlalchemy.engine.Engine - INFO - [cached since 0.03102s ago] ('2a791bdb-9389-4666-b478-b1ff69423681', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152', datetime.datetime(2025, 4, 21, 15, 59, 41, 410647), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 59, 41, 411648), datetime.datetime(2025, 4, 21, 15, 59, 41, 411648), 0)
2025-04-21 15:59:41,412 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,415 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:59:41,416 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:59:41,416 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 15:59:41,417 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,419 - 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-21 15:59:41,420 - sqlalchemy.engine.Engine - INFO - [cached since 0.03911s ago] ('d814afe1-a04c-4780-bdf2-34430b425808', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 15, 59, 41, 416377), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 59, 41, 419505), datetime.datetime(2025, 4, 21, 15, 59, 41, 419505), 0)
2025-04-21 15:59:41,421 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,421 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:59:41,422 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:59:41,422 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:59:41,423 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,424 - 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-21 15:59:41,424 - sqlalchemy.engine.Engine - INFO - [cached since 0.04321s ago] ('f99df651-b12a-4c8b-b90c-367d7865e9f6', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '9f808ed8-3551-4f19-bcd0-5a414bc36d54', datetime.datetime(2025, 4, 21, 15, 59, 41, 423377), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 59, 41, 424096), datetime.datetime(2025, 4, 21, 15, 59, 41, 424096), 0)
2025-04-21 15:59:41,425 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,428 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,428 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:59:41,428 - sqlalchemy.engine.Engine - INFO - [cached since 0.03022s ago] ('2a791bdb-9389-4666-b478-b1ff69423681',)
2025-04-21 15:59:41,429 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:59:41,430 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:59:41,430 - 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-21 15:59:41,430 - sqlalchemy.engine.Engine - INFO - [cached since 0.02596s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 59, 41, 430108), '2a791bdb-9389-4666-b478-b1ff69423681')
2025-04-21 15:59:41,431 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,434 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: d814afe1-a04c-4780-bdf2-34430b425808
2025-04-21 15:59:41,435 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,436 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:59:41,436 - sqlalchemy.engine.Engine - INFO - [cached since 0.03794s ago] ('d814afe1-a04c-4780-bdf2-34430b425808',)
2025-04-21 15:59:41,437 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:59:41,437 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:59:41,438 - 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-21 15:59:41,438 - sqlalchemy.engine.Engine - INFO - [cached since 0.03357s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 59, 41, 438108), 'd814afe1-a04c-4780-bdf2-34430b425808')
2025-04-21 15:59:41,439 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,440 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: f99df651-b12a-4c8b-b90c-367d7865e9f6
2025-04-21 15:59:41,440 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,441 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:59:41,441 - sqlalchemy.engine.Engine - INFO - [cached since 0.04291s ago] ('f99df651-b12a-4c8b-b90c-367d7865e9f6',)
2025-04-21 15:59:41,442 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:59:41,443 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:59:41,443 - 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-21 15:59:41,443 - sqlalchemy.engine.Engine - INFO - [cached since 0.03889s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 59, 41, 443108), 'f99df651-b12a-4c8b-b90c-367d7865e9f6')
2025-04-21 15:59:41,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,445 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:59:41,445 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:59:41,445 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:59:41,446 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,446 - 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-21 15:59:41,446 - sqlalchemy.engine.Engine - INFO - [cached since 0.06546s ago] ('8ce7b946-216b-44a6-898b-189ad733448d', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152', datetime.datetime(2025, 4, 21, 15, 59, 41, 445108), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 59, 41, 446109), datetime.datetime(2025, 4, 21, 15, 59, 41, 446109), 0)
2025-04-21 15:59:41,447 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,450 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:59:41,450 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 15:59:41,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,452 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,453 - sqlalchemy.engine.Engine - INFO - [cached since 0.2153s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 15:59:41,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,454 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:59:41,455 - sqlalchemy.engine.Engine - INFO - [cached since 0.09376s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:59:41,455 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:59:41,456 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,457 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,458 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:59:41,458 - sqlalchemy.engine.Engine - INFO - [cached since 0.09704s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:59:41,460 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, created_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-21 15:59:41,460 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('f9990706-6bab-4112-ac0c-b3387a45371e', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 15, 59, 41, 459109), None, None, <TaskStatus.QUEUED: 1002>, None, None, None, '977f4df2-567d-43bd-85b5-75b3eee08d8b', '977f4df2-567d-43bd-85b5-75b3eee08d8b', None, None, None, None, 0, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 15, 59, 41, 457111), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, datetime.datetime(2025, 4, 21, 15, 59, 41, 460109), datetime.datetime(2025, 4, 21, 15, 59, 41, 460109), 0)
2025-04-21 15:59:41,462 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,462 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 8ce7b946-216b-44a6-898b-189ad733448d
2025-04-21 15:59:41,463 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59: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-21 15:59:41,464 - sqlalchemy.engine.Engine - INFO - [cached since 0.06565s ago] ('8ce7b946-216b-44a6-898b-189ad733448d',)
2025-04-21 15:59:41,465 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:59:41,465 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:59:41,465 - 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-21 15:59:41,466 - sqlalchemy.engine.Engine - INFO - [cached since 0.06148s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 59, 41, 465240), '8ce7b946-216b-44a6-898b-189ad733448d')
2025-04-21 15:59:41,467 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,470 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,471 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,472 - sqlalchemy.engine.Engine - INFO - [cached since 0.2346s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 15:59:41,473 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,474 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f9990706-6bab-4112-ac0c-b3387a45371e (优先级 1) 添加到队列 0
2025-04-21 15:59:41,475 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,475 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,475 - sqlalchemy.engine.Engine - INFO - [cached since 0.238s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 15:59:41,476 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:59:41,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: f9990706-6bab-4112-ac0c-b3387a45371e, 优先级: 1
2025-04-21 15:59:41,555 - services.execution.task_executor - DEBUG - 任务 f9990706-6bab-4112-ac0c-b3387a45371e 设置超时时间: 3600秒
2025-04-21 15:59:41,556 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,557 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,557 - sqlalchemy.engine.Engine - INFO - [cached since 0.3209s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 15:59:41,559 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 15:59:41,559 - sqlalchemy.engine.Engine - INFO - [cached since 0.1991s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 15:59:41,561 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,561 - sqlalchemy.engine.Engine - INFO - [cached since 0.1863s ago] (datetime.datetime(2025, 4, 21, 15, 59, 41, 560875), datetime.datetime(2025, 4, 21, 15, 59, 41, 561920), 'f9990706-6bab-4112-ac0c-b3387a45371e')
2025-04-21 15:59:41,562 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,570 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,571 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:41,571 - sqlalchemy.engine.Engine - INFO - [cached since 0.2025s ago] ('任务执行中', 1001, datetime.datetime(2025, 4, 21, 15, 59, 41, 571293), 'f9990706-6bab-4112-ac0c-b3387a45371e')
2025-04-21 15:59:41,572 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,580 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 15:59:41,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,581 - 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-21 15:59:41,582 - sqlalchemy.engine.Engine - INFO - [cached since 0.2008s ago] ('36b6eb65-cc94-41e7-9230-3e3036a8f625', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'f9990706-6bab-4112-ac0c-b3387a45371e', datetime.datetime(2025, 4, 21, 15, 59, 41, 580001), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 59, 41, 581020), datetime.datetime(2025, 4, 21, 15, 59, 41, 581020), 0)
2025-04-21 15:59:41,582 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,589 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,590 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 15:59:41,590 - sqlalchemy.engine.Engine - INFO - [cached since 0.1919s ago] ('36b6eb65-cc94-41e7-9230-3e3036a8f625',)
2025-04-21 15:59:41,591 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 15:59:41,591 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 15:59:41,591 - 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-21 15:59:41,591 - sqlalchemy.engine.Engine - INFO - [cached since 0.1869s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 59, 41, 591002), '36b6eb65-cc94-41e7-9230-3e3036a8f625')
2025-04-21 15:59:41,592 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,598 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 15:59:41,598 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 15:59:41,599 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 15:59:41,599 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,600 - 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-21 15:59:41,600 - sqlalchemy.engine.Engine - INFO - [cached since 0.2192s ago] ('3308522c-cbaa-4e86-bd7f-300a5dc1fa7b', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'f9990706-6bab-4112-ac0c-b3387a45371e', datetime.datetime(2025, 4, 21, 15, 59, 41, 599067), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 15, 59, 41, 600047), datetime.datetime(2025, 4, 21, 15, 59, 41, 600047), 0)
2025-04-21 15:59:41,601 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,610 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 3308522c-cbaa-4e86-bd7f-300a5dc1fa7b
2025-04-21 15:59:41,610 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:41,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-21 15:59:41,611 - sqlalchemy.engine.Engine - INFO - [cached since 0.2133s ago] ('3308522c-cbaa-4e86-bd7f-300a5dc1fa7b',)
2025-04-21 15:59:41,612 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 15:59:41,612 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 15:59:41,612 - 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-21 15:59:41,613 - sqlalchemy.engine.Engine - INFO - [cached since 0.2089s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 15, 59, 41, 612750), '3308522c-cbaa-4e86-bd7f-300a5dc1fa7b')
2025-04-21 15:59:41,613 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:41,619 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 15:59:44,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:44,487 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:44,487 - sqlalchemy.engine.Engine - INFO - [cached since 3.25s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 15:59:44,490 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:47,505 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:47,506 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:47,506 - sqlalchemy.engine.Engine - INFO - [cached since 6.269s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 15:59:47,508 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:50,519 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:50,519 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:50,519 - sqlalchemy.engine.Engine - INFO - [cached since 9.283s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 15:59:50,521 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:53,523 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:53,524 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:53,524 - sqlalchemy.engine.Engine - INFO - [cached since 12.29s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 15:59:53,526 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:56,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:56,529 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:56,529 - sqlalchemy.engine.Engine - INFO - [cached since 15.29s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 15:59:56,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 15:59:59,550 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 15:59:59,551 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 15:59:59,551 - sqlalchemy.engine.Engine - INFO - [cached since 18.31s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 15:59:59,554 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:02,560 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:02,561 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:02,564 - sqlalchemy.engine.Engine - INFO - [cached since 21.33s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 16:00:02,566 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:05,590 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:05,591 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:05,591 - sqlalchemy.engine.Engine - INFO - [cached since 24.35s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 16:00:05,592 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:08,596 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:08,597 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:08,597 - sqlalchemy.engine.Engine - INFO - [cached since 27.36s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 16:00:08,598 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,100 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 16:00:10,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:10,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 16:00:10,104 - sqlalchemy.engine.Engine - INFO - [cached since 28.74s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 16:00:10,105 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 16:00:10,105 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 16:00:10,107 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 16:00:10,107 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:10,107 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:10,108 - sqlalchemy.engine.Engine - INFO - [cached since 28.87s ago] ('977f4df2-567d-43bd-85b5-75b3eee08d8b',)
2025-04-21 16:00:10,109 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 16:00:10,109 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('977f4df2-567d-43bd-85b5-75b3eee08d8b', <TaskStatus.RUNNING: 1001>)
2025-04-21 16:00:10,110 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: 9f808ed8-3551-4f19-bcd0-5a414bc36d54, 父任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 16:00:10,111 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 9f808ed8-3551-4f19-bcd0-5a414bc36d54
2025-04-21 16:00:10,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:10,111 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:10,111 - sqlalchemy.engine.Engine - INFO - [cached since 28.87s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54',)
2025-04-21 16:00:10,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 16:00:10,113 - sqlalchemy.engine.Engine - INFO - [cached since 0.003938s ago] ('9f808ed8-3551-4f19-bcd0-5a414bc36d54', <TaskStatus.RUNNING: 1001>)
2025-04-21 16:00:10,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:10,115 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:10,115 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (datetime.datetime(2025, 4, 21, 16, 0, 10, 114928), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 16, 0, 10, 115928), '9f808ed8-3551-4f19-bcd0-5a414bc36d54')
2025-04-21 16:00:10,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,135 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152, 父任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 16:00:10,135 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152
2025-04-21 16:00:10,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:10,136 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:10,136 - sqlalchemy.engine.Engine - INFO - [cached since 28.9s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:00:10,137 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 16:00:10,137 - sqlalchemy.engine.Engine - INFO - [cached since 0.02795s ago] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152', <TaskStatus.RUNNING: 1001>)
2025-04-21 16:00:10,140 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,140 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:10,142 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:10,142 - sqlalchemy.engine.Engine - INFO - [cached since 0.02701s ago] (datetime.datetime(2025, 4, 21, 16, 0, 10, 140697), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 16, 0, 10, 142199), 'c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152')
2025-04-21 16:00:10,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,152 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: f9990706-6bab-4112-ac0c-b3387a45371e, 父任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b
2025-04-21 16:00:10,152 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: f9990706-6bab-4112-ac0c-b3387a45371e
2025-04-21 16:00:10,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:10,153 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:10,154 - sqlalchemy.engine.Engine - INFO - [cached since 28.92s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 16:00:10,157 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 16:00:10,160 - sqlalchemy.engine.Engine - INFO - [cached since 0.05003s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e', <TaskStatus.RUNNING: 1001>)
2025-04-21 16:00:10,160 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:10,165 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:10,165 - sqlalchemy.engine.Engine - INFO - [cached since 0.05031s ago] (datetime.datetime(2025, 4, 21, 16, 0, 10, 165135), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 16, 0, 10, 165135), 'f9990706-6bab-4112-ac0c-b3387a45371e')
2025-04-21 16:00:10,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:10,178 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:10,178 - sqlalchemy.engine.Engine - INFO - [cached since 0.06221s ago] (datetime.datetime(2025, 4, 21, 16, 0, 10, 177113), '任务被取消', 2001, datetime.datetime(2025, 4, 21, 16, 0, 10, 178113), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 16:00:10,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,187 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 16:00:10,187 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (0, datetime.datetime(2025, 4, 21, 16, 0, 10, 187124), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 16:00:10,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:10,200 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0992秒
2025-04-21 16:00:11,285 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 16:00:11,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:11,289 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 16:00:11,289 - sqlalchemy.engine.Engine - INFO - [cached since 29.93s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 16:00:11,292 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 16:00:11,292 - sqlalchemy.engine.Engine - INFO - [cached since 1.186s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 1001)
2025-04-21 16:00:11,293 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 16:00:11,295 - sqlalchemy.engine.Engine - INFO - [cached since 1.108s ago] (0, datetime.datetime(2025, 4, 21, 16, 0, 11, 293028), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 16:00:11,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:11,319 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0347秒
2025-04-21 16:00:11,616 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:11,617 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:11,618 - sqlalchemy.engine.Engine - INFO - [cached since 30.38s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 16:00:11,620 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:11,622 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:11,623 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:11,623 - sqlalchemy.engine.Engine - INFO - [cached since 30.39s ago] ('f9990706-6bab-4112-ac0c-b3387a45371e',)
2025-04-21 16:00:11,624 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:11,626 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:11,628 - 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-21 16:00:11,630 - sqlalchemy.engine.Engine - INFO - [generated in 0.00195s] ('da63b6dc-72bd-43d6-8a82-d815970de74f', 1, '{"success": true, "message": "子任务执行成功", "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "f9990706-6bab-4112-ac0c-b338 ... (19 characters truncated) ...  false, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "f9990706-6bab-4112-ac0c-b3387a45371e", "output": {}}, "taskStatus": 2001}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 16, 0, 11, 628549), datetime.datetime(2025, 4, 21, 16, 0, 11, 628549), 0)
2025-04-21 16:00:11,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:11,641 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:11,642 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 16:00:11,642 - sqlalchemy.engine.Engine - INFO - [cached since 30.24s ago] ('d814afe1-a04c-4780-bdf2-34430b425808',)
2025-04-21 16:00:11,643 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 16:00:11,643 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 16:00:11,644 - 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-21 16:00:11,648 - sqlalchemy.engine.Engine - INFO - [generated in 0.00458s] (datetime.datetime(2025, 4, 21, 16, 0, 11, 643549), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': 'f9990706-6bab-4112-ac0c-b3387a45371e', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': 'f9990706-6bab-4112-ac0c-b3387a45371e', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 16, 0, 11, 644548), 'd814afe1-a04c-4780-bdf2-34430b425808')
2025-04-21 16:00:11,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:11,661 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:11,662 - 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-21 16:00:11,663 - sqlalchemy.engine.Engine - INFO - [cached since 0.03421s ago] ('7fa157d8-b65b-4280-beaf-a94fd42db2a8', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (130 characters truncated) ... lse, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "f9990706-6bab-4112-ac0c-b3387a45371e", "output": {}}, "taskStatus": 2001}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '977f4df2-567d-43bd-85b5-75b3eee08d8b', datetime.datetime(2025, 4, 21, 16, 0, 11, 662550), datetime.datetime(2025, 4, 21, 16, 0, 11, 662550), 0)
2025-04-21 16:00:11,663 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:11,671 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:11,674 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 16:00:11,674 - sqlalchemy.engine.Engine - INFO - [cached since 30.28s ago] ('50ec124f-f0a8-408b-8f88-6540218ba042',)
2025-04-21 16:00:11,675 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 16:00:11,676 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 16:00:11,677 - 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-21 16:00:11,678 - sqlalchemy.engine.Engine - INFO - [cached since 0.03454s ago] (datetime.datetime(2025, 4, 21, 16, 0, 11, 676549), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': 'f9990706-6bab-4112-ac0c-b3387a45371e', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': 'f9990706-6bab-4112-ac0c-b3387a45371e', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 16, 0, 11, 677548), '50ec124f-f0a8-408b-8f88-6540218ba042')
2025-04-21 16:00:11,680 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:11,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:11,694 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:11,696 - sqlalchemy.engine.Engine - INFO - [generated in 0.00199s] (datetime.datetime(2025, 4, 21, 16, 0, 11, 690556), '任务执行成功', 1000, 30323, datetime.datetime(2025, 4, 21, 16, 0, 11, 694557), '977f4df2-567d-43bd-85b5-75b3eee08d8b')
2025-04-21 16:00:11,701 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:11,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 977f4df2-567d-43bd-85b5-75b3eee08d8b, 结果: True
2025-04-21 16:00:18,560 - root - INFO - 应用程序关闭中...
2025-04-21 16:00:18,561 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:00:18,563 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:00:18,563 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:00:18,564 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:00:18,564 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:00:18,564 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:00:18,564 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:00:18,565 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:00:18,565 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:00:18,565 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:00:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:00:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:00:18,566 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:00:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:00:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:00:18,566 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:00:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:00:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:00:18,567 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:00:18,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:00:18,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:00:18,567 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:00:18,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:00:18,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:00:18,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:00:18,568 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:00:18,568 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:00:18,568 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:00:18,568 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:00:18,568 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:00:18,569 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:00:18,569 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:00:21,025 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:00:21,026 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:00:21,737 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:00:21,737 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:00:21,791 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:00:21,836 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:00:21,853 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:00:21,876 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:00:21,877 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,881 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:00:21,883 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,886 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:00:21,887 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:21,890 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:00:21,890 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,894 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:00:21,894 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,896 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:00:21,896 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,896 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:00:21,897 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,900 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:00:21,900 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,902 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:00:21,903 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,904 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:00:21,904 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,905 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:00:21,906 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,907 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:00:21,908 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,909 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:00:21,910 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,912 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:00:21,913 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:00:21,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:21,916 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:00:22,246 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:00:22,247 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:00:22,247 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:00:22,247 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:00:22,247 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:00:22,247 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:00:22,247 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:00:22,248 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:00:22,248 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:00:22,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:00:22,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:00:22,249 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:00:22,249 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:00:22,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:00:22,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:00:22,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:00:22,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:00:22,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:00:22,251 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:00:22,252 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:00:22,263 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:00:22,264 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:00:22,265 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:00:22,266 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:00:22,266 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:00:22,266 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:00:22,267 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:00:22,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:22,276 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:00:22,276 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (1, 1)
2025-04-21 16:00:22,277 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:00:22,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:22,278 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:00:22,279 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:00:22,279 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:00:22,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:22,281 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:00:22,281 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (1000, 2000, 2001)
2025-04-21 16:00:22,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:22,295 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:00:22,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:22,296 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:00:22,296 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 0, 22, 279183))
2025-04-21 16:00:22,297 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:00:22,297 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:00:22,298 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:00:22,299 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:00:22,299 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:00:22,300 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:22,300 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 状态为 2001，不需要恢复
2025-04-21 16:00:22,302 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:00:22,302 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:00:22,302 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:00:22,303 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:01:22,299 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:01:22,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:01:22,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:01:22,301 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:01:22,301 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:01:22,301 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:01:22,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:01:22,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:01:22,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:01:22,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:01:22,302 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:01:22,304 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 1, 22, 300710))
2025-04-21 16:01:22,304 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:01:22,304 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:01:22,304 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:01:22,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:01:22,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:01:22,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:01:22,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:01:22,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:01:22,305 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:01:22,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:01:22,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:01:22,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:01:22,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:01:22,306 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:01:22,306 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:01:22,306 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:01:22,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:01:22,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:01:22,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:01:22,306 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:01:22,306 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:01:22,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:02:22,302 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:02:22,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:02:22,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:02:22,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:02:22,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:02:22,310 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:02:22,311 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:02:22,311 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 2, 22, 301260))
2025-04-21 16:02:22,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:02:22,312 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:02:22,470 - root - INFO - 应用程序关闭中...
2025-04-21 16:02:22,471 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:02:22,471 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:02:22,471 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:02:22,473 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:02:22,473 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:02:22,474 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:02:22,475 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:02:22,475 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:02:22,475 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:02:22,475 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:02:22,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:02:22,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:02:22,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:02:22,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:02:22,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:02:22,478 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-21 16:02:22,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:02:22,479 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:02:22,479 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-21 16:02:22,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:02:22,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:02:22,480 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-21 16:02:22,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:02:22,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:02:22,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-21 16:02:22,482 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:02:22,482 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:02:22,483 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:02:22,483 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:02:22,484 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:02:22,484 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:02:22,485 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:02:23,650 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:02:23,650 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:02:23,713 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:02:23,758 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:02:23,794 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:02:23,796 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:02:23,796 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,796 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:02:23,796 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,796 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:02:23,796 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,797 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:02:23,798 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:02:23,798 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,800 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:02:23,800 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,801 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:02:23,802 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,803 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:02:23,803 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,804 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:02:23,804 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,805 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:02:23,805 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,806 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:02:23,806 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,807 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:02:23,807 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,807 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:02:23,808 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,809 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:02:23,809 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,809 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:02:23,810 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:02:23,810 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:02:23,811 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:02:24,181 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:02:24,181 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:02:24,181 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:02:24,182 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:02:24,182 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:02:24,182 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:02:24,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:02:24,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:02:24,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:02:24,183 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:02:24,183 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:02:24,183 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:02:24,183 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:02:24,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:02:24,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:02:24,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:02:24,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:02:24,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:02:24,186 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:02:24,186 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:02:24,187 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:02:24,188 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:02:24,188 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:02:24,189 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:02:24,189 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:02:24,190 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:02:24,190 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:02:24,191 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:02:24,199 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:02:24,199 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1, 1)
2025-04-21 16:02:24,200 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:02:24,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:02:24,201 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:02:24,201 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:02:24,202 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:02:24,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:02:24,203 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:02:24,204 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1000, 2000, 2001)
2025-04-21 16:02:24,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:02:24,222 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:02:24,223 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:02:24,224 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:02:24,224 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 2, 24, 202577))
2025-04-21 16:02:24,224 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:02:24,225 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:02:24,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:02:24,226 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:02:24,226 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:02:24,227 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:02:24,228 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 状态为 2001，不需要恢复
2025-04-21 16:02:24,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:02:24,228 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:02:24,229 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:02:24,229 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:03:24,236 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:03:24,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:03:24,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:03:24,238 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:03:24,238 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:03:24,239 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:03:24,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:03:24,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:03:24,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:03:24,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:03:24,240 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:03:24,240 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 3, 24, 237687))
2025-04-21 16:03:24,240 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:03:24,242 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:03:24,242 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:03:24,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:03:24,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:03:24,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:03:24,242 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:03:24,242 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:03:24,242 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:03:24,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:03:24,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:03:24,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:03:24,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:03:24,244 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:03:24,244 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:03:24,244 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:03:24,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:03:24,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:03:24,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:03:24,245 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:03:24,245 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:03:24,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:03:24,406 - root - INFO - 应用程序关闭中...
2025-04-21 16:03:24,406 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:03:24,407 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:03:24,407 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:03:24,407 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:03:24,407 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:03:24,408 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:03:24,408 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:03:24,408 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:03:24,408 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:03:24,408 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:03:24,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:03:24,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:03:24,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:03:24,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:03:24,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:03:24,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:03:24,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:03:24,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:03:24,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:03:24,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:03:24,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:03:24,411 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:03:24,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:03:24,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:03:24,411 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:03:24,411 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:03:24,411 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:03:24,411 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:03:24,412 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:03:24,412 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:03:24,412 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:03:24,412 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:03:25,624 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:03:25,624 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:03:25,693 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:03:25,741 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:03:25,760 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:03:25,762 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:03:25,762 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,762 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:03:25,762 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,762 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:03:25,763 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:03:25,763 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:03:25,763 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,764 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:03:25,764 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,765 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:03:25,766 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,766 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:03:25,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,768 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:03:25,768 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,771 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:03:25,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,772 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:03:25,774 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,777 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:03:25,778 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,779 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:03:25,779 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,780 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:03:25,780 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,781 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:03:25,781 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:03:25,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:03:25,790 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:03:26,144 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:03:26,145 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:03:26,146 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:03:26,147 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:03:26,147 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:03:26,147 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:03:26,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:03:26,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:03:26,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:03:26,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:03:26,148 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:03:26,148 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:03:26,149 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:03:26,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:03:26,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:03:26,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:03:26,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:03:26,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:03:26,151 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:03:26,151 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:03:26,152 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:03:26,153 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:03:26,153 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:03:26,154 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:03:26,154 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:03:26,160 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:03:26,160 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:03:26,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:03:26,169 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:03:26,171 - sqlalchemy.engine.Engine - INFO - [generated in 0.00220s] (1, 1)
2025-04-21 16:03:26,173 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:03:26,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:03:26,174 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:03:26,174 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:03:26,175 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:03:26,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:03:26,179 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:03:26,182 - sqlalchemy.engine.Engine - INFO - [generated in 0.00298s] (1000, 2000, 2001)
2025-04-21 16:03:26,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:03:26,191 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:03:26,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:03:26,199 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:03:26,201 - sqlalchemy.engine.Engine - INFO - [generated in 0.00266s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 3, 26, 175625))
2025-04-21 16:03:26,205 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:03:26,206 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:03:26,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:03:26,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:03:26,215 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:03:26,218 - sqlalchemy.engine.Engine - INFO - [generated in 0.00204s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:03:26,220 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 状态为 2001，不需要恢复
2025-04-21 16:03:26,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:03:26,223 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:03:26,224 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:03:26,226 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:04:26,178 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:04:26,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:04:26,181 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:04:26,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:04:26,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:04:26,183 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:04:26,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:04:26,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:04:26,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:04:26,185 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:04:26,185 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:04:26,186 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:04:26,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:04:26,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:04:26,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:04:26,188 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:04:26,188 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:04:26,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:04:26,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:04:26,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:04:26,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:04:26,191 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:04:26,192 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:04:26,192 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:04:26,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:04:26,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:04:26,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:04:26,195 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:04:26,195 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:04:26,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:04:26,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:04:26,241 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:04:26,241 - sqlalchemy.engine.Engine - INFO - [cached since 60.04s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 4, 26, 240230))
2025-04-21 16:04:26,242 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:04:26,397 - root - INFO - 应用程序关闭中...
2025-04-21 16:04:26,398 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:04:26,398 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:04:26,399 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:04:26,399 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:04:26,400 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:04:26,400 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:04:26,401 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:04:26,401 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:04:26,402 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:04:26,402 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:04:26,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:04:26,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:04:26,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:04:26,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:04:26,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:04:26,405 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:04:26,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:04:26,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:04:26,407 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:04:26,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:04:26,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:04:26,408 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:04:26,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:04:26,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:04:26,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:04:26,409 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:04:26,409 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:04:26,409 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:04:26,410 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:04:26,410 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:04:26,410 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:04:26,411 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:04:27,493 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:04:27,494 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:04:27,549 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:04:27,594 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:04:27,629 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:04:27,647 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:04:27,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,649 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:04:27,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,651 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:04:27,651 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:04:27,652 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:04:27,652 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,654 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:04:27,654 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,658 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:04:27,658 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,661 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:04:27,661 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,664 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:04:27,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,664 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:04:27,665 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,665 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:04:27,666 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,666 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:04:27,666 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,667 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:04:27,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,668 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:04:27,668 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,670 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:04:27,670 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:04:27,671 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:04:27,672 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:04:28,010 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:04:28,010 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:04:28,011 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:04:28,011 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:04:28,011 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:04:28,011 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:04:28,011 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:04:28,011 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:04:28,012 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:04:28,012 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:04:28,012 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:04:28,012 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:04:28,013 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:04:28,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:04:28,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:04:28,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:04:28,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:04:28,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:04:28,016 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:04:28,016 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:04:28,017 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:04:28,018 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:04:28,018 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:04:28,019 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:04:28,020 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:04:28,020 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:04:28,020 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:04:28,021 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:04:28,029 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:04:28,030 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] (1, 1)
2025-04-21 16:04:28,031 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:04:28,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:04:28,032 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:04:28,032 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:04:28,033 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:04:28,034 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:04:28,036 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:04:28,036 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1000, 2000, 2001)
2025-04-21 16:04:28,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:04:28,055 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:04:28,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:04:28,056 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:04:28,057 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 4, 28, 33630))
2025-04-21 16:04:28,057 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:04:28,057 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:04:28,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:04:28,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:04:28,058 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:04:28,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:04:28,060 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 状态为 2001，不需要恢复
2025-04-21 16:04:28,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:04:28,060 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:04:28,061 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:04:28,061 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:05:20,528 - root - INFO - 应用程序关闭中...
2025-04-21 16:05:20,529 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:05:20,529 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:05:20,529 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:05:20,529 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:05:20,529 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:05:20,531 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:05:20,531 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:05:20,531 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:05:20,531 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:05:20,531 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:05:20,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:05:20,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:05:20,532 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:05:20,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:05:20,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:05:20,532 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:05:20,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:05:20,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:05:20,533 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:05:20,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:05:20,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:05:20,533 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:05:20,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:05:20,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:05:20,534 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:05:20,534 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:05:20,534 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:05:20,534 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:05:20,534 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:05:20,535 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:05:20,535 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:05:20,535 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:05:21,634 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:05:21,635 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:05:21,702 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:05:21,748 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:05:21,780 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:05:21,798 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:05:21,798 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,798 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:05:21,800 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,800 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:05:21,800 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,802 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:05:21,802 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:05:21,803 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,804 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:05:21,804 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,806 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:05:21,806 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,807 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:05:21,807 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,809 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:05:21,809 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,811 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:05:21,811 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,812 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:05:21,812 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,814 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:05:21,814 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,815 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:05:21,815 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,817 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:05:21,817 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,821 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:05:21,821 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:05:21,823 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:05:21,823 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:05:22,190 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:05:22,190 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:05:22,191 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:05:22,191 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:05:22,191 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:05:22,191 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:05:22,191 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:05:22,192 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:05:22,192 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:05:22,193 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:05:22,193 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:05:22,193 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:05:22,193 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:05:22,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:05:22,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:05:22,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:05:22,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:05:22,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:05:22,196 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:05:22,196 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:05:22,221 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:05:22,224 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:05:22,225 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:05:22,226 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:05:22,227 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:05:22,227 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:05:22,228 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:05:22,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:05:22,244 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:05:22,245 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (1, 1)
2025-04-21 16:05:22,246 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:05:22,246 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:05:22,246 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:05:22,247 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:05:22,247 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:05:22,248 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:05:22,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:05:22,251 - sqlalchemy.engine.Engine - INFO - [generated in 0.00143s] (1000, 2000, 2001)
2025-04-21 16:05:22,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:05:22,254 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:05:22,256 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:05:22,256 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:05:22,257 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 5, 22, 248248))
2025-04-21 16:05:22,258 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:05:22,258 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:05:22,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:05:22,260 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-21 16:05:22,261 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:05:22,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:05:22,262 - services.enhanced_scheduler.task_scheduler - DEBUG - 任务 c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152 状态为 2001，不需要恢复
2025-04-21 16:05:22,262 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:05:22,264 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:05:22,264 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:05:22,264 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:06:22,251 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:06:22,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:06:22,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:06:22,252 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:06:22,252 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:06:22,252 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:06:22,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:06:22,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:06:22,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:06:22,253 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:06:22,253 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:06:22,253 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:06:22,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:06:22,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:06:22,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:06:22,255 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:06:22,255 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:06:22,255 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:06:22,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:06:22,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:06:22,255 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 6, 22, 253863))
2025-04-21 16:06:22,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:06:22,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:06:22,256 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:06:22,256 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:06:22,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:06:22,263 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:06:22,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:06:22,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:06:22,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:06:22,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:06:22,268 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:06:22,268 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:06:22,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:07:22,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:07:22,285 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:07:22,285 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 7, 22, 284017))
2025-04-21 16:07:22,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:07:22,330 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:07:22,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:07:22,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:07:22,331 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:07:22,331 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:07:22,331 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:07:22,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:07:22,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:07:22,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:07:22,334 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:07:22,334 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:07:22,334 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:07:22,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:07:22,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:07:22,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:07:22,335 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:07:22,335 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:07:22,335 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:07:22,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:07:22,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:07:22,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:07:22,336 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:07:22,336 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:07:22,336 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:07:22,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:07:22,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:07:22,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:07:22,336 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:07:22,337 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:07:22,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:08:22,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:08:22,305 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:08:22,308 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 8, 22, 302734))
2025-04-21 16:08:22,312 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:08:22,397 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:08:22,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:08:22,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:08:22,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:08:22,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:08:22,404 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:08:22,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:08:22,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:08:22,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:08:22,413 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:08:22,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:08:22,416 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:08:22,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:08:22,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:08:22,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:08:22,421 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:08:22,423 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:08:22,424 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:08:22,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:08:22,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:08:22,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:08:22,429 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:08:22,429 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:08:22,429 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:08:22,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:08:22,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:08:22,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:08:22,430 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:08:22,431 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:08:22,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:09:22,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:09:22,338 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:09:22,342 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 9, 22, 335477))
2025-04-21 16:09:22,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:09:22,460 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:09:22,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:09:22,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:09:22,466 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:09:22,468 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:09:22,469 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:09:22,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:09:22,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:09:22,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:09:22,472 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:09:22,473 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:09:22,475 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:09:22,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:09:22,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:09:22,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:09:22,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:09:22,479 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:09:22,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:09:22,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:09:22,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:09:22,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:09:22,486 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:09:22,486 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:09:22,489 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:09:22,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:09:22,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:09:22,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:09:22,492 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:09:22,493 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:09:22,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:10:22,358 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:10:22,359 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:10:22,359 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 10, 22, 357571))
2025-04-21 16:10:22,362 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:10:22,513 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:10:22,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:10:22,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:10:22,518 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:10:22,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:10:22,520 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:10:22,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:10:22,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:10:22,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:10:22,527 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:10:22,527 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:10:22,530 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:10:22,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:10:22,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:10:22,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:10:22,533 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:10:22,533 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:10:22,533 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:10:22,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:10:22,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:10:22,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:10:22,535 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:10:22,538 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:10:22,540 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:10:22,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:10:22,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:10:22,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:10:22,545 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:10:22,547 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:10:22,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:11:22,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:11:22,393 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:11:22,394 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 11, 22, 391678))
2025-04-21 16:11:22,396 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:11:22,547 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:11:22,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:11:22,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:11:22,548 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:11:22,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:11:22,549 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:11:22,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:11:22,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:11:22,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:11:22,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:11:22,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:11:22,557 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:11:22,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:11:22,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:11:22,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:11:22,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:11:22,560 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:11:22,560 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:11:22,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:11:22,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:11:22,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:11:22,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:11:22,562 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:11:22,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:11:37,566 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:11:37,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:11:37,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:11:37,569 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:11:37,570 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:11:37,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:12:22,382 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:12:22,384 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:12:22,386 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 12, 22, 381525))
2025-04-21 16:12:22,388 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:12:22,582 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:12:22,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:12:22,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:12:22,586 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:12:22,586 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:12:22,586 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:12:22,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:12:22,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:12:22,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:12:22,588 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:12:22,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:12:22,588 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:12:22,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:12:22,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:12:22,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:12:22,589 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:12:22,589 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:12:22,589 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:12:22,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:12:22,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:12:22,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:12:22,590 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:12:22,590 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:12:22,595 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:12:37,582 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:12:37,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:12:37,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:12:37,583 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:12:37,583 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:12:37,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:13:22,402 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:13:22,403 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:13:22,404 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 13, 22, 401039))
2025-04-21 16:13:22,407 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:13:22,602 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:13:22,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:13:22,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:13:22,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:13:22,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:13:22,607 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:13:22,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:13:22,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:13:22,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:13:22,607 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:13:22,609 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:13:22,610 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:13:22,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:13:22,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:13:22,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:13:22,613 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:13:22,613 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:13:22,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:13:22,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:13:22,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:13:22,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:13:22,615 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:13:22,615 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:13:22,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:13:37,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:13:37,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:13:37,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:13:37,618 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:13:37,620 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:13:37,622 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:14:22,414 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:14:22,416 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:14:22,420 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 14, 22, 413992))
2025-04-21 16:14:22,425 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:14:22,630 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:14:22,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:14:22,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:14:22,631 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:14:22,631 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:14:22,632 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:14:22,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:14:22,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:14:22,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:14:22,633 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:14:22,633 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:14:22,633 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:14:22,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:14:22,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:14:22,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:14:22,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:14:22,634 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:14:22,634 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:14:22,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:14:22,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:14:22,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:14:22,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:14:22,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:14:22,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:14:37,657 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:14:37,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:14:37,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:14:37,658 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:14:37,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:14:37,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:15:22,438 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:15:22,441 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:15:22,445 - sqlalchemy.engine.Engine - INFO - [cached since 600.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 15, 22, 438757))
2025-04-21 16:15:22,449 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:15:22,670 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:15:22,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:15:22,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:15:22,671 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:15:22,671 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:15:22,671 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:15:22,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:15:22,672 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:15:22,672 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:15:22,673 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:15:22,673 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:15:22,673 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:15:22,673 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:15:22,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:15:22,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:15:22,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:15:22,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:15:22,675 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:15:22,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:15:22,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:15:22,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:15:22,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:15:22,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:15:22,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:15:37,701 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:15:37,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:15:37,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:15:37,702 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:15:37,702 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:15:37,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:16:22,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:16:22,455 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:16:22,456 - sqlalchemy.engine.Engine - INFO - [cached since 660.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 16, 22, 454490))
2025-04-21 16:16:22,457 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:16:22,640 - root - INFO - 应用程序关闭中...
2025-04-21 16:16:22,640 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:16:22,640 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:16:22,641 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:16:22,641 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:16:22,641 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:16:22,642 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:16:22,642 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:16:22,642 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:16:22,642 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:16:22,643 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:16:22,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:16:22,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:16:22,643 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:16:22,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:16:22,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:16:22,644 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:16:22,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:16:22,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:16:22,645 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:16:22,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:16:22,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:16:22,645 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:16:22,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:16:22,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:16:22,646 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:16:22,647 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:16:22,647 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:16:22,647 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:16:22,647 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:16:22,648 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:16:22,648 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:16:22,648 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:16:23,879 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:16:23,879 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:16:23,948 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:16:24,006 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:16:24,037 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:16:24,055 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:16:24,055 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,056 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:16:24,056 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,059 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:16:24,059 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:16:24,059 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:16:24,060 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,061 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:16:24,061 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,063 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:16:24,063 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,065 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:16:24,065 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,066 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:16:24,067 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,073 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:16:24,073 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,076 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:16:24,080 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,084 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:16:24,085 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,086 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:16:24,089 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,092 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:16:24,095 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,098 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:16:24,100 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:16:24,107 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:16:24,109 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:16:24,500 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:16:24,504 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:16:24,505 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:16:24,506 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:16:24,507 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:16:24,507 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:16:24,507 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:16:24,507 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:16:24,508 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:16:24,508 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:16:24,508 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:16:24,508 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:16:24,508 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:16:24,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:16:24,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:16:24,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:16:24,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:16:24,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:16:24,517 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:16:24,518 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:16:24,537 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:16:24,539 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:16:24,542 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:16:24,547 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:16:24,549 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:16:24,552 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:16:24,555 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:16:24,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:16:24,566 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:16:24,567 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1, 1)
2025-04-21 16:16:24,568 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:16:24,568 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:16:24,570 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:16:24,572 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:16:24,572 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:16:24,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:16:24,574 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:16:24,575 - sqlalchemy.engine.Engine - INFO - [generated in 0.00175s] (1000, 2000, 2001)
2025-04-21 16:16:24,600 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 16:16:24,601 - services.enhanced_scheduler.task_persistence - ERROR - 加载待处理任务异常: (pymysql.err.OperationalError) (1054, "Unknown column 'vwed_taskrecord.allow_restart_same_location' in 'field list'")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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: (1000, 2000, 2001)]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
2025-04-21 16:16:24,601 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-21 16:16:24,602 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:16:24,602 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:16:24,602 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:16:24,602 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:16:24,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:16:24,603 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 16, 24, 572257))
2025-04-21 16:16:24,604 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 16:16:24,604 - services.enhanced_scheduler.task_scheduler - ERROR - 检查僵尸任务异常: (pymysql.err.OperationalError) (1054, "Unknown column 'vwed_taskrecord.allow_restart_same_location' in 'field list'")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_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, 21, 15, 16, 24, 572257))]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
2025-04-21 16:17:24,514 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:17:24,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:17:24,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:17:24,518 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:17:24,518 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:17:24,520 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:17:24,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:17:24,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:17:24,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:17:24,524 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:17:24,526 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:17:24,528 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:17:24,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:17:24,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:17:24,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:17:24,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:17:24,531 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:17:24,531 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:17:24,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:17:24,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:17:24,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:17:24,532 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:17:24,532 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:17:24,532 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:17:24,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:17:24,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:17:24,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:17:24,533 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:17:24,533 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:17:24,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:17:24,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:17:24,611 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:17:24,612 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 17, 24, 608494))
2025-04-21 16:17:24,613 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 16:17:24,613 - services.enhanced_scheduler.task_scheduler - ERROR - 检查僵尸任务异常: (pymysql.err.OperationalError) (1054, "Unknown column 'vwed_taskrecord.allow_restart_same_location' in 'field list'")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_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, 21, 15, 17, 24, 608494))]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
2025-04-21 16:18:24,602 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:18:24,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:18:24,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:18:24,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:18:24,607 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:18:24,607 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:18:24,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:18:24,609 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:18:24,609 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:18:24,609 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:18:24,609 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:18:24,612 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:18:24,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:18:24,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:18:24,618 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:18:24,618 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:18:24,618 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:18:24,618 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:18:24,619 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:18:24,619 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:18:24,619 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:18:24,619 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:18:24,619 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:18:24,620 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:18:24,621 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:18:24,625 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:18:24,627 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 18, 24, 618075))
2025-04-21 16:18:24,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:18:24,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:18:24,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:18:24,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:18:24,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:18:24,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:18:24,635 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 16:18:24,638 - services.enhanced_scheduler.task_scheduler - ERROR - 检查僵尸任务异常: (pymysql.err.OperationalError) (1054, "Unknown column 'vwed_taskrecord.allow_restart_same_location' in 'field list'")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_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, 21, 15, 18, 24, 618075))]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
2025-04-21 16:18:48,530 - root - INFO - 应用程序关闭中...
2025-04-21 16:18:48,530 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:18:48,530 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:18:48,531 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:18:48,532 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:18:48,532 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:18:48,533 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:18:48,533 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:18:48,533 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:18:48,534 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:18:48,534 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:18:48,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:18:48,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:18:48,535 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:18:48,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:18:48,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:18:48,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:18:48,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:18:48,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:18:48,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:18:48,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:18:48,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:18:48,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:18:48,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:18:48,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:18:48,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:18:48,537 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:18:48,537 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:18:48,537 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:18:48,538 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:18:48,538 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:18:48,538 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:18:48,538 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:18:49,749 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:18:49,750 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:18:49,807 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:18:49,854 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:18:49,892 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:18:49,915 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:18:49,915 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,916 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:18:49,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,917 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:18:49,917 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:18:49,918 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:18:49,918 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,920 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:18:49,920 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,921 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:18:49,921 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,922 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:18:49,922 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,925 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:18:49,926 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,928 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:18:49,928 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,932 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:18:49,932 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,933 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:18:49,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,936 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:18:49,937 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:18:49,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,941 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:18:49,941 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:18:49,943 - 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 '任务定义版本', 
	created_on DATETIME COMMENT '创建时间', 
	ended_on DATETIME 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 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 NOT NULL COMMENT '任务下达时间', 
	source_client_info TEXT COMMENT '客户端设备信息（用户代理、浏览器、操作系统等）', 
	source_remarks TEXT COMMENT '任务来源备注信息', 
	allow_restart_same_location BOOL COMMENT '运行状态时相同地址是否可再次启动该任务', 
	created_at DATETIME COMMENT '创建时间', 
	updated_at DATETIME COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-21 16:18:49,944 - sqlalchemy.engine.Engine - INFO - [no key 0.00061s] {}
2025-04-21 16:18:50,009 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:18:50,012 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:18:50,374 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:18:50,374 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:18:50,374 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:18:50,374 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:18:50,375 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:18:50,375 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:18:50,375 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:18:50,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:18:50,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:18:50,377 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:18:50,378 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:18:50,378 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:18:50,378 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:18:50,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:18:50,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:18:50,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:18:50,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:18:50,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:18:50,381 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:18:50,381 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:18:50,400 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:18:50,403 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:18:50,406 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:18:50,411 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:18:50,412 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:18:50,413 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:18:50,413 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:18:50,414 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:18:50,423 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:18:50,425 - sqlalchemy.engine.Engine - INFO - [generated in 0.00234s] (1, 1)
2025-04-21 16:18:50,428 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:18:50,428 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:18:50,431 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:18:50,432 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:18:50,432 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:18:50,434 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:18:50,439 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:18:50,442 - sqlalchemy.engine.Engine - INFO - [generated in 0.00268s] (1000, 2000, 2001)
2025-04-21 16:18:50,461 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:18:50,462 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:18:50,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:18:50,472 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:18:50,474 - sqlalchemy.engine.Engine - INFO - [generated in 0.00154s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 18, 50, 434667))
2025-04-21 16:18:50,475 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:18:50,475 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:18:50,476 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:18:50,477 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:18:50,477 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:18:50,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:18:50,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:18:50,479 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:18:50,481 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:18:50,483 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:19:50,378 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:19:50,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:19:50,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:19:50,380 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:19:50,380 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:19:50,380 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:19:50,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:19:50,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:19:50,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:19:50,381 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:19:50,381 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:19:50,381 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:19:50,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:19:50,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:19:50,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:19:50,381 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:19:50,381 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:19:50,382 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:19:50,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:19:50,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:19:50,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:19:50,382 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:19:50,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:19:50,382 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:19:50,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:19:50,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:19:50,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:19:50,382 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:19:50,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:19:50,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:19:50,472 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:19:50,475 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:19:50,475 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 19, 50, 471455))
2025-04-21 16:19:50,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:20:50,409 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:20:50,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:20:50,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:20:50,410 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:20:50,411 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:20:50,411 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:20:50,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:20:50,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:20:50,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:20:50,411 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:20:50,412 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:20:50,412 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:20:50,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:20:50,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:20:50,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:20:50,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:20:50,412 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:20:50,412 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:20:50,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:20:50,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:20:50,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:20:50,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:20:50,412 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:20:50,412 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:20:50,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:20:50,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:20:50,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:20:50,414 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:20:50,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:20:50,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:20:50,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:20:50,487 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:20:50,488 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 20, 50, 486058))
2025-04-21 16:20:50,490 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:21:50,451 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:21:50,452 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:21:50,452 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:21:50,453 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:21:50,453 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:21:50,453 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:21:50,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:21:50,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:21:50,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:21:50,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:21:50,454 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:21:50,454 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:21:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:21:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:21:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:21:50,456 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:21:50,456 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:21:50,456 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:21:50,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:21:50,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:21:50,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:21:50,456 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:21:50,456 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:21:50,456 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:21:50,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:21:50,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:21:50,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:21:50,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:21:50,459 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:21:50,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:21:50,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:21:50,496 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:21:50,496 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 21, 50, 495834))
2025-04-21 16:21:50,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:21:50,558 - root - INFO - 应用程序关闭中...
2025-04-21 16:21:50,558 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:21:50,558 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:21:50,558 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:21:50,558 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:21:50,560 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:21:50,560 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:21:50,560 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:21:50,560 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:21:50,560 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:21:50,560 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:21:50,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:21:50,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:21:50,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:21:50,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:21:50,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:21:50,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:21:50,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:21:50,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:21:50,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:21:50,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:21:50,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:21:50,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:21:50,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:21:50,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:21:50,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:21:50,561 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:21:50,561 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:21:50,561 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:21:50,561 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:21:50,561 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:21:50,562 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:21:50,562 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:21:51,895 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:21:51,895 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:21:51,960 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:21:52,013 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:21:52,048 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:21:52,068 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:21:52,069 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,071 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:21:52,073 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,075 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:21:52,078 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:21:52,082 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:21:52,082 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,083 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:21:52,085 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,087 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:21:52,087 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,090 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:21:52,092 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,095 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:21:52,095 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,099 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:21:52,099 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,106 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:21:52,109 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,114 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:21:52,116 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,121 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:21:52,124 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,129 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:21:52,131 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,134 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:21:52,135 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:21:52,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:21:52,144 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:21:52,508 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:21:52,510 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:21:52,512 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:21:52,514 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:21:52,515 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:21:52,515 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:21:52,516 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:21:52,516 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:21:52,516 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:21:52,516 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:21:52,516 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:21:52,516 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:21:52,517 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:21:52,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:21:52,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:21:52,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:21:52,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:21:52,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:21:52,519 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:21:52,519 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:21:52,521 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:21:52,521 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:21:52,522 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:21:52,522 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:21:52,522 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:21:52,523 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:21:52,523 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:21:52,523 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:21:52,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:21:52,533 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (1, 1)
2025-04-21 16:21:52,533 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:21:52,534 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:21:52,534 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:21:52,534 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:21:52,535 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:21:52,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:21:52,537 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:21:52,537 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (1000, 2000, 2001)
2025-04-21 16:21:52,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:21:52,539 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:21:52,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:21:52,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:21:52,541 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 21, 52, 535968))
2025-04-21 16:21:52,541 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:21:52,542 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:21:52,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:21:52,543 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:21:52,544 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:21:52,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:21:52,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:21:52,546 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:21:52,546 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:21:52,546 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:22:52,543 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:22:52,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:22:52,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:22:52,547 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:22:52,547 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:22:52,547 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:22:52,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:22:52,548 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:22:52,548 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 22, 52, 543011))
2025-04-21 16:22:52,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:22:52,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:22:52,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:22:52,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:22:52,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:22:52,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:22:52,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:22:52,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:22:52,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:22:52,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:22:52,551 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:22:52,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:22:52,551 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:22:52,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:22:52,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:22:52,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:22:52,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:22:52,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:22:52,552 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:22:52,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:22:52,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:22:52,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:22:52,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:22:52,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:22:52,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:22:52,730 - root - INFO - 应用程序关闭中...
2025-04-21 16:22:52,730 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:22:52,730 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:22:52,731 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:22:52,731 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:22:52,731 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:22:52,731 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:22:52,731 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:22:52,731 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:22:52,731 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:22:52,731 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:22:52,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:22:52,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:22:52,733 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:22:52,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:22:52,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:22:52,734 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:22:52,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:22:52,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:22:52,734 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:22:52,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:22:52,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:22:52,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:22:52,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:22:52,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:22:52,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:22:52,735 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:22:52,735 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:22:52,735 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:22:52,735 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:22:52,736 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:22:52,736 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:22:52,736 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:22:54,093 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:22:54,094 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:22:54,157 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:22:54,212 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:22:54,249 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:22:54,251 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:22:54,251 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,252 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:22:54,252 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,252 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:22:54,252 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:22:54,253 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:22:54,253 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,254 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:22:54,255 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,256 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:22:54,256 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,258 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:22:54,258 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,259 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:22:54,260 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,262 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:22:54,263 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,264 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:22:54,266 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,267 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:22:54,267 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,268 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:22:54,268 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:22:54,270 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,270 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:22:54,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:22:54,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:22:54,273 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:22:54,636 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:22:54,636 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:22:54,636 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:22:54,636 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:22:54,637 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:22:54,637 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:22:54,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:22:54,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:22:54,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:22:54,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:22:54,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:22:54,637 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:22:54,638 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:22:54,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:22:54,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:22:54,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:22:54,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:22:54,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:22:54,639 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:22:54,640 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:22:54,663 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:22:54,664 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:22:54,665 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:22:54,665 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:22:54,665 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:22:54,666 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:22:54,666 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:22:54,667 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:22:54,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:22:54,681 - sqlalchemy.engine.Engine - INFO - [generated in 0.00173s] (1, 1)
2025-04-21 16:22:54,682 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:22:54,683 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:22:54,684 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:22:54,684 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:22:54,684 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:22:54,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:22:54,689 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:22:54,690 - sqlalchemy.engine.Engine - INFO - [generated in 0.00130s] (1000, 2000, 2001)
2025-04-21 16:22:54,694 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:22:54,699 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:22:54,703 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:22:54,707 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:22:54,708 - sqlalchemy.engine.Engine - INFO - [generated in 0.00154s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 22, 54, 685628))
2025-04-21 16:22:54,709 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:22:54,711 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:22:54,712 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:22:54,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:22:54,716 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:22:54,720 - sqlalchemy.engine.Engine - INFO - [generated in 0.00418s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:22:54,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:22:54,726 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:22:54,726 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:22:54,727 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:23:54,688 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:23:54,689 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:23:54,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:23:54,690 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:23:54,691 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:23:54,691 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:23:54,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:23:54,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:23:54,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:23:54,691 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:23:54,691 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:23:54,691 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:23:54,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:23:54,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:23:54,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:23:54,692 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:23:54,692 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:23:54,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:23:54,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:23:54,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:23:54,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:23:54,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:23:54,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:23:54,693 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:23:54,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:23:54,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:23:54,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:23:54,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:23:54,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:23:54,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:23:54,736 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:23:54,737 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:23:54,737 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 23, 54, 735655))
2025-04-21 16:23:54,739 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:23:54,798 - root - INFO - 应用程序关闭中...
2025-04-21 16:23:54,798 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:23:54,798 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:23:54,798 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:23:54,798 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:23:54,799 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:23:54,799 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:23:54,799 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:23:54,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:23:54,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:23:54,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:23:54,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:23:54,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:23:54,801 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:23:54,801 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:23:54,802 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:23:54,802 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:23:54,802 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:23:54,802 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:23:54,802 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:23:54,803 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:23:54,803 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:23:56,068 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:23:56,069 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:23:56,139 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:23:56,186 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:23:56,211 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:23:56,238 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:23:56,239 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,240 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:23:56,240 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,241 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:23:56,242 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:23:56,242 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:23:56,243 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,244 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:23:56,244 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,245 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:23:56,245 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,246 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:23:56,246 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,247 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:23:56,248 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,249 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:23:56,249 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,250 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:23:56,250 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,251 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:23:56,251 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,252 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:23:56,252 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,253 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:23:56,255 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,256 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:23:56,257 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:23:56,258 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:23:56,258 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:23:56,603 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:23:56,604 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:23:56,604 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:23:56,604 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:23:56,604 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:23:56,604 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:23:56,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:23:56,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:23:56,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:23:56,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:23:56,606 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:23:56,606 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:23:56,606 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:23:56,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:23:56,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:23:56,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:23:56,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:23:56,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:23:56,608 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:23:56,608 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:23:56,629 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:23:56,630 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:23:56,631 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:23:56,632 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:23:56,632 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:23:56,633 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:23:56,633 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:23:56,634 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:23:56,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:23:56,643 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (1, 1)
2025-04-21 16:23:56,646 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:23:56,646 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:23:56,647 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:23:56,649 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:23:56,649 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:23:56,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:23:56,652 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:23:56,652 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1000, 2000, 2001)
2025-04-21 16:23:56,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:23:56,654 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:23:56,654 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:23:56,655 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:23:56,656 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 23, 56, 649256))
2025-04-21 16:23:56,656 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:23:56,656 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:23:56,657 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:23:56,657 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:23:56,657 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:23:56,658 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:23:56,659 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:23:56,659 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:23:56,659 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:23:56,659 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:24:56,644 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:24:56,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:24:56,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:24:56,646 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:24:56,646 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:24:56,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:24:56,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:24:56,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:24:56,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:24:56,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:24:56,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:24:56,648 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:24:56,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:24:56,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:24:56,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:24:56,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:24:56,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:24:56,648 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:24:56,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:24:56,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:24:56,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:24:56,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:24:56,649 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:24:56,649 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:24:56,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:24:56,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:24:56,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:24:56,650 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:24:56,651 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:24:56,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:24:56,659 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:24:56,660 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:24:56,660 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 24, 56, 658541))
2025-04-21 16:24:56,661 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:24:56,863 - root - INFO - 应用程序关闭中...
2025-04-21 16:24:56,864 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:24:56,864 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:24:56,864 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:24:56,864 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:24:56,865 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:24:56,865 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:24:56,865 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:24:56,865 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:24:56,865 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:24:56,866 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:24:56,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:24:56,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:24:56,866 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:24:56,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:24:56,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:24:56,867 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:24:56,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:24:56,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:24:56,868 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:24:56,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:24:56,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:24:56,868 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:24:56,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:24:56,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:24:56,869 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:24:56,870 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:24:56,870 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:24:56,870 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:24:56,871 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:24:56,872 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:24:56,872 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:24:56,872 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:24:58,102 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:24:58,103 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:24:58,171 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:24:58,217 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:24:58,241 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:24:58,266 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:24:58,267 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,267 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:24:58,267 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,268 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:24:58,268 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,268 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:24:58,268 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:24:58,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,270 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:24:58,270 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,272 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:24:58,273 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,273 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:24:58,274 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,275 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:24:58,275 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,275 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:24:58,276 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,276 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:24:58,276 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,278 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:24:58,278 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,279 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:24:58,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,280 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:24:58,280 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,281 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:24:58,281 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:24:58,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:24:58,282 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:24:58,627 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:24:58,627 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:24:58,628 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:24:58,628 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:24:58,628 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:24:58,629 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:24:58,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:24:58,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:24:58,630 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:24:58,630 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:24:58,630 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:24:58,631 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:24:58,631 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:24:58,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:24:58,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:24:58,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:24:58,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:24:58,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:24:58,640 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:24:58,641 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:24:58,646 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:24:58,648 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:24:58,648 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:24:58,649 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:24:58,649 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:24:58,650 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:24:58,651 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:24:58,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:24:58,660 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:24:58,661 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (1, 1)
2025-04-21 16:24:58,663 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:24:58,664 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:24:58,666 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:24:58,667 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:24:58,667 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:24:58,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:24:58,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:24:58,671 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] (1000, 2000, 2001)
2025-04-21 16:24:58,673 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:24:58,677 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:24:58,677 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:24:58,677 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:24:58,679 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 24, 58, 667282))
2025-04-21 16:24:58,680 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:24:58,681 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:24:58,682 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:24:58,682 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:24:58,683 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:24:58,683 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:24:58,683 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:24:58,686 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:24:58,686 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:24:58,686 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:25:58,676 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:25:58,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:25:58,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:25:58,681 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:25:58,683 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:25:58,683 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:25:58,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:25:58,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:25:58,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:25:58,690 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:25:58,691 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:25:58,692 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 25, 58, 677341))
2025-04-21 16:25:58,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:25:58,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:25:58,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:25:58,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:25:58,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:25:58,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:25:58,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:25:58,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:25:58,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:25:58,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:25:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:25:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:25:58,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:25:58,696 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:25:58,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:25:58,696 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:25:58,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:25:58,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:25:58,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:25:58,697 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:25:58,698 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:25:58,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:26:58,719 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:26:58,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:26:58,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:26:58,720 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:26:58,720 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:26:58,720 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:26:58,720 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:26:58,720 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:26:58,721 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 26, 58, 718916))
2025-04-21 16:26:58,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:26:58,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:26:58,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:26:58,721 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:26:58,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:26:58,722 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:26:58,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:26:58,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:26:58,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:26:58,723 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:26:58,724 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:26:58,726 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:26:58,728 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:26:58,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:26:58,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:26:58,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:26:58,734 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:26:58,735 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:26:58,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:26:58,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:26:58,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:26:58,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:26:58,743 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:26:58,745 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:26:58,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:27:58,755 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:27:58,759 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:27:58,761 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 27, 58, 754568))
2025-04-21 16:27:58,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:27:58,785 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:27:58,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:27:58,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:27:58,786 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:27:58,786 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:27:58,786 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:27:58,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:27:58,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:27:58,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:27:58,786 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:27:58,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:27:58,787 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:27:58,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:27:58,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:27:58,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:27:58,787 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:27:58,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:27:58,787 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:27:58,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:27:58,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:27:58,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:27:58,788 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:27:58,788 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:27:58,788 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:27:58,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:27:58,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:27:58,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:27:58,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:27:58,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:27:58,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:28:58,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:28:58,787 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:28:58,787 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 28, 58, 783837))
2025-04-21 16:28:58,788 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:28:58,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:28:58,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:28:58,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:28:58,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:28:58,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:28:58,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:28:58,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:28:58,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:28:58,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:28:58,791 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:28:58,791 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:28:58,792 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:28:58,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:28:58,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:28:58,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:28:58,793 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:28:58,794 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:28:58,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:29:13,809 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:29:13,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:29:13,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:29:13,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:29:13,810 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:29:13,810 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:29:13,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:29:13,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:29:13,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:29:13,810 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:29:13,810 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:29:13,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:29:58,805 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:29:58,807 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:29:58,808 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 29, 58, 805008))
2025-04-21 16:29:58,809 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:29:58,836 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:29:58,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:29:58,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:29:58,841 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:29:58,842 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:29:58,842 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:29:58,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:29:58,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:29:58,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:29:58,846 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:29:58,846 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:29:58,846 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:29:58,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:29:58,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:29:58,851 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:29:58,851 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:29:58,852 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:29:58,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:30:13,855 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:30:13,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:30:13,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:30:13,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:30:13,861 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:30:13,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:30:13,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:30:13,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:30:13,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:30:13,869 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:30:13,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:30:13,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:30:58,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:30:58,794 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:30:58,794 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 30, 58, 792059))
2025-04-21 16:30:58,797 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:30:58,901 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:30:58,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:30:58,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:30:58,902 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:30:58,902 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:30:58,902 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:30:58,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:30:58,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:30:58,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:30:58,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:30:58,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:30:58,903 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:30:58,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:30:58,904 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:30:58,904 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:30:58,904 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:30:58,904 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:30:58,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:30:59,009 - root - INFO - 应用程序关闭中...
2025-04-21 16:30:59,010 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:30:59,011 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:30:59,011 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:30:59,012 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:30:59,012 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:30:59,013 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:30:59,013 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:30:59,014 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:30:59,014 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:30:59,014 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:30:59,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:30:59,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:30:59,015 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:30:59,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:30:59,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:30:59,016 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 3
2025-04-21 16:30:59,017 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:30:59,017 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:30:59,017 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 2
2025-04-21 16:30:59,017 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:30:59,018 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:30:59,018 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 1
2025-04-21 16:30:59,018 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:30:59,018 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:30:59,019 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 0
2025-04-21 16:30:59,019 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:30:59,019 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:30:59,020 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:30:59,020 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:30:59,021 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:30:59,021 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:30:59,022 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:31:00,450 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:31:00,450 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:31:00,510 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:31:00,569 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:31:00,599 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:31:00,619 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:31:00,621 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,623 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:31:00,625 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,629 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:31:00,632 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,635 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:31:00,635 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:31:00,635 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,637 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:31:00,637 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,638 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:31:00,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,645 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:31:00,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,652 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:31:00,654 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,655 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:31:00,656 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,656 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:31:00,657 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,659 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:31:00,659 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,664 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:31:00,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,665 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:31:00,666 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,666 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:31:00,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:31:00,668 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:31:00,669 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:31:01,047 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:31:01,048 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:31:01,050 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:31:01,052 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:31:01,054 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:31:01,056 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:31:01,058 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:31:01,060 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:31:01,062 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:31:01,064 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:31:01,065 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:31:01,067 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:31:01,068 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:31:01,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:31:01,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:31:01,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:31:01,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:31:01,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:31:01,072 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:31:01,072 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:31:01,074 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:31:01,075 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:31:01,076 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:31:01,082 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:31:01,083 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:31:01,084 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:31:01,084 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:31:01,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:31:01,094 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:31:01,095 - sqlalchemy.engine.Engine - INFO - [generated in 0.00129s] (1, 1)
2025-04-21 16:31:01,096 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:31:01,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:31:01,099 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:31:01,099 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:31:01,100 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:31:01,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:31:01,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:31:01,103 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1000, 2000, 2001)
2025-04-21 16:31:01,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:31:01,107 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:31:01,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:31:01,109 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:31:01,109 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 31, 1, 100627))
2025-04-21 16:31:01,110 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:31:01,110 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:31:01,111 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:31:01,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:31:01,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:31:01,113 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:31:01,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:31:01,114 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:31:01,114 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:31:01,114 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:32:01,107 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:32:01,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:32:01,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:32:01,110 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:32:01,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:32:01,110 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:32:01,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:32:01,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:32:01,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:32:01,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:32:01,111 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:32:01,112 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:32:01,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:32:01,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:32:01,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:32:01,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:32:01,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:32:01,114 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:32:01,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:32:01,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:32:01,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:32:01,115 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:32:01,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:32:01,115 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:32:01,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:32:01,116 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:32:01,118 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 32, 1, 112689))
2025-04-21 16:32:01,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:32:01,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:32:01,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:32:01,119 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:32:01,119 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:32:01,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:32:01,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:32:01,294 - root - INFO - 应用程序关闭中...
2025-04-21 16:32:01,294 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:32:01,295 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:32:01,297 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:32:01,298 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:32:01,298 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:32:01,298 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:32:01,298 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:32:01,298 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:32:01,298 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:32:01,298 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:32:01,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:32:01,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:32:01,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:32:01,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:32:01,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:32:01,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:32:01,299 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:32:01,299 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:32:01,299 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:32:01,299 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:32:01,299 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:32:01,299 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:32:01,299 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:32:01,300 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:32:01,300 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:32:01,300 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:32:01,301 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:32:01,301 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:32:02,548 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:32:02,548 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:32:02,605 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:32:02,651 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:32:02,688 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:32:02,706 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:32:02,706 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,706 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:32:02,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,707 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:32:02,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,708 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:32:02,708 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:32:02,709 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,710 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:32:02,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,711 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:32:02,711 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,713 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:32:02,713 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,713 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:32:02,713 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,714 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:32:02,714 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,714 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:32:02,717 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,717 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:32:02,717 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,719 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:32:02,719 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,719 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:32:02,719 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,719 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:32:02,720 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:32:02,721 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:32:02,721 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:32:03,075 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:32:03,076 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:32:03,076 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:32:03,076 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:32:03,076 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:32:03,076 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:32:03,076 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:32:03,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:32:03,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:32:03,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:32:03,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:32:03,079 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:32:03,079 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:32:03,093 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:32:03,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:32:03,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:32:03,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:32:03,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:32:03,095 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:32:03,095 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:32:03,099 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:32:03,100 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:32:03,100 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:32:03,102 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:32:03,104 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:32:03,105 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:32:03,107 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:32:03,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:32:03,122 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:32:03,123 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (1, 1)
2025-04-21 16:32:03,124 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:32:03,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:32:03,125 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:32:03,126 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:32:03,126 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:32:03,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:32:03,129 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:32:03,129 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (1000, 2000, 2001)
2025-04-21 16:32:03,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:32:03,131 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:32:03,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:32:03,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:32:03,132 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 32, 3, 126514))
2025-04-21 16:32:03,133 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:32:03,133 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:32:03,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:32:03,134 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:32:03,134 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:32:03,134 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:32:03,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:32:03,136 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:32:03,136 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:32:03,136 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:33:03,120 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:33:03,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:33:03,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:33:03,122 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:33:03,122 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:33:03,122 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:33:03,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:33:03,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:33:03,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:33:03,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:33:03,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:33:03,123 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:33:03,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:33:03,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:33:03,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:33:03,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:33:03,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:33:03,124 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:33:03,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:33:03,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:33:03,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:33:03,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:33:03,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:33:03,124 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:33:03,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:33:03,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:33:03,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:33:03,125 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:33:03,125 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:33:03,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:33:03,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:33:03,131 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:33:03,131 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 33, 3, 130817))
2025-04-21 16:33:03,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:34:03,132 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:34:03,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:34:03,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:34:03,139 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:34:03,140 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:34:03,140 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:34:03,142 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:34:03,146 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:34:03,150 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 34, 3, 131815))
2025-04-21 16:34:03,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:34:03,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:34:03,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:34:03,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:34:03,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:34:03,162 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:34:03,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:34:03,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:34:03,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:34:03,169 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:34:03,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:34:03,171 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:34:03,171 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:34:03,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:34:03,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:34:03,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:34:03,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:34:03,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:34:03,173 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:34:03,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:34:03,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:34:03,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:34:03,173 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:34:03,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:34:03,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:34:03,349 - root - INFO - 应用程序关闭中...
2025-04-21 16:34:03,349 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:34:03,349 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:34:03,350 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:34:03,350 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:34:03,351 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:34:03,351 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:34:03,351 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:34:03,352 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:34:03,352 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:34:03,352 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:34:03,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:34:03,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:34:03,353 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:34:03,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:34:03,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:34:03,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:34:03,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:34:03,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:34:03,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:34:03,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:34:03,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:34:03,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:34:03,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:34:03,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:34:03,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:34:03,356 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:34:03,356 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:34:03,356 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:34:03,357 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:34:03,357 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:34:03,357 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:34:03,358 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:34:04,718 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:34:04,718 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:34:04,781 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:34:04,831 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:34:04,845 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:34:04,866 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:34:04,868 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,873 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:34:04,874 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,875 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:34:04,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,882 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:34:04,882 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:34:04,883 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,884 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:34:04,886 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,889 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:34:04,891 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,895 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:34:04,897 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,902 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:34:04,903 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,904 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:34:04,908 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,910 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:34:04,912 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,913 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:34:04,914 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,917 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:34:04,918 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,921 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:34:04,921 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,923 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:34:04,926 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:34:04,929 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:34:04,932 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:34:05,295 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:34:05,297 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:34:05,299 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:34:05,300 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:34:05,301 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:34:05,301 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:34:05,303 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:34:05,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:34:05,306 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:34:05,307 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:34:05,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:34:05,312 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:34:05,314 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:34:05,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:34:05,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:34:05,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:34:05,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:34:05,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:34:05,330 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:34:05,332 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:34:05,347 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:34:05,348 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:34:05,348 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:34:05,349 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:34:05,349 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:34:05,350 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:34:05,351 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:34:05,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:34:05,370 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:34:05,370 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (1, 1)
2025-04-21 16:34:05,371 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:34:05,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:34:05,373 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:34:05,374 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:34:05,374 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:34:05,375 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:34:05,376 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:34:05,377 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (1000, 2000, 2001)
2025-04-21 16:34:05,395 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:34:05,395 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:34:05,398 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:34:05,398 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:34:05,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:34:05,398 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:34:05,400 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:34:05,400 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:34:05,401 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:34:05,401 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 34, 5, 374861))
2025-04-21 16:34:05,402 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:34:05,403 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:34:05,403 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:34:05,404 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:34:05,404 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:35:05,345 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:35:05,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:35:05,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:35:05,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:35:05,346 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:35:05,346 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:35:05,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:35:05,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:35:05,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:35:05,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:35:05,347 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:35:05,347 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:35:05,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:35:05,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:35:05,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:35:05,347 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:35:05,347 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:35:05,349 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:35:05,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:35:05,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:35:05,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:35:05,349 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:35:05,350 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:35:05,350 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:35:05,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:35:05,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:35:05,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:35:05,350 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:35:05,352 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:35:05,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:35:05,409 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:35:05,411 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:35:05,412 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 35, 5, 408615))
2025-04-21 16:35:05,417 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:36:05,377 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:36:05,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:36:05,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:36:05,378 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:36:05,378 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:36:05,378 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:36:05,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:36:05,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:36:05,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:36:05,381 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:36:05,381 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:36:05,381 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:36:05,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:36:05,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:36:05,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:36:05,382 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:36:05,383 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:36:05,383 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:36:05,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:36:05,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:36:05,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:36:05,384 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:36:05,384 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:36:05,384 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:36:05,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:36:05,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:36:05,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:36:05,384 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:36:05,384 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:36:05,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:36:05,424 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:36:05,424 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:36:05,424 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 36, 5, 423746))
2025-04-21 16:36:05,427 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:37:05,407 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:37:05,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:37:05,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:37:05,410 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:37:05,410 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:37:05,410 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:37:05,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:37:05,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:37:05,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:37:05,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:37:05,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:37:05,413 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:37:05,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:37:05,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:37:05,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:37:05,414 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:37:05,414 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:37:05,421 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 37, 5, 410947))
2025-04-21 16:37:05,421 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:37:05,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:37:05,422 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:37:05,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:37:05,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:37:05,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:37:05,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:37:05,423 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:37:05,423 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:37:05,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:37:05,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:37:05,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:37:05,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:37:05,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:37:05,424 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:37:05,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:37:05,564 - root - INFO - 应用程序关闭中...
2025-04-21 16:37:05,564 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:37:05,566 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:37:05,566 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:37:05,566 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:37:05,566 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:37:05,567 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:37:05,567 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:37:05,567 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:37:05,567 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:37:05,567 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:37:05,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:37:05,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:37:05,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:37:05,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:37:05,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:37:05,569 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:37:05,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:37:05,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:37:05,570 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:37:05,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:37:05,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:37:05,570 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:37:05,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:37:05,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:37:05,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:37:05,571 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:37:05,571 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:37:05,571 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:37:05,571 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:37:05,571 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:37:05,571 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:37:05,572 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:37:07,022 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:37:07,022 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:37:07,100 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:37:07,154 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:37:07,187 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:37:07,209 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:37:07,212 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,218 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:37:07,219 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,219 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:37:07,220 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:37:07,221 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:37:07,222 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,223 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:37:07,224 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,226 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:37:07,227 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,227 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:37:07,228 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,229 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:37:07,230 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,230 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:37:07,231 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,232 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:37:07,232 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,240 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:37:07,244 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,256 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:37:07,257 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,260 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:37:07,260 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,263 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:37:07,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:37:07,278 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:37:07,279 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:37:07,635 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:37:07,635 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:37:07,635 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:37:07,636 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:37:07,636 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:37:07,636 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:37:07,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:37:07,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:37:07,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:37:07,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:37:07,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:37:07,637 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:37:07,637 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:37:07,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:37:07,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:37:07,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:37:07,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:37:07,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:37:07,639 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:37:07,639 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:37:07,640 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:37:07,641 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:37:07,641 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:37:07,641 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:37:07,641 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:37:07,642 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:37:07,642 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:37:07,642 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:37:07,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:37:07,653 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1, 1)
2025-04-21 16:37:07,654 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:37:07,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:37:07,656 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:37:07,656 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:37:07,656 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:37:07,656 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:37:07,657 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:37:07,658 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (1000, 2000, 2001)
2025-04-21 16:37:07,660 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:37:07,661 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:37:07,661 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:37:07,662 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:37:07,662 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 37, 7, 656939))
2025-04-21 16:37:07,662 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:37:07,663 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:37:07,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:37:07,664 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:37:07,664 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:37:07,664 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:37:07,665 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:37:07,666 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:37:07,666 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:37:07,666 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:38:07,655 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:38:07,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:38:07,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:38:07,658 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:38:07,659 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:38:07,660 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:38:07,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:38:07,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:38:07,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:38:07,661 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:38:07,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:38:07,661 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:38:07,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:38:07,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:38:07,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:38:07,662 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:38:07,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:38:07,662 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:38:07,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:38:07,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:38:07,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:38:07,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:38:07,663 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:38:07,663 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 38, 7, 661162))
2025-04-21 16:38:07,668 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:38:07,668 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:38:07,668 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:38:07,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:38:07,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:38:07,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:38:07,668 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:38:07,669 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:38:07,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:38:07,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:39:07,673 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:39:07,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:39:07,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:39:07,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:39:07,676 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:39:07,678 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:39:07,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:39:07,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:39:07,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:39:07,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:39:07,679 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:39:07,679 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 39, 7, 674786))
2025-04-21 16:39:07,680 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:39:07,680 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:39:07,680 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:39:07,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:39:07,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:39:07,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:39:07,681 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:39:07,681 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:39:07,681 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:39:07,682 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:39:07,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:39:07,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:39:07,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:39:07,683 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:39:07,683 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:39:07,683 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:39:07,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:39:07,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:39:07,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:39:07,684 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:39:07,684 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:39:07,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:40:07,690 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:40:07,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:40:07,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:40:07,692 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:40:07,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:40:07,693 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:40:07,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:40:07,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:40:07,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:40:07,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:40:07,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:40:07,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:40:07,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:40:07,695 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:40:07,695 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 40, 7, 692069))
2025-04-21 16:40:07,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:40:07,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:40:07,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:40:07,696 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:40:07,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:40:07,696 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:40:07,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:40:07,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:40:07,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:40:07,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:40:07,701 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:40:07,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:40:07,701 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:40:07,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:40:07,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:40:07,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:40:07,702 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:40:07,702 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:40:07,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:41:07,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:41:07,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:41:07,725 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 41, 7, 721267))
2025-04-21 16:41:07,727 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:41:07,768 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:41:07,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:41:07,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:41:07,769 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:41:07,771 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:41:07,771 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:41:07,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:41:07,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:41:07,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:41:07,775 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:41:07,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:41:07,775 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:41:07,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:41:07,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:41:07,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:41:07,776 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:41:07,776 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:41:07,776 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:41:07,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:41:07,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:41:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:41:07,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:41:07,777 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:41:07,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:41:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:41:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:41:07,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:41:07,778 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:41:07,778 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:41:07,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:42:07,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:42:07,752 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:42:07,752 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 42, 7, 748396))
2025-04-21 16:42:07,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:42:07,794 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:42:07,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:42:07,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:42:07,795 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:42:07,795 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:42:07,795 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:42:07,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:42:07,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:42:07,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:42:07,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:42:07,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:42:07,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:42:07,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:42:07,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:42:07,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:42:07,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:42:07,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:42:07,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:42:07,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:42:07,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:42:07,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:42:07,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:42:07,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:42:07,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:42:07,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:42:07,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:42:07,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:42:07,798 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:42:07,798 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:42:07,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:43:07,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:43:07,770 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:43:07,770 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 43, 7, 769049))
2025-04-21 16:43:07,772 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:43:07,816 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:43:07,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:43:07,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:43:07,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:43:07,818 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:43:07,818 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:43:07,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:43:07,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:43:07,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:43:07,819 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:43:07,819 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:43:07,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:43:07,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:43:07,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:43:07,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:43:07,820 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:43:07,820 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:43:07,820 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:43:07,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:43:07,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:43:07,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:43:07,821 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:43:07,821 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:43:07,821 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:43:07,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:43:07,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:43:07,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:43:07,822 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:43:07,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:43:07,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:44:07,787 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:44:07,788 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:44:07,789 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 44, 7, 783292))
2025-04-21 16:44:07,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:44:07,861 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:44:07,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:44:07,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:44:07,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:44:07,861 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:44:07,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:44:07,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:44:07,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:44:07,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:44:07,862 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:44:07,863 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:44:07,863 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:44:07,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:44:07,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:44:07,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:44:07,864 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:44:07,864 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:44:07,864 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:44:07,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:44:07,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:44:07,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:44:07,865 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:44:07,865 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:44:07,865 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:44:07,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:44:07,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:44:07,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:44:07,865 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:44:07,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:44:07,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:45:07,811 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:45:07,813 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:45:07,814 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 45, 7, 810312))
2025-04-21 16:45:07,815 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:45:07,886 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:45:07,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:45:07,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:45:07,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:45:07,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:45:07,893 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:45:07,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:45:07,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:45:07,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:45:07,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:45:07,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:45:07,893 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:45:07,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:45:07,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:45:07,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:45:07,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:45:07,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:45:07,893 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:45:07,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:45:07,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:45:07,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:45:07,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:45:07,894 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:45:07,894 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:45:07,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:45:07,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:45:07,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:45:07,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:45:07,895 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:45:07,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:46:07,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:46:07,819 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:46:07,820 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 46, 7, 817045))
2025-04-21 16:46:07,822 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:46:07,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:46:07,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:46:07,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:46:07,928 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:46:07,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:46:07,928 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:46:07,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:46:07,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:46:07,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:46:07,929 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:46:07,929 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:46:07,929 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:46:07,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:46:07,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:46:07,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:46:07,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:46:07,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:46:07,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:46:07,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:46:07,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:46:07,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:46:07,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:46:07,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:46:07,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:46:07,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:46:07,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:46:07,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:46:07,932 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:46:07,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:46:07,937 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:46:07,992 - root - INFO - 应用程序关闭中...
2025-04-21 16:46:07,992 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:46:07,992 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:46:07,992 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:46:07,992 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:46:07,993 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:46:07,993 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:46:07,993 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:46:07,993 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:46:07,993 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:46:07,993 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:46:07,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:46:07,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:46:07,994 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:46:07,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:46:07,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:46:07,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:46:07,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:46:07,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:46:07,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:46:07,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:46:07,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:46:07,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:46:07,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:46:07,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:46:07,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:46:07,995 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:46:07,997 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:46:07,997 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:46:07,997 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:46:07,997 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:46:07,997 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:46:07,997 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:46:09,254 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:46:09,255 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:46:09,311 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:46:09,367 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:46:09,399 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:46:09,425 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:46:09,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,434 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:46:09,439 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,441 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:46:09,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,442 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:46:09,446 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:46:09,450 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,455 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:46:09,458 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,463 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:46:09,466 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,470 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:46:09,471 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,472 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:46:09,473 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,475 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:46:09,480 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,483 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:46:09,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,487 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:46:09,488 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,491 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:46:09,495 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,500 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:46:09,503 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,504 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:46:09,504 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:46:09,505 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:46:09,505 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:46:09,863 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:46:09,865 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:46:09,867 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:46:09,869 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:46:09,871 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:46:09,873 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:46:09,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:46:09,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:46:09,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:46:09,875 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:46:09,875 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:46:09,875 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:46:09,876 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:46:09,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:46:09,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:46:09,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:46:09,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:46:09,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:46:09,879 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:46:09,879 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:46:09,880 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:46:09,881 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:46:09,881 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:46:09,882 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:46:09,882 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:46:09,883 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:46:09,883 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:46:09,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:46:09,893 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:46:09,895 - sqlalchemy.engine.Engine - INFO - [generated in 0.00218s] (1, 1)
2025-04-21 16:46:09,899 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:46:09,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:46:09,905 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:46:09,906 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:46:09,907 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:46:09,908 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:46:09,909 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:46:09,910 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1000, 2000, 2001)
2025-04-21 16:46:09,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:46:09,926 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:46:09,927 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:46:09,928 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:46:09,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:46:09,929 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:46:09,929 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 46, 9, 907716))
2025-04-21 16:46:09,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:46:09,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:46:09,931 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:46:09,932 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:46:09,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:46:09,933 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:46:09,934 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:46:09,934 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:47:09,896 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:47:09,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:47:09,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:47:09,897 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:47:09,897 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:47:09,897 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:47:09,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:47:09,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:47:09,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:47:09,899 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:47:09,899 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:47:09,899 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:47:09,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:47:09,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:47:09,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:47:09,900 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:47:09,900 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:47:09,900 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:47:09,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:47:09,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:47:09,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:47:09,901 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:47:09,901 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:47:09,901 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:47:09,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:47:09,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:47:09,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:47:09,901 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:47:09,901 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:47:09,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:47:09,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:47:09,945 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:47:09,945 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 47, 9, 943260))
2025-04-21 16:47:09,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:47:09,990 - root - INFO - 应用程序关闭中...
2025-04-21 16:47:09,990 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:47:09,992 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:47:09,992 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:47:09,992 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:47:09,992 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:47:09,993 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:47:09,993 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:47:09,993 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:47:09,993 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:47:09,994 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:47:09,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:47:09,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:47:09,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:47:09,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:47:09,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:47:09,996 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:47:09,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:47:09,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:47:09,996 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:47:09,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:47:09,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:47:09,996 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:47:09,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:47:09,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:47:09,996 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:47:09,996 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:47:09,996 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:47:09,996 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:47:09,996 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:47:09,998 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:47:09,998 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:47:09,998 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:47:11,412 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:47:11,412 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:47:11,471 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:47:11,522 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:47:11,547 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:47:11,574 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:47:11,574 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,575 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:47:11,576 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,576 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:47:11,577 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,578 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:47:11,578 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:47:11,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,580 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:47:11,581 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,582 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:47:11,582 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,583 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:47:11,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,587 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:47:11,587 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,589 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:47:11,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,592 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:47:11,592 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,593 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:47:11,593 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,594 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:47:11,595 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,596 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:47:11,597 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,598 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:47:11,598 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:47:11,601 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:47:11,601 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:47:11,955 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:47:11,956 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:47:11,958 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:47:11,960 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:47:11,962 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:47:11,964 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:47:11,964 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:47:11,964 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:47:11,965 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:47:11,968 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:47:11,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:47:11,971 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:47:11,971 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:47:11,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:47:11,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:47:11,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:47:11,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:47:11,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:47:11,979 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:47:11,981 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:47:11,994 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:47:11,996 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:47:11,996 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:47:11,997 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:47:12,001 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:47:12,005 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:47:12,009 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:47:12,011 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:47:12,021 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:47:12,023 - sqlalchemy.engine.Engine - INFO - [generated in 0.00253s] (1, 1)
2025-04-21 16:47:12,025 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:47:12,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:47:12,031 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:47:12,033 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:47:12,035 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:47:12,038 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:47:12,042 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:47:12,045 - sqlalchemy.engine.Engine - INFO - [generated in 0.00328s] (1000, 2000, 2001)
2025-04-21 16:47:12,047 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:47:12,053 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:47:12,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:47:12,057 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:47:12,057 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 47, 12, 37803))
2025-04-21 16:47:12,058 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:47:12,058 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:47:12,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:47:12,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:47:12,060 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:47:12,061 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:47:12,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:47:12,062 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:47:12,062 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:47:12,063 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:48:11,998 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:48:11,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:48:11,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:48:11,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:48:11,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:48:11,999 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:48:12,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:48:12,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:48:12,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:48:12,000 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:48:12,000 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:48:12,000 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:48:12,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:48:12,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:48:12,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:48:12,001 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:48:12,001 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:48:12,001 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:48:12,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:48:12,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:48:12,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:48:12,002 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:48:12,002 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:48:12,002 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:48:12,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:48:12,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:48:12,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:48:12,002 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:48:12,002 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:48:12,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:48:12,061 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:48:12,062 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:48:12,062 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 48, 12, 61347))
2025-04-21 16:48:12,063 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:48:12,107 - root - INFO - 应用程序关闭中...
2025-04-21 16:48:12,107 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:48:12,107 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:48:12,108 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:48:12,108 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:48:12,108 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:48:12,108 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:48:12,108 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:48:12,108 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:48:12,108 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:48:12,108 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:48:12,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:48:12,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:48:12,110 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:48:12,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:48:12,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:48:12,110 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:48:12,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:48:12,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:48:12,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:48:12,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:48:12,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:48:12,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:48:12,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:48:12,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:48:12,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:48:12,113 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:48:12,113 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:48:12,113 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:48:12,113 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:48:12,113 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:48:12,114 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:48:12,114 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:48:13,368 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:48:13,368 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:48:13,440 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:48:13,489 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:48:13,518 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:48:13,520 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:48:13,520 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,521 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:48:13,521 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,521 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:48:13,521 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,521 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:48:13,521 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:48:13,521 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,522 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:48:13,522 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,524 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:48:13,524 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,525 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:48:13,525 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,526 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:48:13,526 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,527 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:48:13,527 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,527 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:48:13,527 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,529 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:48:13,529 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,530 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:48:13,530 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,531 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:48:13,531 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,532 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:48:13,532 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:48:13,533 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:48:13,533 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:48:13,890 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:48:13,890 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:48:13,891 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:48:13,892 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:48:13,892 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:48:13,892 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:48:13,892 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:48:13,892 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:48:13,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:48:13,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:48:13,894 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:48:13,894 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:48:13,894 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:48:13,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:48:13,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:48:13,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:48:13,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:48:13,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:48:13,897 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:48:13,897 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:48:13,917 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:48:13,918 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:48:13,918 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:48:13,918 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:48:13,919 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:48:13,920 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:48:13,920 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:48:13,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:48:13,933 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:48:13,933 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1, 1)
2025-04-21 16:48:13,935 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:48:13,935 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:48:13,936 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:48:13,936 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:48:13,937 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:48:13,938 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:48:13,939 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:48:13,940 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (1000, 2000, 2001)
2025-04-21 16:48:13,966 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:48:13,966 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:48:13,967 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:48:13,968 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:48:13,969 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 48, 13, 938191))
2025-04-21 16:48:13,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:48:13,971 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:48:13,971 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:48:13,972 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:48:13,972 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:48:13,973 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:48:13,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:48:13,977 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:48:13,978 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:48:13,978 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:49:13,926 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:49:13,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:49:13,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:49:13,929 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:49:13,929 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:49:13,929 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:49:13,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:49:13,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:49:13,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:49:13,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:49:13,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:49:13,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:49:13,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:49:13,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:49:13,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:49:13,931 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:49:13,931 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:49:13,931 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:49:13,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:49:13,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:49:13,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:49:13,932 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:49:13,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:49:13,932 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:49:13,933 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:49:13,933 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:49:13,933 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:49:13,933 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:49:13,933 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:49:13,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:49:13,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:49:13,990 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:49:13,990 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 49, 13, 988186))
2025-04-21 16:49:13,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:50:14,008 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:50:14,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:50:14,013 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 50, 14, 7584))
2025-04-21 16:50:14,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:50:28,924 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:50:28,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:50:28,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:50:28,928 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:50:28,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:50:28,929 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:50:28,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:50:28,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:50:28,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:50:28,931 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:50:28,931 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:50:28,932 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:50:28,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:50:28,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:50:28,933 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:50:28,933 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:50:28,933 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:50:28,934 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:50:28,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:50:28,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:50:28,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:50:28,934 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:50:28,934 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:50:28,935 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:50:28,935 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:50:28,935 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:50:28,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:50:28,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:50:28,936 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:50:28,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:51:14,034 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:51:14,036 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:51:14,036 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 51, 14, 33791))
2025-04-21 16:51:14,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:51:14,208 - root - INFO - 应用程序关闭中...
2025-04-21 16:51:14,209 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:51:14,209 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:51:14,209 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:51:14,209 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:51:14,209 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:51:14,209 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:51:14,210 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:51:14,210 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:51:14,210 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:51:14,210 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:51:14,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:51:14,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:51:14,211 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:51:14,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:51:14,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:51:14,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:51:14,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:51:14,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:51:14,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:51:14,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:51:14,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:51:14,213 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:51:14,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:51:14,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:51:14,213 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:51:14,213 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:51:14,213 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:51:14,213 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:51:14,214 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:51:14,214 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:51:14,214 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:51:14,214 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:51:15,543 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:51:15,543 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:51:15,615 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:51:15,673 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:51:15,704 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:51:15,724 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:51:15,728 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,730 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:51:15,730 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,731 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:51:15,732 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:51:15,734 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:51:15,735 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,737 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:51:15,739 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,744 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:51:15,745 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:51:15,749 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,757 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:51:15,758 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,763 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:51:15,763 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,766 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:51:15,766 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,769 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:51:15,769 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,773 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:51:15,775 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,777 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:51:15,778 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,779 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:51:15,779 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:51:15,780 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:51:15,781 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:51:16,142 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:51:16,143 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:51:16,143 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:51:16,143 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:51:16,143 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:51:16,143 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:51:16,143 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:51:16,145 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:51:16,145 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:51:16,145 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:51:16,145 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:51:16,145 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:51:16,145 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:51:16,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:51:16,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:51:16,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:51:16,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:51:16,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:51:16,147 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:51:16,147 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:51:16,160 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:51:16,161 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:51:16,161 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:51:16,162 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:51:16,163 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:51:16,163 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:51:16,164 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:51:16,164 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:51:16,173 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:51:16,173 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (1, 1)
2025-04-21 16:51:16,174 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:51:16,174 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:51:16,175 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:51:16,175 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:51:16,176 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:51:16,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:51:16,178 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:51:16,178 - sqlalchemy.engine.Engine - INFO - [generated in 0.00081s] (1000, 2000, 2001)
2025-04-21 16:51:16,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:51:16,180 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:51:16,183 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:51:16,184 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:51:16,184 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 51, 16, 176224))
2025-04-21 16:51:16,184 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:51:16,184 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:51:16,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:51:16,185 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:51:16,185 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:51:16,185 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:51:16,186 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:51:16,187 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:51:16,187 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:51:16,187 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:52:16,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:52:16,173 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:52:16,173 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 52, 16, 171429))
2025-04-21 16:52:16,174 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:52:16,202 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:52:16,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:52:16,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:52:16,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:52:16,204 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:52:16,204 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:52:16,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:52:16,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:52:16,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:52:16,205 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:52:16,205 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:52:16,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:52:16,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:52:16,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:52:16,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:52:16,207 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:52:16,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:52:16,208 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:52:16,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:52:16,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:52:16,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:52:16,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:52:16,209 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:52:16,209 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:52:16,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:52:16,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:52:16,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:52:16,210 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:52:16,210 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:52:16,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:53:16,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:53:16,191 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:53:16,195 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 53, 16, 188006))
2025-04-21 16:53:16,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:53:16,235 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:53:16,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:53:16,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:53:16,236 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:53:16,236 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:53:16,236 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:53:16,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:53:16,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:53:16,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:53:16,236 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:53:16,236 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:53:16,237 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:53:16,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:53:16,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:53:16,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:53:16,237 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:53:16,237 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:53:16,238 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:53:16,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:53:16,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:53:16,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:53:16,239 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:53:16,239 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:53:16,239 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:53:16,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:53:16,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:53:16,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:53:16,240 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:53:16,240 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:53:16,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:53:16,451 - root - INFO - 应用程序关闭中...
2025-04-21 16:53:16,452 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:53:16,452 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:53:16,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:53:16,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:53:16,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:53:16,453 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:53:16,454 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:53:16,454 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:53:16,454 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:53:16,455 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:53:16,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:53:16,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:53:16,456 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:53:16,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:53:16,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:53:16,456 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:53:16,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:53:16,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:53:16,456 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:53:16,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:53:16,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:53:16,457 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:53:16,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:53:16,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:53:16,457 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:53:16,457 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:53:16,457 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:53:16,458 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:53:16,458 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:53:16,458 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:53:16,458 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:53:16,458 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:53:17,794 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:53:17,794 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:53:17,861 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:53:17,909 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:53:17,936 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:53:17,938 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:53:17,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,939 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:53:17,939 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,939 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:53:17,940 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:53:17,940 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:53:17,941 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,942 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:53:17,942 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,945 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:53:17,945 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,948 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:53:17,949 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,950 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:53:17,950 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,953 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:53:17,953 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,954 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:53:17,954 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,956 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:53:17,957 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,958 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:53:17,958 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,960 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:53:17,961 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,962 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:53:17,962 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:53:17,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:53:17,963 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:53:18,327 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:53:18,327 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:53:18,327 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:53:18,328 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:53:18,329 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:53:18,329 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:53:18,329 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:53:18,329 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:53:18,330 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:53:18,330 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:53:18,330 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:53:18,330 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:53:18,330 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:53:18,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:53:18,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:53:18,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:53:18,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:53:18,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:53:18,333 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:53:18,333 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:53:18,352 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:53:18,355 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:53:18,355 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:53:18,356 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:53:18,356 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:53:18,356 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:53:18,356 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:53:18,356 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:53:18,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:53:18,366 - sqlalchemy.engine.Engine - INFO - [generated in 0.00090s] (1, 1)
2025-04-21 16:53:18,369 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:53:18,371 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:53:18,372 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:53:18,372 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:53:18,373 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:53:18,373 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:53:18,375 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:53:18,375 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (1000, 2000, 2001)
2025-04-21 16:53:18,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:53:18,377 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:53:18,378 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:53:18,379 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:53:18,379 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 53, 18, 373221))
2025-04-21 16:53:18,379 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:53:18,380 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:53:18,380 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:53:18,381 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:53:18,381 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:53:18,381 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:53:18,382 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:53:18,382 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:53:18,382 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:53:18,383 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:54:18,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:54:18,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:54:18,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:54:18,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:54:18,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:54:18,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:54:18,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:54:18,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:54:18,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:54:18,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:54:18,358 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:54:18,358 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:54:18,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:54:18,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:54:18,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:54:18,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:54:18,360 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:54:18,360 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:54:18,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:54:18,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:54:18,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:54:18,361 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:54:18,361 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:54:18,361 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:54:18,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:54:18,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:54:18,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:54:18,361 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:54:18,361 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:54:18,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:54:18,388 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:54:18,388 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:54:18,388 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 54, 18, 386815))
2025-04-21 16:54:18,389 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:55:18,392 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:55:18,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:55:18,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:55:18,393 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:55:18,393 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:55:18,393 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:55:18,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:55:18,394 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:55:18,395 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 55, 18, 392481))
2025-04-21 16:55:18,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:55:18,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:55:18,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:55:18,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:55:18,396 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:55:18,396 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:55:18,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:55:18,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:55:18,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:55:18,397 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:55:18,398 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:55:18,398 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:55:18,398 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:55:18,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:55:18,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:55:18,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:55:18,398 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:55:18,398 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:55:18,398 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:55:18,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:55:18,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:55:18,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:55:18,399 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:55:18,399 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:55:18,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:56:18,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:56:18,399 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:56:18,399 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 56, 18, 397166))
2025-04-21 16:56:18,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:56:18,443 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:56:18,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:56:18,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:56:18,444 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:56:18,444 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:56:18,444 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:56:18,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:56:18,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:56:18,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:56:18,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:56:18,445 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:56:18,445 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:56:18,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:56:18,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:56:18,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:56:18,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:56:18,446 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:56:18,446 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:56:18,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:56:18,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:56:18,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:56:18,446 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:56:18,446 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:56:18,447 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:56:18,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:56:18,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:56:18,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:56:18,447 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:56:18,447 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:56:18,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:56:18,568 - root - INFO - 应用程序关闭中...
2025-04-21 16:56:18,570 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:56:18,570 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:56:18,570 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:56:18,570 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:56:18,570 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:56:18,571 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:56:18,571 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:56:18,572 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:56:18,573 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:56:18,573 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:56:18,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:56:18,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:56:18,574 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:56:18,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:56:18,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:56:18,575 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:56:18,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:56:18,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:56:18,576 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:56:18,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:56:18,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:56:18,577 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:56:18,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:56:18,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:56:18,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:56:18,578 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:56:18,579 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:56:18,579 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:56:18,579 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:56:18,580 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:56:18,580 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:56:18,581 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:56:19,747 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:56:19,748 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:56:19,808 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:56:19,855 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:56:19,894 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:56:19,897 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:56:19,900 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,900 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:56:19,901 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,902 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:56:19,907 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:56:19,915 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:56:19,917 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,924 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:56:19,927 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,934 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:56:19,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,946 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:56:19,948 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,951 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:56:19,953 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,958 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:56:19,962 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,965 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:56:19,969 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,973 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:56:19,976 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,981 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:56:19,984 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,987 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:56:19,990 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,995 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:56:19,995 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:56:19,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:56:19,999 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:56:20,354 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:56:20,355 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:56:20,355 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:56:20,355 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:56:20,356 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:56:20,356 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:56:20,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:56:20,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:56:20,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:56:20,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:56:20,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:56:20,358 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:56:20,358 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:56:20,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:56:20,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:56:20,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:56:20,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:56:20,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:56:20,360 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:56:20,361 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:56:20,362 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:56:20,363 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:56:20,365 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:56:20,366 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:56:20,366 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:56:20,367 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:56:20,367 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:56:20,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:56:20,377 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:56:20,379 - sqlalchemy.engine.Engine - INFO - [generated in 0.00160s] (1, 1)
2025-04-21 16:56:20,380 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:56:20,381 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:56:20,381 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:56:20,382 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:56:20,382 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:56:20,383 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:56:20,384 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:56:20,385 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1000, 2000, 2001)
2025-04-21 16:56:20,385 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:56:20,386 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:56:20,387 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:56:20,387 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:56:20,387 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 56, 20, 382432))
2025-04-21 16:56:20,389 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:56:20,390 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:56:20,390 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:56:20,391 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:56:20,391 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:56:20,391 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:56:20,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:56:20,393 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:56:20,393 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:56:20,393 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:57:20,380 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:57:20,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:57:20,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:57:20,381 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:57:20,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:57:20,382 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:57:20,382 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:57:20,382 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:57:20,382 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 57, 20, 380881))
2025-04-21 16:57:20,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:57:20,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:57:20,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:57:20,383 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:57:20,383 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:57:20,384 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:57:20,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:57:20,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:57:20,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:57:20,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:57:20,385 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:57:20,385 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:57:20,385 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:57:20,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:57:20,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:57:20,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:57:20,385 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:57:20,385 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:57:20,385 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:57:20,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:57:20,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:57:20,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:57:20,387 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:57:20,387 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:57:20,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:58:20,389 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:58:20,391 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:58:20,391 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 58, 20, 387900))
2025-04-21 16:58:20,393 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:58:20,433 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:58:20,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:58:20,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:58:20,434 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:58:20,434 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:58:20,435 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:58:20,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:58:20,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:58:20,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:58:20,436 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:58:20,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:58:20,436 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:58:20,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:58:20,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:58:20,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:58:20,437 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:58:20,438 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:58:20,438 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:58:20,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:58:20,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:58:20,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:58:20,438 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:58:20,438 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:58:20,438 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:58:20,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:58:20,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:58:20,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:58:20,439 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:58:20,439 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:58:20,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:58:20,604 - root - INFO - 应用程序关闭中...
2025-04-21 16:58:20,606 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:58:20,606 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:58:20,607 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:58:20,607 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:58:20,608 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:58:20,608 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:58:20,608 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:58:20,608 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:58:20,610 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:58:20,610 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:58:20,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:58:20,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:58:20,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:58:20,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:58:20,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:58:20,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:58:20,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:58:20,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:58:20,613 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:58:20,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:58:20,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:58:20,614 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:58:20,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:58:20,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:58:20,615 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:58:20,615 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:58:20,615 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:58:20,615 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:58:20,615 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:58:20,616 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:58:20,616 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:58:20,617 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:58:21,783 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:58:21,783 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:58:21,842 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:58:21,887 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:58:21,914 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:58:21,940 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:58:21,941 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,943 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:58:21,943 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,944 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:58:21,945 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:58:21,946 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:58:21,946 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,948 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:58:21,949 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,950 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:58:21,950 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,952 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:58:21,952 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,954 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:58:21,954 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,956 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:58:21,956 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,957 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:58:21,957 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,957 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:58:21,958 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,958 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:58:21,959 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,961 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:58:21,963 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,965 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:58:21,966 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:58:21,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:58:21,971 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:58:22,320 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:58:22,321 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:58:22,321 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:58:22,321 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:58:22,321 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:58:22,321 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:58:22,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:58:22,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:58:22,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:58:22,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:58:22,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:58:22,322 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:58:22,322 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:58:22,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:58:22,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:58:22,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:58:22,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:58:22,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:58:22,323 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:58:22,324 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:58:22,325 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:58:22,326 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:58:22,326 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:58:22,326 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:58:22,329 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:58:22,329 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:58:22,329 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:58:22,329 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:58:22,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:58:22,340 - sqlalchemy.engine.Engine - INFO - [generated in 0.00096s] (1, 1)
2025-04-21 16:58:22,342 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:58:22,343 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:58:22,343 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:58:22,344 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:58:22,344 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:58:22,345 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:58:22,346 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:58:22,346 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1000, 2000, 2001)
2025-04-21 16:58:22,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:58:22,350 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:58:22,351 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:58:22,352 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:58:22,352 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 58, 22, 345856))
2025-04-21 16:58:22,353 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:58:22,353 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:58:22,354 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:58:22,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:58:22,357 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:58:22,358 - sqlalchemy.engine.Engine - INFO - [generated in 0.00085s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:58:22,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:58:22,363 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:58:22,363 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:58:22,363 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 16:59:22,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 16:59:22,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:59:22,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:59:22,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:59:22,358 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 16:59:22,362 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 16:59:22,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:59:22,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 16:59:22,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:59:22,370 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:59:22,373 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:59:22,375 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 59, 22, 355594))
2025-04-21 16:59:22,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 16:59:22,379 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 16:59:22,381 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 16:59:22,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:59:22,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 16:59:22,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:59:22,390 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 16:59:22,391 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 16:59:22,393 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 16:59:22,394 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:59:22,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:59:22,400 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 16:59:22,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:59:22,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 16:59:22,404 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 16:59:22,404 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 16:59:22,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:59:22,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:59:22,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:59:22,407 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 16:59:22,408 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:59:22,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:59:22,575 - root - INFO - 应用程序关闭中...
2025-04-21 16:59:22,575 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 16:59:22,577 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 16:59:22,580 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 16:59:22,582 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 16:59:22,584 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 16:59:22,585 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 16:59:22,587 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 16:59:22,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 16:59:22,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 16:59:22,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 16:59:22,590 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 16:59:22,594 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 16:59:22,594 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 16:59:22,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 16:59:22,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 16:59:22,599 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 16:59:22,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 16:59:22,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 16:59:22,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 16:59:22,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 16:59:22,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 16:59:22,607 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 16:59:22,607 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 16:59:22,607 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 16:59:22,609 - root - INFO - 增强版任务调度器已停止
2025-04-21 16:59:22,611 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 16:59:22,613 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 16:59:22,615 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 16:59:22,617 - data.session - INFO - 数据库连接已关闭
2025-04-21 16:59:23,823 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 16:59:23,832 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 16:59:23,891 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 16:59:23,939 - data.session - INFO - 正在初始化数据库...
2025-04-21 16:59:23,973 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 16:59:23,994 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:59:23,994 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:23,995 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:59:23,995 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:23,995 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:59:23,995 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:23,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:59:23,996 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 16:59:23,996 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:23,997 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 16:59:23,997 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:23,998 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 16:59:23,998 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:23,999 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 16:59:23,999 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:24,000 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 16:59:24,000 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:24,001 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 16:59:24,001 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:24,001 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 16:59:24,001 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:24,002 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 16:59:24,002 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:24,004 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 16:59:24,004 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:24,004 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 16:59:24,005 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:24,005 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 16:59:24,005 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 16:59:24,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:59:24,010 - data.session - INFO - 数据库表初始化完成
2025-04-21 16:59:24,361 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 16:59:24,361 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 16:59:24,361 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 16:59:24,362 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 16:59:24,362 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 16:59:24,362 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 16:59:24,362 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 16:59:24,362 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 16:59:24,362 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 16:59:24,362 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 16:59:24,362 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 16:59:24,363 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 16:59:24,363 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 16:59:24,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 16:59:24,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 16:59:24,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 16:59:24,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 16:59:24,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 16:59:24,365 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 16:59:24,367 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 16:59:24,368 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:59:24,368 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 16:59:24,369 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:59:24,370 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 16:59:24,370 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:59:24,371 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 16:59:24,371 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 16:59:24,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:59:24,382 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 16:59:24,382 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1, 1)
2025-04-21 16:59:24,383 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 16:59:24,383 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:59:24,384 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 16:59:24,384 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 16:59:24,384 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 16:59:24,385 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:59:24,387 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 16:59:24,387 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] (1000, 2000, 2001)
2025-04-21 16:59:24,388 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:59:24,389 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 16:59:24,390 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:59:24,390 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 16:59:24,391 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 15, 59, 24, 384117))
2025-04-21 16:59:24,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:59:24,393 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 16:59:24,393 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 16:59:24,393 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 16:59:24,394 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 16:59:24,394 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 16:59:24,395 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 16:59:24,396 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 16:59:24,396 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 16:59:24,396 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 17:00:19,137 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 17:00:19,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:00:19,145 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:00:19,146 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,147 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:00:19,148 - sqlalchemy.engine.Engine - INFO - [cached since 0.002991s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:00:19,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,151 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 17:00:19,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:00:19,161 - sqlalchemy.engine.Engine - INFO - [cached since 0.01606s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:00:19,166 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-21 17:00:19,166 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] ('998d2f30-f04d-4053-bf21-8de1c336de78', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 17, 0, 19, 164433), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 17, 0, 19, 151421), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 21, 17, 0, 19, 166421), datetime.datetime(2025, 4, 21, 17, 0, 19, 166421), 0)
2025-04-21 17:00:19,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,185 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,185 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:19,185 - sqlalchemy.engine.Engine - INFO - [cached since 54.79s ago] ('998d2f30-f04d-4053-bf21-8de1c336de78',)
2025-04-21 17:00:19,186 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,187 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 998d2f30-f04d-4053-bf21-8de1c336de78 (优先级 1) 添加到队列 0
2025-04-21 17:00:19,188 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0509秒
2025-04-21 17:00:19,222 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 998d2f30-f04d-4053-bf21-8de1c336de78, 优先级: 1
2025-04-21 17:00:19,222 - services.execution.task_executor - DEBUG - 任务 998d2f30-f04d-4053-bf21-8de1c336de78 设置超时时间: 3600秒
2025-04-21 17:00:19,223 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,225 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:19,252 - sqlalchemy.engine.Engine - INFO - [cached since 54.86s ago] ('998d2f30-f04d-4053-bf21-8de1c336de78',)
2025-04-21 17:00:19,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:00:19,256 - sqlalchemy.engine.Engine - INFO - [cached since 0.1109s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:00:19,261 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:00:19,263 - sqlalchemy.engine.Engine - INFO - [generated in 0.00210s] (datetime.datetime(2025, 4, 21, 17, 0, 19, 261040), datetime.datetime(2025, 4, 21, 17, 0, 19, 261040), '998d2f30-f04d-4053-bf21-8de1c336de78')
2025-04-21 17:00:19,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,274 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,280 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:00:19,282 - sqlalchemy.engine.Engine - INFO - [generated in 0.00257s] ('任务执行中', <TaskStatus.RUNNING: 1001>, 1, datetime.datetime(2025, 4, 21, 17, 0, 19, 280257), '998d2f30-f04d-4053-bf21-8de1c336de78')
2025-04-21 17:00:19,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,292 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 17:00:19,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,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-21 17:00:19,301 - sqlalchemy.engine.Engine - INFO - [generated in 0.00317s] ('64208886-e86f-46f1-85b5-2340b99eb03d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '998d2f30-f04d-4053-bf21-8de1c336de78', datetime.datetime(2025, 4, 21, 17, 0, 19, 293258), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 17, 0, 19, 298258), datetime.datetime(2025, 4, 21, 17, 0, 19, 298258), 0)
2025-04-21 17:00:19,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,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-21 17:00:19,318 - sqlalchemy.engine.Engine - INFO - [generated in 0.00099s] ('64208886-e86f-46f1-85b5-2340b99eb03d',)
2025-04-21 17:00:19,321 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 17:00:19,322 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 17:00:19,323 - 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-21 17:00:19,324 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 17, 0, 19, 323844), '64208886-e86f-46f1-85b5-2340b99eb03d')
2025-04-21 17:00:19,324 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,332 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 17:00:19,332 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 17:00:19,333 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 17:00:19,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,334 - 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-21 17:00:19,334 - sqlalchemy.engine.Engine - INFO - [cached since 0.03688s ago] ('c7ceafa8-0fb1-47a1-a15e-d77b72131922', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '998d2f30-f04d-4053-bf21-8de1c336de78', datetime.datetime(2025, 4, 21, 17, 0, 19, 333837), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 17, 0, 19, 334838), datetime.datetime(2025, 4, 21, 17, 0, 19, 334838), 0)
2025-04-21 17:00:19,335 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,341 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c7ceafa8-0fb1-47a1-a15e-d77b72131922
2025-04-21 17:00:19,341 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,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-21 17:00:19,342 - sqlalchemy.engine.Engine - INFO - [cached since 0.02474s ago] ('c7ceafa8-0fb1-47a1-a15e-d77b72131922',)
2025-04-21 17:00:19,342 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 17:00:19,342 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 17:00:19,343 - 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-21 17:00:19,343 - sqlalchemy.engine.Engine - INFO - [cached since 0.01997s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 17, 0, 19, 343840), 'c7ceafa8-0fb1-47a1-a15e-d77b72131922')
2025-04-21 17:00:19,344 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,353 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 17:00:19,354 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 17:00:19,354 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,354 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:19,356 - sqlalchemy.engine.Engine - INFO - [cached since 54.96s ago] ('998d2f30-f04d-4053-bf21-8de1c336de78',)
2025-04-21 17:00:19,356 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,357 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,357 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:00:19,357 - sqlalchemy.engine.Engine - INFO - [cached since 0.213s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 17:00:19,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,361 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,362 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:00:19,363 - sqlalchemy.engine.Engine - INFO - [cached since 0.2183s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 17:00:19,364 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-21 17:00:19,364 - sqlalchemy.engine.Engine - INFO - [cached since 0.1991s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 17, 0, 19, 364597), None, None, <TaskStatus.QUEUED: 1002>, None, None, None, '998d2f30-f04d-4053-bf21-8de1c336de78', '998d2f30-f04d-4053-bf21-8de1c336de78', None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 17, 0, 19, 361639), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 21, 17, 0, 19, 364597), datetime.datetime(2025, 4, 21, 17, 0, 19, 364597), 0)
2025-04-21 17:00:19,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,375 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,380 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:19,383 - sqlalchemy.engine.Engine - INFO - [cached since 54.99s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:19,388 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,391 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f7389841-edf2-4dee-9937-9ada3bf3f382 (优先级 1) 添加到队列 0
2025-04-21 17:00:19,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,395 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:19,395 - sqlalchemy.engine.Engine - INFO - [cached since 55s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:19,396 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: f7389841-edf2-4dee-9937-9ada3bf3f382, 优先级: 1
2025-04-21 17:00:19,425 - services.execution.task_executor - DEBUG - 任务 f7389841-edf2-4dee-9937-9ada3bf3f382 设置超时时间: 3600秒
2025-04-21 17:00:19,426 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,427 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:19,427 - sqlalchemy.engine.Engine - INFO - [cached since 55.03s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:19,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:00:19,430 - sqlalchemy.engine.Engine - INFO - [cached since 0.2853s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 17:00:19,432 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:00:19,434 - sqlalchemy.engine.Engine - INFO - [cached since 0.1732s ago] (datetime.datetime(2025, 4, 21, 17, 0, 19, 432603), datetime.datetime(2025, 4, 21, 17, 0, 19, 432603), 'f7389841-edf2-4dee-9937-9ada3bf3f382')
2025-04-21 17:00:19,438 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,447 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,450 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:00:19,452 - sqlalchemy.engine.Engine - INFO - [cached since 0.1726s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, 1, datetime.datetime(2025, 4, 21, 17, 0, 19, 450596), 'f7389841-edf2-4dee-9937-9ada3bf3f382')
2025-04-21 17:00:19,457 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,465 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 17:00:19,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,473 - 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-21 17:00:19,475 - sqlalchemy.engine.Engine - INFO - [cached since 0.1775s ago] ('bf4f32f3-004c-4a30-9f45-f02b9a72dd51', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'f7389841-edf2-4dee-9937-9ada3bf3f382', datetime.datetime(2025, 4, 21, 17, 0, 19, 466603), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 17, 0, 19, 473595), datetime.datetime(2025, 4, 21, 17, 0, 19, 473595), 0)
2025-04-21 17:00:19,479 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,488 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,494 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 17:00:19,496 - sqlalchemy.engine.Engine - INFO - [cached since 0.1787s ago] ('bf4f32f3-004c-4a30-9f45-f02b9a72dd51',)
2025-04-21 17:00:19,501 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 17:00:19,502 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 17:00:19,503 - 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-21 17:00:19,504 - sqlalchemy.engine.Engine - INFO - [cached since 0.1808s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 17, 0, 19, 503595), 'bf4f32f3-004c-4a30-9f45-f02b9a72dd51')
2025-04-21 17:00:19,505 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,512 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 17:00:19,513 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 17:00:19,515 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 17:00:19,516 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,519 - 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-21 17:00:19,521 - sqlalchemy.engine.Engine - INFO - [cached since 0.2234s ago] ('bd94f3b6-8a76-44ac-b68c-b7e5930985bd', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'f7389841-edf2-4dee-9937-9ada3bf3f382', datetime.datetime(2025, 4, 21, 17, 0, 19, 516596), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 17, 0, 19, 519595), datetime.datetime(2025, 4, 21, 17, 0, 19, 519595), 0)
2025-04-21 17:00:19,523 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,533 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: bd94f3b6-8a76-44ac-b68c-b7e5930985bd
2025-04-21 17:00:19,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:19,534 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 17:00:19,535 - sqlalchemy.engine.Engine - INFO - [cached since 0.218s ago] ('bd94f3b6-8a76-44ac-b68c-b7e5930985bd',)
2025-04-21 17:00:19,536 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 17:00:19,540 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 17:00:19,542 - 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-21 17:00:19,544 - sqlalchemy.engine.Engine - INFO - [cached since 0.2206s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 17, 0, 19, 542603), 'bd94f3b6-8a76-44ac-b68c-b7e5930985bd')
2025-04-21 17:00:19,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:19,554 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 17:00:22,400 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:22,401 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:22,402 - sqlalchemy.engine.Engine - INFO - [cached since 58.01s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:22,403 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:24,411 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:00:24,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:00:24,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:00:24,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:00:24,412 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:00:24,414 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:00:24,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:00:24,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:00:24,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:00:24,414 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:24,415 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:00:24,415 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 0, 24, 411969))
2025-04-21 17:00:24,416 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:00:24,416 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:00:24,416 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:00:24,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:00:24,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:00:24,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:00:24,417 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:00:24,417 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:00:24,422 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:24,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:00:25,384 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:25,385 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:25,385 - sqlalchemy.engine.Engine - INFO - [cached since 60.99s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:25,388 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:28,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:28,405 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:28,406 - sqlalchemy.engine.Engine - INFO - [cached since 64.01s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:28,408 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:31,427 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:31,429 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:31,429 - sqlalchemy.engine.Engine - INFO - [cached since 67.04s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:31,432 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:34,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:34,455 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:34,456 - sqlalchemy.engine.Engine - INFO - [cached since 70.06s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:34,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:37,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:37,483 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:37,486 - sqlalchemy.engine.Engine - INFO - [cached since 73.09s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:37,491 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:40,515 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:40,516 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:40,517 - sqlalchemy.engine.Engine - INFO - [cached since 76.12s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:40,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:43,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:43,543 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:43,545 - sqlalchemy.engine.Engine - INFO - [cached since 79.15s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:43,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:46,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:46,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:46,582 - sqlalchemy.engine.Engine - INFO - [cached since 82.19s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:46,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:49,600 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:49,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:49,603 - sqlalchemy.engine.Engine - INFO - [cached since 85.21s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:49,609 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:52,638 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:52,639 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:52,639 - sqlalchemy.engine.Engine - INFO - [cached since 88.25s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:52,640 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:54,894 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 17:00:54,895 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:54,895 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:00:54,896 - sqlalchemy.engine.Engine - INFO - [cached since 35.75s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:00:54,897 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 17:00:54,900 - sqlalchemy.engine.Engine - INFO - [generated in 0.00278s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', <TaskStatus.RUNNING: 1001>)
2025-04-21 17:00:54,902 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 998d2f30-f04d-4053-bf21-8de1c336de78
2025-04-21 17:00:54,902 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:54,902 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:54,902 - sqlalchemy.engine.Engine - INFO - [cached since 90.51s ago] ('998d2f30-f04d-4053-bf21-8de1c336de78',)
2025-04-21 17:00:54,904 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 17:00:54,904 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('998d2f30-f04d-4053-bf21-8de1c336de78', <TaskStatus.RUNNING: 1001>)
2025-04-21 17:00:54,905 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: f7389841-edf2-4dee-9937-9ada3bf3f382, 父任务: 998d2f30-f04d-4053-bf21-8de1c336de78
2025-04-21 17:00:54,906 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: f7389841-edf2-4dee-9937-9ada3bf3f382
2025-04-21 17:00:54,909 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 17:00:54,909 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:54,909 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:54,910 - sqlalchemy.engine.Engine - INFO - [cached since 90.52s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:54,911 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 17:00:54,911 - sqlalchemy.engine.Engine - INFO - [cached since 0.007053s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382', <TaskStatus.RUNNING: 1001>)
2025-04-21 17:00:54,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:54,912 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:54,913 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:00:54,913 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 21, 17, 0, 54, 912551), '任务被取消', <TaskStatus.CANCELED: 2001>, 1, datetime.datetime(2025, 4, 21, 17, 0, 54, 913552), 'f7389841-edf2-4dee-9937-9ada3bf3f382')
2025-04-21 17:00:54,913 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:54,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:54,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:54,929 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:00:54,929 - sqlalchemy.engine.Engine - INFO - [cached since 0.01736s ago] (datetime.datetime(2025, 4, 21, 17, 0, 54, 929687), '任务被取消', <TaskStatus.CANCELED: 2001>, 1, datetime.datetime(2025, 4, 21, 17, 0, 54, 929687), '998d2f30-f04d-4053-bf21-8de1c336de78')
2025-04-21 17:00:54,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:54,939 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 17:00:54,940 - sqlalchemy.engine.Engine - INFO - [generated in 0.00099s] (0, datetime.datetime(2025, 4, 21, 17, 0, 54, 939114), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 17:00:54,940 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:54,950 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0565秒
2025-04-21 17:00:55,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:55,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:55,652 - sqlalchemy.engine.Engine - INFO - [cached since 91.26s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:55,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:55,654 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:55,654 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:00:55,655 - sqlalchemy.engine.Engine - INFO - [cached since 91.26s ago] ('f7389841-edf2-4dee-9937-9ada3bf3f382',)
2025-04-21 17:00:55,656 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:55,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:55,658 - 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-21 17:00:55,659 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] ('035a2738-2928-4fe3-8816-48cf26510682', 1, '{"success": true, "message": "子任务执行成功", "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "f7389841-edf2-4dee-9937-9ada ... (19 characters truncated) ...  false, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "f7389841-edf2-4dee-9937-9ada3bf3f382", "output": {}}, "taskStatus": 2001}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '998d2f30-f04d-4053-bf21-8de1c336de78', datetime.datetime(2025, 4, 21, 17, 0, 55, 658424), datetime.datetime(2025, 4, 21, 17, 0, 55, 658424), 0)
2025-04-21 17:00:55,659 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:55,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:55,678 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 17:00:55,678 - sqlalchemy.engine.Engine - INFO - [cached since 36.36s ago] ('c7ceafa8-0fb1-47a1-a15e-d77b72131922',)
2025-04-21 17:00:55,679 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 17:00:55,679 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 17:00:55,679 - 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-21 17:00:55,680 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (datetime.datetime(2025, 4, 21, 17, 0, 55, 679324), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': 'f7389841-edf2-4dee-9937-9ada3bf3f382', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': 'f7389841-edf2-4dee-9937-9ada3bf3f382', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 17, 0, 55, 679324), 'c7ceafa8-0fb1-47a1-a15e-d77b72131922')
2025-04-21 17:00:55,686 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:55,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:55,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-21 17:00:55,701 - sqlalchemy.engine.Engine - INFO - [cached since 0.04288s ago] ('a49193ee-09fa-480b-a3ef-82309f213514', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (130 characters truncated) ... lse, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "f7389841-edf2-4dee-9937-9ada3bf3f382", "output": {}}, "taskStatus": 2001}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '998d2f30-f04d-4053-bf21-8de1c336de78', datetime.datetime(2025, 4, 21, 17, 0, 55, 701608), datetime.datetime(2025, 4, 21, 17, 0, 55, 701608), 0)
2025-04-21 17:00:55,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:55,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:55,711 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 17:00:55,711 - sqlalchemy.engine.Engine - INFO - [cached since 36.39s ago] ('64208886-e86f-46f1-85b5-2340b99eb03d',)
2025-04-21 17:00:55,712 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 17:00:55,712 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 17:00:55,712 - 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-21 17:00:55,713 - sqlalchemy.engine.Engine - INFO - [cached since 0.03365s ago] (datetime.datetime(2025, 4, 21, 17, 0, 55, 712549), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': 'f7389841-edf2-4dee-9937-9ada3bf3f382', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': 'f7389841-edf2-4dee-9937-9ada3bf3f382', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 17, 0, 55, 712549), '64208886-e86f-46f1-85b5-2340b99eb03d')
2025-04-21 17:00:55,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:55,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:00:55,722 - 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-21 17:00:55,722 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (datetime.datetime(2025, 4, 21, 17, 0, 55, 721191), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 36446, 1, datetime.datetime(2025, 4, 21, 17, 0, 55, 722198), '998d2f30-f04d-4053-bf21-8de1c336de78')
2025-04-21 17:00:55,723 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:00:55,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 998d2f30-f04d-4053-bf21-8de1c336de78, 结果: True
2025-04-21 17:01:24,413 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:01:24,413 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:01:24,413 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 1, 24, 412886))
2025-04-21 17:01:24,416 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:01:24,458 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:01:24,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:01:24,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:01:24,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:01:24,459 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:01:24,459 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:01:24,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:01:24,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:01:24,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:01:24,460 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:01:24,460 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:01:24,460 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:01:24,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:01:24,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:01:24,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:01:24,460 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:01:24,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:01:24,461 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:01:24,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:01:24,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:01:24,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:01:24,461 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:01:24,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:01:24,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:02:09,479 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:02:09,479 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:02:09,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:02:09,483 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:02:09,483 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:02:09,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:02:24,430 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:02:24,433 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:02:24,437 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 2, 24, 429430))
2025-04-21 17:02:24,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:02:24,491 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:02:24,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:02:24,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:02:24,497 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:02:24,499 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:02:24,501 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:02:24,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:02:24,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:02:24,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:02:24,506 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:02:24,506 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:02:24,507 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:02:24,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:02:24,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:02:24,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:02:24,508 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:02:24,509 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:02:24,509 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:02:24,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:02:24,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:02:24,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:02:24,511 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:02:24,512 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:02:24,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:02:46,451 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 17:02:46,452 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:02:46,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:02:46,452 - sqlalchemy.engine.Engine - INFO - [cached since 147.3s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:02:46,453 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 17:02:46,454 - sqlalchemy.engine.Engine - INFO - [cached since 111.6s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', <TaskStatus.RUNNING: 1001>)
2025-04-21 17:02:46,455 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 17:02:46,455 - sqlalchemy.engine.Engine - INFO - [cached since 111.5s ago] (0, datetime.datetime(2025, 4, 21, 17, 2, 46, 455184), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 17:02:46,456 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:02:46,471 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0202秒
2025-04-21 17:03:09,537 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:03:09,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:03:09,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:03:09,538 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:03:09,539 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:03:09,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:03:24,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:03:24,454 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:03:24,455 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 3, 24, 452593))
2025-04-21 17:03:24,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:03:24,560 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:03:24,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:03:24,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:03:24,564 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:03:24,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:03:24,568 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:03:24,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:03:24,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:03:24,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:03:24,577 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:03:24,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:03:24,577 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:03:24,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:03:24,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:03:24,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:03:24,581 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:03:24,583 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:03:24,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:03:24,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:03:24,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:03:24,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:03:24,588 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:03:24,589 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:03:24,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:04:09,597 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:04:09,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:04:09,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:04:09,598 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:04:09,598 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:04:09,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:04:24,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:04:24,482 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:04:24,482 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 4, 24, 478324))
2025-04-21 17:04:24,485 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:04:24,602 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:04:24,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:04:24,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:04:24,607 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:04:24,609 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:04:24,611 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:04:24,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:04:24,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:04:24,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:04:24,618 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:04:24,618 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:04:24,620 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:04:24,622 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:04:24,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:04:24,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:04:24,627 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:04:24,628 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:04:24,629 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:04:24,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:04:24,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:04:24,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:04:24,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:04:24,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:04:24,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:05:09,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:05:09,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:05:09,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:05:09,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:05:09,650 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:05:09,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:05:09,803 - root - INFO - 应用程序关闭中...
2025-04-21 17:05:09,803 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 17:05:09,803 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 17:05:09,804 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 17:05:09,804 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 17:05:09,804 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 17:05:09,804 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 17:05:09,805 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 17:05:09,805 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 17:05:09,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 17:05:09,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 17:05:09,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:05:09,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:05:09,806 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:05:09,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:05:09,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:05:09,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-21 17:05:09,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:05:09,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:05:09,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 2
2025-04-21 17:05:09,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:05:09,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:05:09,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-21 17:05:09,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:05:09,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:05:09,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 0
2025-04-21 17:05:09,808 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 17:05:09,808 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 17:05:09,808 - root - INFO - 增强版任务调度器已停止
2025-04-21 17:05:09,808 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 17:05:09,809 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 17:05:09,809 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 17:05:09,809 - data.session - INFO - 数据库连接已关闭
2025-04-21 17:05:11,214 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 17:05:11,215 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 17:05:11,282 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 17:05:11,329 - data.session - INFO - 正在初始化数据库...
2025-04-21 17:05:11,356 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 17:05:11,375 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 17:05:11,376 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,377 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 17:05:11,377 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,378 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 17:05:11,378 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:11,379 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 17:05:11,379 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,381 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 17:05:11,381 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,384 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 17:05:11,384 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,385 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 17:05:11,385 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,386 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 17:05:11,386 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,387 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 17:05:11,388 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,388 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 17:05:11,389 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,391 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 17:05:11,391 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,392 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 17:05:11,392 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,393 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 17:05:11,393 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,394 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 17:05:11,395 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:11,396 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:11,397 - data.session - INFO - 数据库表初始化完成
2025-04-21 17:05:11,772 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 17:05:11,772 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 17:05:11,772 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 17:05:11,773 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 17:05:11,773 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 17:05:11,773 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 17:05:11,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 17:05:11,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 17:05:11,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 17:05:11,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 17:05:11,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:05:11,773 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 17:05:11,774 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 17:05:11,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:05:11,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:05:11,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:05:11,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:05:11,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:05:11,775 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 17:05:11,775 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 17:05:11,776 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 17:05:11,780 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 17:05:11,780 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 17:05:11,780 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 17:05:11,781 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 17:05:11,781 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 17:05:11,781 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 17:05:11,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:11,790 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 17:05:11,791 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (1, 1)
2025-04-21 17:05:11,792 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 17:05:11,792 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:11,794 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 17:05:11,795 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 17:05:11,795 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 17:05:11,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:11,797 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 17:05:11,798 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1000, 2000, 2001)
2025-04-21 17:05:11,799 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:11,800 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 17:05:11,801 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 17:05:11,801 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 17:05:11,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:11,802 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:11,802 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 17:05:11,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:11,807 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:05:11,807 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 5, 11, 795177))
2025-04-21 17:05:11,808 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:11,809 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:11,813 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 17:05:11,813 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 17:05:11,814 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 17:05:16,526 - root - INFO - 应用程序关闭中...
2025-04-21 17:05:16,526 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 17:05:16,526 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 17:05:16,526 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 17:05:16,527 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 17:05:16,527 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 17:05:16,527 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 17:05:16,527 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 17:05:16,527 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 17:05:16,527 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 17:05:16,527 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 17:05:16,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:05:16,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:05:16,527 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:05:16,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:05:16,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:05:16,529 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 17:05:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:05:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:05:16,529 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 17:05:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:05:16,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:05:16,532 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 17:05:16,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:05:16,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:05:16,532 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 17:05:16,532 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 17:05:16,533 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 17:05:16,533 - root - INFO - 增强版任务调度器已停止
2025-04-21 17:05:16,533 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 17:05:16,533 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 17:05:16,534 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 17:05:16,534 - data.session - INFO - 数据库连接已关闭
2025-04-21 17:05:18,150 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 17:05:18,151 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 17:05:18,854 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 17:05:18,854 - utils.component_manager - INFO - 已加载 8 个组件分类，共 51 个组件类型
2025-04-21 17:05:18,923 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 17:05:18,973 - data.session - INFO - 正在初始化数据库...
2025-04-21 17:05:18,996 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 17:05:19,012 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 17:05:19,012 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,014 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 17:05:19,014 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,015 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 17:05:19,015 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:19,015 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 17:05:19,015 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,016 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 17:05:19,016 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,017 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 17:05:19,017 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,018 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 17:05:19,018 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,019 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 17:05:19,019 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,020 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 17:05:19,022 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,023 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 17:05:19,023 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,025 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 17:05:19,026 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,028 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 17:05:19,028 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,029 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 17:05:19,029 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,030 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 17:05:19,031 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 17:05:19,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:19,034 - data.session - INFO - 数据库表初始化完成
2025-04-21 17:05:19,384 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 17:05:19,384 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 17:05:19,385 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 17:05:19,387 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 17:05:19,387 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 17:05:19,387 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 17:05:19,387 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 17:05:19,388 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 17:05:19,388 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 17:05:19,389 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 17:05:19,390 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:05:19,390 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 17:05:19,390 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 17:05:19,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:05:19,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:05:19,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:05:19,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:05:19,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:05:19,394 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 17:05:19,394 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 17:05:19,394 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 17:05:19,396 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 17:05:19,396 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 17:05:19,397 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 17:05:19,397 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 17:05:19,397 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 17:05:19,397 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 17:05:19,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:19,407 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 17:05:19,408 - sqlalchemy.engine.Engine - INFO - [generated in 0.00104s] (1, 1)
2025-04-21 17:05:19,409 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 17:05:19,410 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:19,410 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 17:05:19,411 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 17:05:19,411 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 17:05:19,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:19,413 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 17:05:19,413 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1000, 2000, 2001)
2025-04-21 17:05:19,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:19,415 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 17:05:19,416 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:19,417 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:05:19,417 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 5, 19, 411838))
2025-04-21 17:05:19,417 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 17:05:19,417 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 17:05:19,418 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:19,418 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:19,418 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:19,419 - sqlalchemy.engine.Engine - INFO - [generated in 0.00020s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 17:05:19,419 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:19,419 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 17:05:19,419 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 17:05:19,421 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 17:05:24,920 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 17:05:24,929 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:24,930 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:05:24,931 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:05:24,932 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:24,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:24,933 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:05:24,933 - sqlalchemy.engine.Engine - INFO - [cached since 0.003238s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:05:24,935 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:24,937 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 17:05:24,937 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:24,938 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:05:24,938 - sqlalchemy.engine.Engine - INFO - [cached since 0.008123s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:05:24,941 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-21 17:05:24,941 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] ('0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 4, datetime.datetime(2025, 4, 21, 17, 5, 24, 940093), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (85 characters truncated) ... TaskDefId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 21, 17, 5, 24, 937304), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 21, 17, 5, 24, 941099), datetime.datetime(2025, 4, 21, 17, 5, 24, 941099), 0)
2025-04-21 17:05:24,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:24,958 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:24,959 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:24,959 - sqlalchemy.engine.Engine - INFO - [cached since 5.54s ago] ('0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9',)
2025-04-21 17:05:24,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:24,960 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9 (优先级 1) 添加到队列 0
2025-04-21 17:05:24,961 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0425秒
2025-04-21 17:05:25,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9, 优先级: 1
2025-04-21 17:05:25,043 - services.execution.task_executor - DEBUG - 任务 0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9 设置超时时间: 3600秒
2025-04-21 17:05:25,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,045 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:25,051 - sqlalchemy.engine.Engine - INFO - [cached since 5.632s ago] ('0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9',)
2025-04-21 17:05:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:05:25,054 - sqlalchemy.engine.Engine - INFO - [cached since 0.1239s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:05:25,057 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:05:25,058 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (datetime.datetime(2025, 4, 21, 17, 5, 25, 57410), datetime.datetime(2025, 4, 21, 17, 5, 25, 57410), '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9')
2025-04-21 17:05:25,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,074 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:05:25,076 - sqlalchemy.engine.Engine - INFO - [generated in 0.00110s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 5, 25, 74418), '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9')
2025-04-21 17:05:25,077 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,085 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 17:05:25,086 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,089 - 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-21 17:05:25,090 - sqlalchemy.engine.Engine - INFO - [generated in 0.00108s] ('acf9670d-4642-475e-a5a8-1c683e49fecb', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9', datetime.datetime(2025, 4, 21, 17, 5, 25, 86411), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 17, 5, 25, 89418), datetime.datetime(2025, 4, 21, 17, 5, 25, 89418), 0)
2025-04-21 17:05:25,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,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-21 17:05:25,107 - sqlalchemy.engine.Engine - INFO - [generated in 0.00207s] ('acf9670d-4642-475e-a5a8-1c683e49fecb',)
2025-04-21 17:05:25,108 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 17:05:25,109 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 17:05:25,110 - 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-21 17:05:25,113 - sqlalchemy.engine.Engine - INFO - [generated in 0.00296s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 17, 5, 25, 110418), 'acf9670d-4642-475e-a5a8-1c683e49fecb')
2025-04-21 17:05:25,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,123 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 17:05:25,124 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 17:05:25,128 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: SubTaskBp
2025-04-21 17:05:25,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,131 - 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-21 17:05:25,132 - sqlalchemy.engine.Engine - INFO - [cached since 0.04337s ago] ('104be982-bc59-4b51-9512-d0177d5375b5', 'b1', '1', '', '{}', '{}', '{}', 'SubTaskBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9', datetime.datetime(2025, 4, 21, 17, 5, 25, 128420), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 17, 5, 25, 131411), datetime.datetime(2025, 4, 21, 17, 5, 25, 131411), 0)
2025-04-21 17:05:25,136 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,147 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 104be982-bc59-4b51-9512-d0177d5375b5
2025-04-21 17:05:25,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,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-21 17:05:25,153 - sqlalchemy.engine.Engine - INFO - [cached since 0.0475s ago] ('104be982-bc59-4b51-9512-d0177d5375b5',)
2025-04-21 17:05:25,155 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 17:05:25,156 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 17:05:25,156 - 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-21 17:05:25,157 - sqlalchemy.engine.Engine - INFO - [cached since 0.04678s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 17, 5, 25, 156492), '104be982-bc59-4b51-9512-d0177d5375b5')
2025-04-21 17:05:25,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,171 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 17:05:25,172 - services.execution.handlers.sub_task - INFO - 开始执行子任务: a0734d2a-c7a8-4ae9-99ce-c6cd82355983, 异步执行: False, 指定ID: None
2025-04-21 17:05:25,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:25,181 - sqlalchemy.engine.Engine - INFO - [cached since 5.763s ago] ('0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9',)
2025-04-21 17:05:25,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:05:25,195 - sqlalchemy.engine.Engine - INFO - [cached since 0.2643s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 17:05:25,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,201 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,201 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:05:25,202 - sqlalchemy.engine.Engine - INFO - [cached since 0.2715s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 17:05:25,204 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-21 17:05:25,205 - sqlalchemy.engine.Engine - INFO - [cached since 0.265s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', '第一级子任务', 2, datetime.datetime(2025, 4, 21, 17, 5, 25, 204504), None, None, <TaskStatus.QUEUED: 1002>, None, None, None, '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9', '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9', None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (116 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, 21, 17, 5, 25, 200490), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 21, 17, 5, 25, 204504), datetime.datetime(2025, 4, 21, 17, 5, 25, 204504), 0)
2025-04-21 17:05:25,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,220 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:25,221 - sqlalchemy.engine.Engine - INFO - [cached since 5.802s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:25,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,227 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eded3a70-f7c8-4c6a-95be-587716cf5d52 (优先级 1) 添加到队列 0
2025-04-21 17:05:25,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,229 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:25,230 - sqlalchemy.engine.Engine - INFO - [cached since 5.811s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:25,233 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: eded3a70-f7c8-4c6a-95be-587716cf5d52, 优先级: 1
2025-04-21 17:05:25,326 - services.execution.task_executor - DEBUG - 任务 eded3a70-f7c8-4c6a-95be-587716cf5d52 设置超时时间: 3600秒
2025-04-21 17:05:25,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,328 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:25,328 - sqlalchemy.engine.Engine - INFO - [cached since 5.91s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:25,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:05:25,331 - sqlalchemy.engine.Engine - INFO - [cached since 0.4006s ago] ('a0734d2a-c7a8-4ae9-99ce-c6cd82355983',)
2025-04-21 17:05:25,333 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:05:25,333 - sqlalchemy.engine.Engine - INFO - [cached since 0.2764s ago] (datetime.datetime(2025, 4, 21, 17, 5, 25, 333481), datetime.datetime(2025, 4, 21, 17, 5, 25, 333481), 'eded3a70-f7c8-4c6a-95be-587716cf5d52')
2025-04-21 17:05:25,334 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,343 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,344 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:05:25,344 - sqlalchemy.engine.Engine - INFO - [cached since 0.2701s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 5, 25, 344562), 'eded3a70-f7c8-4c6a-95be-587716cf5d52')
2025-04-21 17:05:25,345 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,353 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 17:05:25,354 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,354 - 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-21 17:05:25,355 - sqlalchemy.engine.Engine - INFO - [cached since 0.266s ago] ('fac0aa32-3afe-420c-ade7-8ae5a3183393', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'eded3a70-f7c8-4c6a-95be-587716cf5d52', datetime.datetime(2025, 4, 21, 17, 5, 25, 353529), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 17, 5, 25, 354530), datetime.datetime(2025, 4, 21, 17, 5, 25, 354530), 0)
2025-04-21 17:05:25,356 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,364 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 17:05:25,365 - sqlalchemy.engine.Engine - INFO - [cached since 0.2599s ago] ('fac0aa32-3afe-420c-ade7-8ae5a3183393',)
2025-04-21 17:05:25,366 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 17:05:25,367 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 17:05:25,367 - 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-21 17:05:25,368 - sqlalchemy.engine.Engine - INFO - [cached since 0.2573s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 17, 5, 25, 367529), 'fac0aa32-3afe-420c-ade7-8ae5a3183393')
2025-04-21 17:05:25,368 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,375 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 17:05:25,375 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 17:05:25,376 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: DelayBp
2025-04-21 17:05:25,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,377 - 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-21 17:05:25,377 - sqlalchemy.engine.Engine - INFO - [cached since 0.2884s ago] ('c6fa90ce-8d86-40e9-ba71-8410f98fbe6d', 'b1', '1', '', '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{"timeMillis": "100000"}', '{}', 'DelayBp', 'a0734d2a-c7a8-4ae9-99ce-c6cd82355983', 'eded3a70-f7c8-4c6a-95be-587716cf5d52', datetime.datetime(2025, 4, 21, 17, 5, 25, 376529), 1001, '{"timeMillis": {"type": "Simple", "value": "100000", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 21, 17, 5, 25, 377529), datetime.datetime(2025, 4, 21, 17, 5, 25, 377529), 0)
2025-04-21 17:05:25,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,385 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c6fa90ce-8d86-40e9-ba71-8410f98fbe6d
2025-04-21 17:05:25,385 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:25,386 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 17:05:25,386 - sqlalchemy.engine.Engine - INFO - [cached since 0.2817s ago] ('c6fa90ce-8d86-40e9-ba71-8410f98fbe6d',)
2025-04-21 17:05:25,388 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 17:05:25,389 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 17:05:25,389 - 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-21 17:05:25,389 - sqlalchemy.engine.Engine - INFO - [cached since 0.2787s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 17, 5, 25, 389231), 'c6fa90ce-8d86-40e9-ba71-8410f98fbe6d')
2025-04-21 17:05:25,390 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:25,397 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 17:05:28,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:28,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:28,256 - sqlalchemy.engine.Engine - INFO - [cached since 8.837s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:28,256 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:31,268 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:31,268 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:31,268 - sqlalchemy.engine.Engine - INFO - [cached since 11.85s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:31,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:34,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:34,264 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:34,265 - sqlalchemy.engine.Engine - INFO - [cached since 14.85s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:34,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:37,268 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:37,268 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:37,268 - sqlalchemy.engine.Engine - INFO - [cached since 17.85s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:37,270 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:40,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:40,280 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:40,280 - sqlalchemy.engine.Engine - INFO - [cached since 20.86s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:40,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:43,291 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:43,293 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:43,293 - sqlalchemy.engine.Engine - INFO - [cached since 23.87s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:43,296 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,136 - root - INFO - 请求开始: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 来自 127.0.0.1
2025-04-21 17:05:46,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,138 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 17:05:46,140 - sqlalchemy.engine.Engine - INFO - [cached since 21.21s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 17:05:46,141 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.def_id = %s AND vwed_taskrecord.status = %s
2025-04-21 17:05:46,144 - sqlalchemy.engine.Engine - INFO - [generated in 0.00235s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a', <TaskStatus.RUNNING: 1001>)
2025-04-21 17:05:46,146 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: 0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9
2025-04-21 17:05:46,146 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,147 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:46,148 - sqlalchemy.engine.Engine - INFO - [cached since 26.73s ago] ('0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9',)
2025-04-21 17:05:46,149 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 17:05:46,150 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9', <TaskStatus.RUNNING: 1001>)
2025-04-21 17:05:46,151 - services.enhanced_scheduler.task_scheduler - INFO - 取消子任务: eded3a70-f7c8-4c6a-95be-587716cf5d52, 父任务: 0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9
2025-04-21 17:05:46,152 - services.enhanced_scheduler.task_scheduler - INFO - 准备取消任务: eded3a70-f7c8-4c6a-95be-587716cf5d52
2025-04-21 17:05:46,173 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 17:05:46,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,174 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:46,175 - sqlalchemy.engine.Engine - INFO - [cached since 26.76s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:46,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.parent_task_record_id = %s AND vwed_taskrecord.status = %s
2025-04-21 17:05:46,178 - sqlalchemy.engine.Engine - INFO - [cached since 0.02821s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52', <TaskStatus.RUNNING: 1001>)
2025-04-21 17:05:46,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,182 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:05:46,182 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (datetime.datetime(2025, 4, 21, 17, 5, 46, 180333), '任务被取消', <TaskStatus.CANCELED: 2001>, 1, datetime.datetime(2025, 4, 21, 17, 5, 46, 182333), 'eded3a70-f7c8-4c6a-95be-587716cf5d52')
2025-04-21 17:05:46,183 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,191 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,193 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 17:05:46,194 - sqlalchemy.engine.Engine - INFO - [cached since 0.01248s ago] (datetime.datetime(2025, 4, 21, 17, 5, 46, 192334), '任务被取消', <TaskStatus.CANCELED: 2001>, 1, datetime.datetime(2025, 4, 21, 17, 5, 46, 193363), '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9')
2025-04-21 17:05:46,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,204 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET status=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 17:05:46,204 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (0, datetime.datetime(2025, 4, 21, 17, 5, 46, 204334), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 17:05:46,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,215 - root - INFO - 请求完成: POST /api/vwed-task-edit/stop-all/9e0e17e3-7bad-4632-9725-1c6a469c5e2a 状态码: 200 耗时: 0.0790秒
2025-04-21 17:05:46,311 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,312 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:46,312 - sqlalchemy.engine.Engine - INFO - [cached since 26.89s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:46,313 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,314 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 17:05:46,315 - sqlalchemy.engine.Engine - INFO - [cached since 26.9s ago] ('eded3a70-f7c8-4c6a-95be-587716cf5d52',)
2025-04-21 17:05:46,316 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,318 - 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-21 17:05:46,318 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] ('bac2f38d-4cb9-41c9-ac96-f988565d96fc', 1, '{"success": true, "message": "子任务执行成功", "output": {"subtaskId": "a0734d2a-c7a8-4ae9-99ce-c6cd82355983", "taskRecordId": "eded3a70-f7c8-4c6a-95be-5877 ... (19 characters truncated) ...  false, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "eded3a70-f7c8-4c6a-95be-587716cf5d52", "output": {}}, "taskStatus": 2001}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9', datetime.datetime(2025, 4, 21, 17, 5, 46, 318387), datetime.datetime(2025, 4, 21, 17, 5, 46, 318387), 0)
2025-04-21 17:05:46,323 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,336 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 17:05:46,336 - sqlalchemy.engine.Engine - INFO - [cached since 21.23s ago] ('104be982-bc59-4b51-9512-d0177d5375b5',)
2025-04-21 17:05:46,337 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 17:05:46,337 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 17:05:46,338 - 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-21 17:05:46,339 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] (datetime.datetime(2025, 4, 21, 17, 5, 46, 337715), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': 'eded3a70-f7c8-4c6a-95be-587716cf5d52', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': 'eded3a70-f7c8-4c6a-95be-587716cf5d52', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 17, 5, 46, 338720), '104be982-bc59-4b51-9512-d0177d5375b5')
2025-04-21 17:05:46,339 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,347 - 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-21 17:05:46,347 - sqlalchemy.engine.Engine - INFO - [cached since 0.02989s ago] ('c011702e-d6c8-478d-9611-5735ef46631f', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (130 characters truncated) ... lse, "output": {"success": true, "message": "子任务执行成功", "taskRecordId": "eded3a70-f7c8-4c6a-95be-587716cf5d52", "output": {}}, "taskStatus": 2001}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9', datetime.datetime(2025, 4, 21, 17, 5, 46, 347751), datetime.datetime(2025, 4, 21, 17, 5, 46, 347751), 0)
2025-04-21 17:05:46,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,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-21 17:05:46,362 - sqlalchemy.engine.Engine - INFO - [cached since 21.26s ago] ('acf9670d-4642-475e-a5a8-1c683e49fecb',)
2025-04-21 17:05:46,363 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 17:05:46,364 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 17:05:46,364 - 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-21 17:05:46,365 - sqlalchemy.engine.Engine - INFO - [cached since 0.02738s ago] (datetime.datetime(2025, 4, 21, 17, 5, 46, 364928), '执行成功', 1000, "{'subtask_success': True, 'subtask_message': '子任务执行成功', 'subtask_taskRecordId': 'eded3a70-f7c8-4c6a-95be-587716cf5d52', 'subtask_output': {}, 'subtas ... (42 characters truncated) ... 务执行成功', 'output': {'success': True, 'message': '子任务执行成功', 'taskRecordId': 'eded3a70-f7c8-4c6a-95be-587716cf5d52', 'output': {}}, 'taskStatus': 2001}}", '执行成功', datetime.datetime(2025, 4, 21, 17, 5, 46, 364928), 'acf9670d-4642-475e-a5a8-1c683e49fecb')
2025-04-21 17:05:46,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,375 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:05:46,377 - 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-21 17:05:46,377 - sqlalchemy.engine.Engine - INFO - [generated in 0.00099s] (datetime.datetime(2025, 4, 21, 17, 5, 46, 374936), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 21304, 1, datetime.datetime(2025, 4, 21, 17, 5, 46, 377928), '0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9')
2025-04-21 17:05:46,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:05:46,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 0e89c59c-981c-4f27-bfbf-ed7b2d4c2ca9, 结果: True
2025-04-21 17:06:19,437 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:06:19,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:06:19,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:06:19,441 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:06:19,443 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:06:19,447 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:06:19,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:06:19,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:06:19,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:06:19,447 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:06:19,448 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:06:19,448 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 6, 19, 435894))
2025-04-21 17:06:19,450 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:06:19,450 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:06:19,450 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:06:19,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:06:19,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:06:19,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:06:19,451 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:06:19,451 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:06:19,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:06:19,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:06:34,477 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:06:34,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:06:34,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:06:34,479 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:06:34,480 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:06:34,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:06:49,479 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:06:49,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:06:49,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:06:49,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:06:49,483 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:06:49,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:07:19,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:07:19,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:07:19,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:07:19,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:07:19,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:07:19,482 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:07:19,483 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:07:19,483 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:07:19,484 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 7, 19, 480082))
2025-04-21 17:07:19,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:07:19,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:07:19,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:07:19,485 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:07:19,485 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:07:19,485 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:07:19,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:07:19,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:07:19,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:07:19,486 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:07:19,487 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:07:19,487 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:07:19,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:07:34,503 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:07:34,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:07:34,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:07:34,508 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:07:34,509 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:07:34,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:07:49,527 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:07:49,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:07:49,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:07:49,528 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:07:49,528 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:07:49,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:08:19,503 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:08:19,503 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:08:19,503 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 8, 19, 502098))
2025-04-21 17:08:19,504 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:08:19,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:08:19,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:08:19,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:08:19,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:08:19,504 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:08:19,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:08:19,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:08:19,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:08:19,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:08:19,505 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:08:19,505 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:08:19,505 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:08:19,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:08:19,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:08:19,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:08:19,507 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:08:19,507 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:08:19,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:08:34,522 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:08:34,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:08:34,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:08:34,526 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:08:34,526 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:08:34,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:08:49,534 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:08:49,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:08:49,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:08:49,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:08:49,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:08:49,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:09:19,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:09:19,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:09:19,531 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 9, 19, 526992))
2025-04-21 17:09:19,534 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:09:19,535 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:09:19,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:09:19,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:09:19,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:09:19,536 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:09:19,536 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:09:19,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:09:19,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:09:19,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:09:19,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:09:19,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:09:19,537 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:09:19,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:09:19,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:09:19,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:09:19,538 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:09:19,538 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:09:19,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:09:34,537 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:09:34,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:09:34,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:09:34,540 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:09:34,540 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:09:34,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:10:04,549 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:10:04,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:10:04,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:10:04,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:10:04,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:10:04,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:10:19,558 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:10:19,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:10:19,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:10:19,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:10:19,562 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:10:19,565 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:10:19,567 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:10:19,570 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:10:19,574 - sqlalchemy.engine.Engine - INFO - [cached since 300.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 10, 19, 558014))
2025-04-21 17:10:19,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:10:19,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:10:19,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:10:19,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:10:19,586 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:10:19,589 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:10:19,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:10:19,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:10:19,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:10:19,590 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:10:19,591 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:10:19,600 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:10:19,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:10:34,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:10:34,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:10:34,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:10:34,608 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:10:34,609 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:10:34,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:11:04,646 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:11:04,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:11:04,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:11:04,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:11:04,651 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:11:04,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:11:19,624 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:11:19,626 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:11:19,627 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 11, 19, 624363))
2025-04-21 17:11:19,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:11:19,634 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:11:19,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:11:19,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:11:19,638 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:11:19,638 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:11:19,638 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:11:19,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:11:19,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:11:19,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:11:19,639 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:11:19,639 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:11:19,639 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:11:19,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:11:19,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:11:19,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:11:19,640 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:11:19,640 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:11:19,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:11:34,650 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:11:34,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:11:34,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:11:34,651 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:11:34,651 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:11:34,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:12:19,645 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:12:19,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:12:19,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:12:19,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:12:19,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:12:19,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:12:19,648 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:12:19,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:12:19,651 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 12, 19, 643726))
2025-04-21 17:12:19,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:12:19,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:12:19,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:12:19,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:12:19,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:12:19,652 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:12:19,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:12:19,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:12:19,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:12:19,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:12:19,653 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:12:19,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:12:19,653 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:12:19,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:12:19,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:12:19,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:12:19,654 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:12:19,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:12:19,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:12:34,674 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:12:34,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:12:34,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:12:34,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:12:34,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:12:34,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:13:19,682 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:13:19,684 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:13:19,686 - sqlalchemy.engine.Engine - INFO - [cached since 480.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 13, 19, 681596))
2025-04-21 17:13:19,691 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:13:19,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:13:19,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:13:19,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:13:19,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:13:19,696 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:13:19,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:13:19,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:13:19,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:13:19,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:13:19,706 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:13:19,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:13:19,708 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:13:19,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:13:19,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:13:19,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:13:19,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:13:19,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:13:19,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:13:19,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:13:19,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:13:19,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:13:19,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:13:19,714 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:13:19,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:13:34,729 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:13:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:13:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:13:34,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:13:34,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:13:34,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:14:08,321 - root - INFO - 请求开始: OPTIONS /api/vwed-task-platform/list 来自 192.168.189.153
2025-04-21 17:14:08,322 - root - INFO - 请求完成: OPTIONS /api/vwed-task-platform/list 状态码: 200 耗时: 0.0010秒
2025-04-21 17:14:08,361 - root - INFO - 请求开始: GET /api/vwed-task-platform/list 来自 192.168.189.153
2025-04-21 17:14:08,371 - root - INFO - 请求完成: GET /api/vwed-task-platform/list 状态码: 404 耗时: 0.0109秒
2025-04-21 17:14:14,936 - root - INFO - 请求开始: OPTIONS /api/vwed-task-platform/list 来自 192.168.189.153
2025-04-21 17:14:14,937 - root - INFO - 请求完成: OPTIONS /api/vwed-task-platform/list 状态码: 200 耗时: 0.0010秒
2025-04-21 17:14:15,074 - root - INFO - 请求开始: GET /api/vwed-task-platform/list 来自 192.168.189.153
2025-04-21 17:14:15,075 - root - INFO - 请求完成: GET /api/vwed-task-platform/list 状态码: 404 耗时: 0.0011秒
2025-04-21 17:14:19,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:14:19,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:14:19,723 - sqlalchemy.engine.Engine - INFO - [cached since 540.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 14, 19, 722411))
2025-04-21 17:14:19,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:14:19,753 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:14:19,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:14:19,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:14:19,754 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:14:19,754 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:14:19,755 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:14:19,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:14:19,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:14:19,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:14:19,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:14:19,755 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:14:19,755 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:14:19,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:14:19,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:14:19,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:14:19,756 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:14:19,756 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:14:19,756 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:14:19,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:14:19,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:14:19,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:14:19,756 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:14:19,756 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:14:19,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:14:34,782 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:14:34,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:14:34,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:14:34,782 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:14:34,782 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:14:34,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:14:55,174 - root - INFO - 请求开始: GET /api/vwed-task-platform/list 来自 192.168.189.153
2025-04-21 17:14:55,177 - root - INFO - 请求完成: GET /api/vwed-task-platform/list 状态码: 404 耗时: 0.0035秒
2025-04-21 17:15:19,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:15:19,722 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:15:19,724 - sqlalchemy.engine.Engine - INFO - [cached since 600.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 15, 19, 718329))
2025-04-21 17:15:19,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:15:19,796 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:15:19,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:15:19,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:15:19,796 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:15:19,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:15:19,796 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:15:19,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:15:19,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:15:19,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:15:19,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:15:19,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:15:19,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:15:19,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:15:19,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:15:19,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:15:19,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:15:19,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:15:19,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:15:19,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:15:19,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:15:19,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:15:19,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:15:19,799 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:15:19,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:15:25,149 - root - INFO - 请求开始: GET /api/vwed-task/list 来自 192.168.189.153
2025-04-21 17:15:25,157 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:15:25,161 - sqlalchemy.engine.Engine - INFO - SELECT count(*) AS count_1 
FROM (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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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) AS anon_1
2025-04-21 17:15:25,162 - sqlalchemy.engine.Engine - INFO - [generated in 0.00109s] {}
2025-04-21 17:15:25,169 - 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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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 ORDER BY vwed_taskdef.create_date DESC 
 LIMIT %(param_1)s, %(param_2)s
2025-04-21 17:15:25,170 - sqlalchemy.engine.Engine - INFO - [generated in 0.00119s] {'param_1': 0, 'param_2': 10}
2025-04-21 17:15:25,172 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 17:15:25,174 - root - INFO - 请求完成: GET /api/vwed-task/list 状态码: 200 耗时: 0.0247秒
2025-04-21 17:15:25,726 - root - INFO - 请求开始: GET /favicon.ico 来自 192.168.189.153
2025-04-21 17:15:25,726 - root - INFO - 请求完成: GET /favicon.ico 状态码: 404 耗时: 0.0000秒
2025-04-21 17:15:34,806 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:15:34,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:15:34,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:15:34,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:15:34,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:15:34,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:15:48,555 - root - INFO - 请求开始: OPTIONS /api/vwed-task/list 来自 192.168.189.153
2025-04-21 17:15:48,557 - root - INFO - 请求完成: OPTIONS /api/vwed-task/list 状态码: 200 耗时: 0.0021秒
2025-04-21 17:15:48,608 - root - INFO - 请求开始: GET /api/vwed-task/list 来自 192.168.189.153
2025-04-21 17:15:48,610 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:15:48,612 - sqlalchemy.engine.Engine - INFO - SELECT count(*) AS count_1 
FROM (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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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) AS anon_1
2025-04-21 17:15:48,612 - sqlalchemy.engine.Engine - INFO - [cached since 23.45s ago] {}
2025-04-21 17:15:48,615 - 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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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 ORDER BY vwed_taskdef.create_date DESC 
 LIMIT %(param_1)s, %(param_2)s
2025-04-21 17:15:48,615 - sqlalchemy.engine.Engine - INFO - [cached since 23.45s ago] {'param_1': 0, 'param_2': 10}
2025-04-21 17:15:48,617 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 17:15:48,621 - root - INFO - 请求完成: GET /api/vwed-task/list 状态码: 200 耗时: 0.0129秒
2025-04-21 17:16:19,739 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:16:19,742 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 17:16:19,743 - sqlalchemy.engine.Engine - INFO - [cached since 660.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 16, 16, 19, 739293))
2025-04-21 17:16:19,744 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 17:16:19,817 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 17:16:19,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:16:19,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:16:19,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:16:19,818 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 17:16:19,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 17:16:19,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 17:16:19,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:16:19,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:16:19,821 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 17:16:19,821 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 17:16:19,822 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 17:16:19,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 17:16:19,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:16:19,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:16:19,822 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 17:16:19,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 17:16:19,822 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 17:16:19,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 17:16:19,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:16:19,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:16:19,823 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 17:16:19,823 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 17:16:19,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 17:16:30,626 - root - INFO - 请求开始: OPTIONS /api/vwed-task/list 来自 192.168.189.153
2025-04-21 17:16:30,627 - root - INFO - 请求完成: OPTIONS /api/vwed-task/list 状态码: 200 耗时: 0.0010秒
2025-04-21 17:16:30,826 - root - INFO - 请求开始: GET /api/vwed-task/list 来自 192.168.189.153
2025-04-21 17:16:30,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 17:16:30,829 - sqlalchemy.engine.Engine - INFO - SELECT count(*) AS count_1 
FROM (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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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) AS anon_1
2025-04-21 17:16:30,830 - sqlalchemy.engine.Engine - INFO - [cached since 65.67s ago] {}
2025-04-21 17:16:30,838 - 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.create_date AS vwed_taskdef_create_date, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_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 ORDER BY vwed_taskdef.create_date DESC 
 LIMIT %(param_1)s, %(param_2)s
2025-04-21 17:16:30,842 - sqlalchemy.engine.Engine - INFO - [cached since 65.67s ago] {'param_1': 0, 'param_2': 10}
2025-04-21 17:16:30,848 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-21 17:16:30,850 - root - INFO - 请求完成: GET /api/vwed-task/list 状态码: 200 耗时: 0.0236秒
2025-04-21 17:16:34,832 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 17:16:34,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:16:34,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:16:34,835 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 17:16:34,835 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 17:16:34,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 17:16:57,419 - root - INFO - 应用程序关闭中...
2025-04-21 17:16:57,421 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 17:16:57,421 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 17:16:57,421 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 17:16:57,422 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 17:16:57,422 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 17:16:57,422 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 17:16:57,423 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 17:16:57,423 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 17:16:57,423 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 17:16:57,424 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 17:16:57,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 17:16:57,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 17:16:57,425 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 17:16:57,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 17:16:57,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 17:16:57,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-21 17:16:57,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 17:16:57,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 17:16:57,430 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-21 17:16:57,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 17:16:57,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 17:16:57,432 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-21 17:16:57,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 17:16:57,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 17:16:57,434 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 0
2025-04-21 17:16:57,434 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 17:16:57,435 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 17:16:57,435 - root - INFO - 增强版任务调度器已停止
2025-04-21 17:16:57,436 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 17:16:57,436 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 17:16:57,438 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 17:16:57,440 - data.session - INFO - 数据库连接已关闭
2025-04-21 18:32:08,145 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:32:08,145 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:32:08,886 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:32:08,886 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:32:08,943 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:32:08,996 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:32:09,015 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:32:09,035 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:32:09,036 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,036 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:32:09,036 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,037 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:32:09,037 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,038 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:09,038 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:32:09,038 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,040 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:32:09,041 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,042 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:32:09,042 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,043 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:32:09,043 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,044 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:32:09,044 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,045 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:32:09,045 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,046 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:32:09,047 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,047 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:32:09,048 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,050 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:32:09,051 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,051 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:32:09,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,053 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:32:09,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:32:09,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:09,054 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:32:09,404 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:32:09,405 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:32:09,405 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:32:09,405 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:32:09,405 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:32:09,405 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:32:09,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:32:09,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:32:09,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:32:09,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:32:09,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:32:09,406 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:32:09,407 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:32:09,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:32:09,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:32:09,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:32:09,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:32:09,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:32:09,409 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:32:09,409 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:32:09,425 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:32:09,425 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:32:09,426 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:32:09,426 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:32:09,427 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:32:09,427 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:32:09,427 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:32:09,428 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:09,436 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:32:09,437 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (1, 1)
2025-04-21 18:32:09,438 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:32:09,438 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:09,439 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:32:09,440 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:32:09,440 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:32:09,441 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:09,442 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:32:09,442 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (1000, 2000, 2001)
2025-04-21 18:32:09,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:09,445 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:32:09,446 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:32:09,447 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:32:09,448 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:09,449 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:32:09,450 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 32, 9, 440732))
2025-04-21 18:32:09,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:09,452 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:32:09,453 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:32:09,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:09,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:09,455 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:32:09,455 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:32:09,455 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:32:38,574 - root - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-21 18:32:38,577 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:38,578 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:32:38,579 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:32:38,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:38,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:38,587 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:32:38,590 - sqlalchemy.engine.Engine - INFO - [cached since 0.01222s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:32:38,594 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-21 18:32:38,595 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (5, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 21, 18, 32, 38, 594353), '9e0e17e3-7bad-4632-9725-1c6a469c5e2a')
2025-04-21 18:32:38,596 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:38,605 - root - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0310秒
2025-04-21 18:32:42,555 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 18:32:42,557 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:32:42,559 - sqlalchemy.engine.Engine - INFO - [cached since 3.981s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:32:42,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,565 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:32:42,565 - sqlalchemy.engine.Engine - INFO - [cached since 3.987s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:32:42,566 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,567 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 18:32:42,567 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:32:42,567 - sqlalchemy.engine.Engine - INFO - [cached since 3.99s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:32:42,569 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-21 18:32:42,570 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] ('174be2de-d00a-45ab-9d01-afd5bca33036', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 5, datetime.datetime(2025, 4, 21, 18, 32, 42, 568803), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "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, 21, 18, 32, 42, 567293), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 21, 18, 32, 42, 569307), datetime.datetime(2025, 4, 21, 18, 32, 42, 569307), 0)
2025-04-21 18:32:42,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,581 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:32:42,583 - sqlalchemy.engine.Engine - INFO - [cached since 33.13s ago] ('174be2de-d00a-45ab-9d01-afd5bca33036',)
2025-04-21 18:32:42,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,586 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 174be2de-d00a-45ab-9d01-afd5bca33036 (优先级 1) 添加到队列 0
2025-04-21 18:32:42,586 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0309秒
2025-04-21 18:32:42,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 174be2de-d00a-45ab-9d01-afd5bca33036, 优先级: 1
2025-04-21 18:32:42,612 - services.execution.task_executor - DEBUG - 任务 174be2de-d00a-45ab-9d01-afd5bca33036 设置超时时间: 3600秒
2025-04-21 18:32:42,612 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:32:42,612 - sqlalchemy.engine.Engine - INFO - [cached since 33.16s ago] ('174be2de-d00a-45ab-9d01-afd5bca33036',)
2025-04-21 18:32:42,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:32:42,614 - sqlalchemy.engine.Engine - INFO - [cached since 4.036s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:32:42,615 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:32:42,615 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (datetime.datetime(2025, 4, 21, 18, 32, 42, 614718), datetime.datetime(2025, 4, 21, 18, 32, 42, 615714), '174be2de-d00a-45ab-9d01-afd5bca33036')
2025-04-21 18:32:42,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,626 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,627 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:32:42,627 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 18, 32, 42, 627081), '174be2de-d00a-45ab-9d01-afd5bca33036')
2025-04-21 18:32:42,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,634 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 18:32:42,635 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,637 - 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-21 18:32:42,637 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('84e01203-df5b-4ded-bf56-8c98a258a487', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '174be2de-d00a-45ab-9d01-afd5bca33036', datetime.datetime(2025, 4, 21, 18, 32, 42, 634060), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 18, 32, 42, 637061), datetime.datetime(2025, 4, 21, 18, 32, 42, 637061), 0)
2025-04-21 18:32:42,638 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,645 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,646 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:32:42,646 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('84e01203-df5b-4ded-bf56-8c98a258a487',)
2025-04-21 18:32:42,647 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 18:32:42,647 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 18:32:42,648 - 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-21 18:32:42,650 - sqlalchemy.engine.Engine - INFO - [generated in 0.00184s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 18, 32, 42, 648061), '84e01203-df5b-4ded-bf56-8c98a258a487')
2025-04-21 18:32:42,651 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,659 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 18:32:42,659 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 18:32:42,660 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-21 18:32:42,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,661 - 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-21 18:32:42,665 - sqlalchemy.engine.Engine - INFO - [cached since 0.02809s ago] ('0ec8ed7d-75d9-456e-9227-f116ee9ca9bd', 'b1', '1', '', '{}', '{}', '{}', 'ReleaseResourceBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '174be2de-d00a-45ab-9d01-afd5bca33036', datetime.datetime(2025, 4, 21, 18, 32, 42, 660060), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 18, 32, 42, 661060), datetime.datetime(2025, 4, 21, 18, 32, 42, 661060), 0)
2025-04-21 18:32:42,667 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,677 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 0ec8ed7d-75d9-456e-9227-f116ee9ca9bd
2025-04-21 18:32:42,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,685 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:32:42,687 - sqlalchemy.engine.Engine - INFO - [cached since 0.0411s ago] ('0ec8ed7d-75d9-456e-9227-f116ee9ca9bd',)
2025-04-21 18:32:42,691 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 18:32:42,692 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 18:32:42,695 - 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-21 18:32:42,698 - sqlalchemy.engine.Engine - INFO - [cached since 0.05043s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 18, 32, 42, 695070), '0ec8ed7d-75d9-456e-9227-f116ee9ca9bd')
2025-04-21 18:32:42,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,708 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 18:32:42,714 - services.execution.block_executor - ERROR - 子块 1 执行异常: 'NoneType' object has no attribute 'get'
2025-04-21 18:32:42,717 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,717 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:32:42,718 - sqlalchemy.engine.Engine - INFO - [cached since 0.07199s ago] ('0ec8ed7d-75d9-456e-9227-f116ee9ca9bd',)
2025-04-21 18:32:42,719 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 18:32:42,720 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 18:32:42,720 - 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-21 18:32:42,720 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (datetime.datetime(2025, 4, 21, 18, 32, 42, 720060), "子块 1 执行异常: 'NoneType' object has no attribute 'get'", 2000, "子块 1 执行异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 21, 18, 32, 42, 720060), '0ec8ed7d-75d9-456e-9227-f116ee9ca9bd')
2025-04-21 18:32:42,721 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,728 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,731 - 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-21 18:32:42,732 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] ('6083e434-ea3a-404e-9bde-27bb016946f9', 3, '{"success": false, "message": "子块 1 执行异常: \'NoneType\' object has no attribute \'get\'", "block_id": 1, "error": "\'NoneType\' object has no attribute \'get\'"}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '174be2de-d00a-45ab-9d01-afd5bca33036', datetime.datetime(2025, 4, 21, 18, 32, 42, 731067), datetime.datetime(2025, 4, 21, 18, 32, 42, 731067), 0)
2025-04-21 18:32:42,735 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,751 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:32:42,751 - sqlalchemy.engine.Engine - INFO - [cached since 0.1057s ago] ('84e01203-df5b-4ded-bf56-8c98a258a487',)
2025-04-21 18:32:42,752 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 18:32:42,752 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 18:32:42,753 - 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-21 18:32:42,753 - sqlalchemy.engine.Engine - INFO - [cached since 0.03369s ago] (datetime.datetime(2025, 4, 21, 18, 32, 42, 753484), "子块 1 执行异常: 'NoneType' object has no attribute 'get'", 2000, "子块 1 执行异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 21, 18, 32, 42, 753484), '84e01203-df5b-4ded-bf56-8c98a258a487')
2025-04-21 18:32:42,754 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:32:42,765 - 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-21 18:32:42,767 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] (datetime.datetime(2025, 4, 21, 18, 32, 42, 762489), "子块 1 执行异常: 'NoneType' object has no attribute 'get'", <TaskStatus.FAILED: 2000>, 137, 1, datetime.datetime(2025, 4, 21, 18, 32, 42, 765497), '174be2de-d00a-45ab-9d01-afd5bca33036')
2025-04-21 18:32:42,769 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:32:42,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 174be2de-d00a-45ab-9d01-afd5bca33036, 结果: False
2025-04-21 18:33:09,466 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:33:09,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:33:09,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:33:09,468 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:33:09,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:33:09,471 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:33:09,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:33:09,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:33:09,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:33:09,478 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:09,481 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:33:09,483 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 33, 9, 466669))
2025-04-21 18:33:09,483 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:33:09,483 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:33:09,484 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:33:09,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:33:09,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:33:09,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:33:09,489 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:33:09,492 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:33:09,492 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:33:09,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:09,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:33:09,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:33:09,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:33:09,494 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:33:09,494 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:33:09,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:33:28,341 - root - INFO - 应用程序关闭中...
2025-04-21 18:33:28,342 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:33:28,342 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:33:28,342 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:33:28,342 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:33:28,343 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 18:33:28,343 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:33:28,343 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:33:28,343 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 18:33:28,344 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:33:28,344 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:33:28,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:33:28,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:33:28,345 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:33:28,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:33:28,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:33:28,345 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-21 18:33:28,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:33:28,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:33:28,345 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 2
2025-04-21 18:33:28,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:33:28,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:33:28,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 18:33:28,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:33:28,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:33:28,347 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 18:33:28,347 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 18:33:28,347 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 18:33:28,347 - root - INFO - 增强版任务调度器已停止
2025-04-21 18:33:28,347 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 18:33:28,348 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 18:33:28,348 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 18:33:28,349 - data.session - INFO - 数据库连接已关闭
2025-04-21 18:33:30,293 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:33:30,295 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:33:31,044 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:33:31,044 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:33:31,104 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:33:31,153 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:33:31,164 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:33:31,189 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:33:31,189 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,190 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:33:31,190 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,192 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:33:31,192 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:31,193 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:33:31,194 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,195 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:33:31,196 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,199 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:33:31,199 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,201 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:33:31,201 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,202 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:33:31,203 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,204 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:33:31,204 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,205 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:33:31,206 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,208 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:33:31,209 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,209 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:33:31,210 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,212 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:33:31,213 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,213 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:33:31,214 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:33:31,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:31,217 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:33:31,566 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:33:31,566 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:33:31,566 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:33:31,567 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:33:31,568 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:33:31,568 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:33:31,568 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:33:31,568 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:33:31,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:33:31,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:33:31,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:33:31,569 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:33:31,570 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:33:31,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:33:31,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:33:31,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:33:31,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:33:31,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:33:31,572 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:33:31,572 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:33:31,572 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:33:31,574 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:33:31,574 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:33:31,575 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:33:31,575 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:33:31,575 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:33:31,576 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:33:31,576 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:31,585 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:33:31,585 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (1, 1)
2025-04-21 18:33:31,586 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:33:31,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:31,587 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:33:31,587 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:33:31,587 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:33:31,588 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:31,591 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:33:31,591 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1000, 2000, 2001)
2025-04-21 18:33:31,592 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:31,593 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:33:31,594 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:31,594 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:33:31,595 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 33, 31, 588384))
2025-04-21 18:33:31,595 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:33:31,595 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:33:31,595 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:31,598 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:33:31,598 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:33:31,599 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:31,600 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:31,600 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:33:31,600 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:33:31,600 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:33:36,634 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 18:33:36,636 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:33:36,638 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:33:36,639 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,640 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:33:36,641 - sqlalchemy.engine.Engine - INFO - [cached since 0.003468s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:33:36,642 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,642 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 18:33:36,643 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,643 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:33:36,643 - sqlalchemy.engine.Engine - INFO - [cached since 0.006232s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:33:36,645 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-21 18:33:36,646 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] ('bd4c9e02-b509-483d-b908-384b11d438db', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 5, datetime.datetime(2025, 4, 21, 18, 33, 36, 644334), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "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, 21, 18, 33, 36, 642335), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 21, 18, 33, 36, 645347), datetime.datetime(2025, 4, 21, 18, 33, 36, 645347), 0)
2025-04-21 18:33:36,647 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,664 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,665 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:33:36,665 - sqlalchemy.engine.Engine - INFO - [cached since 5.067s ago] ('bd4c9e02-b509-483d-b908-384b11d438db',)
2025-04-21 18:33:36,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,667 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 bd4c9e02-b509-483d-b908-384b11d438db (优先级 1) 添加到队列 0
2025-04-21 18:33:36,668 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0337秒
2025-04-21 18:33:36,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: bd4c9e02-b509-483d-b908-384b11d438db, 优先级: 1
2025-04-21 18:33:36,698 - services.execution.task_executor - DEBUG - 任务 bd4c9e02-b509-483d-b908-384b11d438db 设置超时时间: 3600秒
2025-04-21 18:33:36,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:33:36,700 - sqlalchemy.engine.Engine - INFO - [cached since 5.103s ago] ('bd4c9e02-b509-483d-b908-384b11d438db',)
2025-04-21 18:33:36,701 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:33:36,702 - sqlalchemy.engine.Engine - INFO - [cached since 0.06485s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:33:36,703 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:33:36,703 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (datetime.datetime(2025, 4, 21, 18, 33, 36, 702802), datetime.datetime(2025, 4, 21, 18, 33, 36, 703874), 'bd4c9e02-b509-483d-b908-384b11d438db')
2025-04-21 18:33:36,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,712 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,713 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:33:36,713 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 18, 33, 36, 713919), 'bd4c9e02-b509-483d-b908-384b11d438db')
2025-04-21 18:33:36,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,722 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 18:33:36,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,726 - 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-21 18:33:36,729 - sqlalchemy.engine.Engine - INFO - [generated in 0.00367s] ('f09a6076-e3b8-47cb-804a-f977e9d19f3b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'bd4c9e02-b509-483d-b908-384b11d438db', datetime.datetime(2025, 4, 21, 18, 33, 36, 723802), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 18, 33, 36, 725875), datetime.datetime(2025, 4, 21, 18, 33, 36, 725875), 0)
2025-04-21 18:33:36,731 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,742 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:33:36,744 - sqlalchemy.engine.Engine - INFO - [generated in 0.00161s] ('f09a6076-e3b8-47cb-804a-f977e9d19f3b',)
2025-04-21 18:33:36,746 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 18:33:36,747 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 18:33:36,747 - 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-21 18:33:36,748 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 18, 33, 36, 747803), 'f09a6076-e3b8-47cb-804a-f977e9d19f3b')
2025-04-21 18:33:36,749 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,757 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 18:33:36,757 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 18:33:36,758 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-21 18:33:36,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,759 - 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-21 18:33:36,759 - sqlalchemy.engine.Engine - INFO - [cached since 0.03403s ago] ('c794c46a-9be3-44a8-af9b-00ed102c6d05', 'b1', '1', '', '{}', '{}', '{}', 'ReleaseResourceBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'bd4c9e02-b509-483d-b908-384b11d438db', datetime.datetime(2025, 4, 21, 18, 33, 36, 758800), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 18, 33, 36, 759799), datetime.datetime(2025, 4, 21, 18, 33, 36, 759799), 0)
2025-04-21 18:33:36,761 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,770 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c794c46a-9be3-44a8-af9b-00ed102c6d05
2025-04-21 18:33:36,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,771 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:33:36,771 - sqlalchemy.engine.Engine - INFO - [cached since 0.029s ago] ('c794c46a-9be3-44a8-af9b-00ed102c6d05',)
2025-04-21 18:33:36,772 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 18:33:36,772 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 18:33:36,773 - 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-21 18:33:36,773 - sqlalchemy.engine.Engine - INFO - [cached since 0.02601s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 18, 33, 36, 773815), 'c794c46a-9be3-44a8-af9b-00ed102c6d05')
2025-04-21 18:33:36,774 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,781 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 18:33:36,782 - services.execution.block_executor - ERROR - 子块 1 执行异常: 'NoneType' object has no attribute 'get'
2025-04-21 18:33:36,782 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,783 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:33:36,785 - sqlalchemy.engine.Engine - INFO - [cached since 0.04212s ago] ('c794c46a-9be3-44a8-af9b-00ed102c6d05',)
2025-04-21 18:33:36,786 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 18:33:36,786 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 18:33:36,787 - 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-21 18:33:36,788 - sqlalchemy.engine.Engine - INFO - [generated in 0.00093s] (datetime.datetime(2025, 4, 21, 18, 33, 36, 786705), "子块 1 执行异常: 'NoneType' object has no attribute 'get'", 2000, "子块 1 执行异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 21, 18, 33, 36, 787605), 'c794c46a-9be3-44a8-af9b-00ed102c6d05')
2025-04-21 18:33:36,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,797 - 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-21 18:33:36,798 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('da40e7f1-0279-4752-bc45-159f6811d2af', 3, '{"success": false, "message": "子块 1 执行异常: \'NoneType\' object has no attribute \'get\'", "block_id": 1, "error": "\'NoneType\' object has no attribute \'get\'"}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', 'bd4c9e02-b509-483d-b908-384b11d438db', datetime.datetime(2025, 4, 21, 18, 33, 36, 797606), datetime.datetime(2025, 4, 21, 18, 33, 36, 797606), 0)
2025-04-21 18:33:36,798 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,805 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,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-21 18:33:36,806 - sqlalchemy.engine.Engine - INFO - [cached since 0.064s ago] ('f09a6076-e3b8-47cb-804a-f977e9d19f3b',)
2025-04-21 18:33:36,807 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 18:33:36,808 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 18:33:36,808 - 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-21 18:33:36,809 - sqlalchemy.engine.Engine - INFO - [cached since 0.02174s ago] (datetime.datetime(2025, 4, 21, 18, 33, 36, 808650), "子块 1 执行异常: 'NoneType' object has no attribute 'get'", 2000, "子块 1 执行异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 21, 18, 33, 36, 808650), 'f09a6076-e3b8-47cb-804a-f977e9d19f3b')
2025-04-21 18:33:36,809 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,816 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:33:36,816 - 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-21 18:33:36,817 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (datetime.datetime(2025, 4, 21, 18, 33, 36, 815606), "子块 1 执行异常: 'NoneType' object has no attribute 'get'", <TaskStatus.FAILED: 2000>, 102, 1, datetime.datetime(2025, 4, 21, 18, 33, 36, 816617), 'bd4c9e02-b509-483d-b908-384b11d438db')
2025-04-21 18:33:36,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:33:36,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: bd4c9e02-b509-483d-b908-384b11d438db, 结果: False
2025-04-21 18:34:31,586 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:34:31,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:34:31,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:34:31,590 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:34:31,591 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:34:31,591 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:34:31,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:34:31,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:34:31,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:34:31,593 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:34:31,595 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:34:31,596 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 34, 31, 587557))
2025-04-21 18:34:31,596 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:34:31,597 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:34:31,597 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:34:31,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:34:31,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:34:31,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:34:31,598 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:34:31,598 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:34:31,599 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:34:31,600 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:34:31,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:34:31,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:34:31,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:34:31,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:34:31,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:34:31,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:34:46,590 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:34:46,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:34:46,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:34:46,593 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:34:46,594 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:34:46,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:35:31,603 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:35:31,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:35:31,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:35:31,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:35:31,614 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:35:31,615 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:35:31,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:35:31,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:35:31,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:35:31,621 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:35:31,622 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:35:31,628 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 35, 31, 603845))
2025-04-21 18:35:31,633 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:35:31,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:35:31,635 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:35:31,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:35:31,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:35:31,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:35:31,642 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:35:31,643 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:35:31,645 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:35:31,648 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:35:31,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:35:31,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:35:31,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:35:31,654 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:35:31,656 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:35:31,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:35:46,675 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:35:46,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:35:46,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:35:46,676 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:35:46,676 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:35:46,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:36:31,678 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:36:31,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:36:31,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:36:31,682 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:36:31,682 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:36:31,682 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:36:31,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:36:31,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:36:31,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:36:31,683 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:36:31,686 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:36:31,689 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 36, 31, 678866))
2025-04-21 18:36:31,691 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:36:31,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:36:31,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:36:31,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:36:31,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:36:31,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:36:31,700 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:36:31,702 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:36:31,704 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:36:31,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:36:31,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:36:31,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:36:31,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:36:31,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:36:31,715 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:36:31,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:36:46,722 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:36:46,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:36:46,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:36:46,728 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:36:46,728 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:36:46,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:37:31,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:37:31,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:37:31,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:37:31,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:37:31,742 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:37:31,742 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:37:31,742 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:37:31,742 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:37:31,743 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 37, 31, 737899))
2025-04-21 18:37:31,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:37:31,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:37:31,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:37:31,743 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:37:31,743 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:37:31,743 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:37:31,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:37:31,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:37:31,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:37:31,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:37:31,744 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:37:31,744 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:37:31,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:37:31,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:37:31,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:37:31,744 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:37:31,746 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:37:31,746 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:37:31,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:37:46,776 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:37:46,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:37:46,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:37:46,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:37:46,777 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:37:46,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:38:31,767 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:38:31,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:38:31,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:38:31,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:38:31,807 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:38:31,808 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:38:31,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:38:31,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:38:31,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:38:31,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:38:31,814 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:38:31,816 - sqlalchemy.engine.Engine - INFO - [cached since 300.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 38, 31, 767141))
2025-04-21 18:38:31,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:38:31,818 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:38:31,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:38:31,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:38:31,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:38:31,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:38:31,821 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:38:31,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:38:31,822 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:38:31,826 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:38:31,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:38:31,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:38:31,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:38:31,833 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:38:31,833 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:38:31,856 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:38:46,832 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:38:46,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:38:46,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:38:46,834 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:38:46,834 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:38:46,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:39:31,835 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:39:31,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:39:31,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:39:31,839 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:39:31,839 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:39:31,839 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:39:31,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:39:31,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:39:31,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:39:31,841 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:39:31,841 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:39:31,841 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 39, 31, 836089))
2025-04-21 18:39:31,842 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:39:31,842 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:39:31,842 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:39:31,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:39:31,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:39:31,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:39:31,843 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:39:31,843 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:39:31,843 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:39:31,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:39:31,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:39:31,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:39:31,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:39:31,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:39:31,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:39:31,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:39:46,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:39:46,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:39:46,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:39:46,862 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:39:46,862 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:39:46,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:40:31,847 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:40:31,848 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:40:31,848 - sqlalchemy.engine.Engine - INFO - [cached since 420.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 40, 31, 846814))
2025-04-21 18:40:31,850 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:40:31,893 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:40:31,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:40:31,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:40:31,896 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:40:31,897 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:40:31,897 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:40:31,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:40:31,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:40:31,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:40:31,897 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:40:31,897 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:40:31,897 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:40:31,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:40:31,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:40:31,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:40:31,897 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:40:31,898 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:40:31,898 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:40:31,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:40:31,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:40:31,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:40:31,898 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:40:31,898 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:40:31,904 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:40:46,904 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:40:46,904 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:40:46,904 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:40:46,905 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:40:46,906 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:40:46,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:41:31,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:41:31,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:41:31,873 - sqlalchemy.engine.Engine - INFO - [cached since 480.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 41, 31, 871209))
2025-04-21 18:41:31,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:41:31,932 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:41:31,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:41:31,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:41:31,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:41:31,937 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:41:31,938 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:41:31,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:41:31,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:41:31,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:41:31,938 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:41:31,939 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:41:31,939 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:41:31,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:41:31,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:41:31,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:41:31,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:41:31,940 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:41:31,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:41:31,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:41:31,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:41:31,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:41:31,942 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:41:31,943 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:41:31,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:41:32,010 - root - INFO - 应用程序关闭中...
2025-04-21 18:41:32,016 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:41:32,018 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:41:32,019 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:41:32,019 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:41:32,019 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:41:32,019 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:41:32,019 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 18:41:32,019 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:41:32,019 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:41:32,020 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 18:41:32,020 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:41:32,020 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:41:32,020 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:41:32,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:41:32,021 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:41:32,021 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-21 18:41:32,021 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 2
2025-04-21 18:41:32,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:41:32,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:41:32,021 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 18:41:32,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:41:32,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:41:32,022 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 18:41:32,023 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 18:41:32,023 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 18:41:32,023 - root - INFO - 增强版任务调度器已停止
2025-04-21 18:41:32,023 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 18:41:32,023 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 18:41:32,025 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 18:41:32,025 - data.session - INFO - 数据库连接已关闭
2025-04-21 18:41:33,484 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:41:33,488 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:41:33,554 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:41:33,603 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:41:33,637 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:41:33,663 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:41:33,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,670 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:41:33,674 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,678 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:41:33,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,687 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:41:33,689 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:41:33,692 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,696 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:41:33,698 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,705 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:41:33,706 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,708 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:41:33,709 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,713 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:41:33,713 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,714 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:41:33,715 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:41:33,717 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,718 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:41:33,718 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,720 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:41:33,720 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,724 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:41:33,724 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,726 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:41:33,726 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:41:33,727 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:41:33,728 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:41:34,094 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:41:34,097 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:41:34,098 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:41:34,098 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:41:34,098 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:41:34,098 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:41:34,098 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:41:34,099 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:41:34,099 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:41:34,099 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:41:34,099 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:41:34,100 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:41:34,100 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:41:34,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:41:34,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:41:34,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:41:34,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:41:34,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:41:34,103 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:41:34,103 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:41:34,127 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:41:34,131 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:41:34,131 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:41:34,132 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:41:34,133 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:41:34,134 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:41:34,136 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:41:34,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:41:34,147 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:41:34,148 - sqlalchemy.engine.Engine - INFO - [generated in 0.00107s] (1, 1)
2025-04-21 18:41:34,149 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:41:34,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:41:34,150 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:41:34,151 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:41:34,152 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:41:34,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:41:34,154 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:41:34,155 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] (1000, 2000, 2001)
2025-04-21 18:41:34,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:41:34,176 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:41:34,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:41:34,179 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:41:34,179 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 41, 34, 152746))
2025-04-21 18:41:34,180 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:41:34,180 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:41:34,181 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:41:34,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:41:34,182 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:41:34,182 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:41:34,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:41:34,188 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:41:34,188 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:41:34,188 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:42:34,113 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:42:34,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:42:34,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:42:34,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:42:34,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:42:34,120 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:42:34,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:42:34,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:42:34,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:42:34,121 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:42:34,121 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:42:34,121 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:42:34,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:42:34,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:42:34,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:42:34,121 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:42:34,122 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:42:34,122 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:42:34,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:42:34,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:42:34,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:42:34,122 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:42:34,122 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:42:34,122 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:42:34,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:42:34,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:42:34,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:42:34,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:42:34,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:42:34,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:42:34,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:42:34,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:42:34,177 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 42, 34, 175456))
2025-04-21 18:42:34,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:43:29,723 - root - INFO - 应用程序关闭中...
2025-04-21 18:43:29,724 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:43:29,724 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:43:29,724 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:43:29,724 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:43:29,724 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 18:43:29,725 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:43:29,725 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:43:29,725 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 18:43:29,725 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:43:29,725 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:43:29,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:43:29,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:43:29,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:43:29,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:43:29,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:43:29,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 18:43:29,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:43:29,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:43:29,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 18:43:29,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:43:29,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:43:29,727 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 18:43:29,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:43:29,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:43:29,728 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 18:43:29,728 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 18:43:29,728 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 18:43:29,728 - root - INFO - 增强版任务调度器已停止
2025-04-21 18:43:29,728 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 18:43:29,729 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 18:43:29,729 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 18:43:29,729 - data.session - INFO - 数据库连接已关闭
2025-04-21 18:43:31,077 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:43:31,077 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:43:31,137 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:43:31,187 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:43:31,216 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:43:31,235 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:43:31,235 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,236 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:43:31,237 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,237 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:43:31,238 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:43:31,239 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:43:31,239 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,241 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:43:31,241 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,244 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:43:31,244 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,246 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:43:31,247 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,248 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:43:31,248 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,253 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:43:31,254 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,257 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:43:31,262 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,267 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:43:31,268 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,272 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:43:31,273 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,275 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:43:31,276 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,277 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:43:31,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:43:31,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:43:31,285 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:43:31,658 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:43:31,658 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:43:31,660 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:43:31,660 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:43:31,660 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:43:31,660 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:43:31,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:43:31,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:43:31,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:43:31,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:43:31,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:43:31,661 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:43:31,662 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:43:31,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:43:31,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:43:31,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:43:31,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:43:31,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:43:31,664 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:43:31,664 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:43:31,673 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:43:31,676 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:43:31,680 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:43:31,683 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:43:31,684 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:43:31,685 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:43:31,686 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:43:31,689 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:43:31,701 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:43:31,701 - sqlalchemy.engine.Engine - INFO - [generated in 0.00074s] (1, 1)
2025-04-21 18:43:31,703 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:43:31,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:43:31,708 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:43:31,710 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:43:31,712 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:43:31,714 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:43:31,718 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:43:31,719 - sqlalchemy.engine.Engine - INFO - [generated in 0.00148s] (1000, 2000, 2001)
2025-04-21 18:43:31,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:43:31,735 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:43:31,739 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:43:31,744 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:43:31,748 - sqlalchemy.engine.Engine - INFO - [generated in 0.00370s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 43, 31, 714610))
2025-04-21 18:43:31,748 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:43:31,749 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:43:31,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:43:31,754 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:43:31,758 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:43:31,761 - sqlalchemy.engine.Engine - INFO - [generated in 0.00365s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:43:31,765 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:43:31,770 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:43:31,771 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:43:31,773 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:44:31,673 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:44:31,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:44:31,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:44:31,677 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:44:31,677 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:44:31,677 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:44:31,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:44:31,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:44:31,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:44:31,678 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:44:31,679 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:44:31,679 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:44:31,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:44:31,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:44:31,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:44:31,680 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:44:31,680 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:44:31,680 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:44:31,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:44:31,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:44:31,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:44:31,682 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:44:31,682 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:44:31,682 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:44:31,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:44:31,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:44:31,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:44:31,682 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:44:31,682 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:44:31,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:44:31,787 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:44:31,788 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:44:31,788 - sqlalchemy.engine.Engine - INFO - [cached since 60.04s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 44, 31, 782094))
2025-04-21 18:44:31,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:44:31,906 - root - INFO - 应用程序关闭中...
2025-04-21 18:44:31,906 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:44:31,906 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:44:31,907 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:44:31,907 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:44:31,907 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 18:44:31,907 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:44:31,907 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:44:31,907 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 18:44:31,908 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:44:31,908 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:44:31,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:44:31,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:44:31,908 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:44:31,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:44:31,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:44:31,909 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 18:44:31,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:44:31,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:44:31,910 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 18:44:31,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:44:31,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:44:31,910 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 18:44:31,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:44:31,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:44:31,911 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 18:44:31,911 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 18:44:31,911 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 18:44:31,911 - root - INFO - 增强版任务调度器已停止
2025-04-21 18:44:31,911 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 18:44:31,911 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 18:44:31,911 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 18:44:31,912 - data.session - INFO - 数据库连接已关闭
2025-04-21 18:44:33,259 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:44:33,259 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:44:33,317 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:44:33,381 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:44:33,411 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:44:33,430 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:44:33,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,431 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:44:33,431 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,433 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:44:33,434 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,436 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:44:33,442 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:44:33,446 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,455 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:44:33,460 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,467 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:44:33,470 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,471 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:44:33,473 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,475 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:44:33,478 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,482 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:44:33,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,486 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:44:33,488 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,493 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:44:33,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,496 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:44:33,497 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,498 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:44:33,498 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,499 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:44:33,500 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:44:33,502 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:44:33,505 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:44:33,863 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:44:33,864 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:44:33,864 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:44:33,864 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:44:33,864 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:44:33,864 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:44:33,865 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:44:33,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:44:33,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:44:33,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:44:33,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:44:33,866 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:44:33,866 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:44:33,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:44:33,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:44:33,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:44:33,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:44:33,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:44:33,868 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:44:33,868 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:44:33,882 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:44:33,883 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:44:33,883 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:44:33,885 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:44:33,889 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:44:33,891 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:44:33,895 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:44:33,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:44:33,918 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:44:33,920 - sqlalchemy.engine.Engine - INFO - [generated in 0.00182s] (1, 1)
2025-04-21 18:44:33,922 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:44:33,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:44:33,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:44:33,927 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:44:33,928 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:44:33,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:44:33,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:44:33,933 - sqlalchemy.engine.Engine - INFO - [generated in 0.00215s] (1000, 2000, 2001)
2025-04-21 18:44:33,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:44:33,977 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:44:33,978 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:44:33,981 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:44:33,985 - sqlalchemy.engine.Engine - INFO - [generated in 0.00426s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 44, 33, 929506))
2025-04-21 18:44:33,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:44:33,990 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:44:33,990 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:44:33,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:44:33,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:44:33,992 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:44:33,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:44:33,994 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:44:33,994 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:44:33,994 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:45:33,938 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:45:33,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:45:33,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:45:33,939 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:45:33,940 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:45:33,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:45:33,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:45:33,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:45:33,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:45:33,941 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:45:33,941 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:45:33,941 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:45:33,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:45:33,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:45:33,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:45:33,941 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:45:33,941 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:45:33,941 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:45:33,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:45:33,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:45:33,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:45:33,942 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:45:33,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:45:33,942 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:45:33,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:45:33,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:45:33,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:45:33,942 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:45:33,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:45:33,949 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:45:34,016 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:34,018 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:45:34,018 - sqlalchemy.engine.Engine - INFO - [cached since 60.04s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 45, 34, 15538))
2025-04-21 18:45:34,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:34,096 - root - INFO - 应用程序关闭中...
2025-04-21 18:45:34,096 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:45:34,096 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:45:34,096 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:45:34,097 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:45:34,097 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 18:45:34,097 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:45:34,097 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:45:34,097 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 18:45:34,098 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:45:34,098 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:45:34,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:45:34,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:45:34,098 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:45:34,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:45:34,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:45:34,099 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 18:45:34,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:45:34,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:45:34,099 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 18:45:34,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:45:34,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:45:34,101 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 18:45:34,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:45:34,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:45:34,102 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 18:45:34,102 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 18:45:34,102 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 18:45:34,103 - root - INFO - 增强版任务调度器已停止
2025-04-21 18:45:34,103 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 18:45:34,103 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 18:45:34,103 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 18:45:34,104 - data.session - INFO - 数据库连接已关闭
2025-04-21 18:45:35,454 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:45:35,454 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:45:35,511 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:45:35,572 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:45:35,607 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:45:35,634 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:45:35,635 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,636 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:45:35,636 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,637 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:45:35,637 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,638 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:35,638 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:45:35,638 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,639 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:45:35,639 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,640 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:45:35,640 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,642 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:45:35,642 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,643 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:45:35,643 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,644 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:45:35,644 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,646 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:45:35,647 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,647 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:45:35,648 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,649 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:45:35,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,650 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:45:35,652 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,653 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:45:35,653 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:35,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:35,654 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:45:36,028 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:45:36,028 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:45:36,028 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:45:36,029 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:45:36,029 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:45:36,029 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:45:36,031 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:45:36,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:45:36,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:45:36,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:45:36,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:45:36,032 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:45:36,033 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:45:36,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:45:36,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:45:36,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:45:36,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:45:36,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:45:36,036 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:45:36,036 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:45:36,037 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:45:36,038 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:45:36,039 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:45:36,039 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:45:36,040 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:45:36,041 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:45:36,044 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:45:36,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:36,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:45:36,055 - sqlalchemy.engine.Engine - INFO - [generated in 0.00160s] (1, 1)
2025-04-21 18:45:36,055 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:45:36,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:36,057 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:45:36,057 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:45:36,057 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:45:36,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:36,060 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:45:36,060 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1000, 2000, 2001)
2025-04-21 18:45:36,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:36,061 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:45:36,063 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:36,065 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:45:36,065 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 45, 36, 57483))
2025-04-21 18:45:36,065 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:45:36,065 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:45:36,067 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:36,069 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:36,071 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:45:36,073 - sqlalchemy.engine.Engine - INFO - [generated in 0.00248s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:45:36,076 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:36,080 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:45:36,082 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:45:36,082 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:45:43,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:45:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:45:43,785 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:45:43,785 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:45:43,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:45:43,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:45:43,788 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:45:43,788 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:45:48,648 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:45:48,648 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:45:49,398 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:45:49,398 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:45:49,457 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:45:49,505 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:45:49,546 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:45:49,565 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:45:49,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,566 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:45:49,567 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,567 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:45:49,567 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:49,568 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:45:49,569 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,570 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:45:49,571 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,572 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:45:49,572 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,575 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:45:49,575 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,576 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:45:49,576 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,578 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:45:49,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,580 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:45:49,581 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,583 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:45:49,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,584 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:45:49,585 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,587 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:45:49,587 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,588 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:45:49,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:45:49,591 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:49,593 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:45:49,951 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:45:49,951 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:45:49,951 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:45:49,951 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:45:49,952 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:45:49,953 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:45:49,953 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:45:49,953 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:45:49,953 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:45:49,954 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:45:49,954 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:45:49,954 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:45:49,955 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:45:49,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:45:49,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:45:49,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:45:49,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:45:49,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:45:49,958 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:45:49,958 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:45:49,959 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:45:49,960 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:45:49,960 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:45:49,960 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:45:49,960 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:45:49,961 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:45:49,961 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:45:49,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:49,970 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:45:49,970 - sqlalchemy.engine.Engine - INFO - [generated in 0.00087s] (1, 1)
2025-04-21 18:45:49,971 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:45:49,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:49,973 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:45:49,974 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:45:49,974 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:45:49,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:49,976 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:45:49,977 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1000, 2000, 2001)
2025-04-21 18:45:50,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:50,004 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:45:50,005 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:50,006 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:45:50,006 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 45, 49, 975086))
2025-04-21 18:45:50,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:50,008 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:45:50,008 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:45:50,008 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:45:50,008 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:45:50,010 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:45:50,011 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:45:50,014 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:45:50,014 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:45:50,014 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:46:45,100 - root - INFO - 应用程序关闭中...
2025-04-21 18:46:45,100 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:46:45,101 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:46:45,101 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:46:45,101 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:46:45,101 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 18:46:45,101 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:46:45,102 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:46:45,102 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 18:46:45,102 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:46:45,102 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:46:45,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:46:45,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:46:45,103 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:46:45,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:46:45,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:46:45,103 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 18:46:45,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:46:45,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:46:45,104 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 18:46:45,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:46:45,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:46:45,104 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 18:46:45,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:46:45,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:46:45,105 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 18:46:45,105 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 18:46:45,105 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 18:46:45,105 - root - INFO - 增强版任务调度器已停止
2025-04-21 18:46:45,105 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 18:46:45,106 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 18:46:45,106 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 18:46:45,106 - data.session - INFO - 数据库连接已关闭
2025-04-21 18:47:00,173 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:47:00,174 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:47:00,943 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:47:00,944 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:47:01,006 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:47:01,067 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:47:01,078 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:47:01,101 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:47:01,102 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,102 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:47:01,102 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,103 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:47:01,103 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:01,105 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:47:01,105 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,106 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:47:01,106 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,109 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:47:01,109 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,110 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:47:01,111 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,112 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:47:01,112 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,113 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:47:01,114 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,114 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:47:01,115 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,115 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:47:01,115 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,116 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:47:01,116 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,118 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:47:01,118 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,119 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:47:01,119 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:01,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:01,120 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:47:01,511 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:47:01,511 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:47:01,511 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:47:01,512 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:47:01,512 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:47:01,513 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:47:01,513 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:47:01,513 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:47:01,513 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:47:01,513 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:47:01,513 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:47:01,514 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:47:01,514 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:47:01,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:47:01,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:47:01,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:47:01,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:47:01,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:47:01,520 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:47:01,520 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:47:01,522 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:47:01,523 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:47:01,523 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:47:01,523 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:47:01,524 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:47:01,524 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:47:01,524 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:47:01,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:01,533 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:47:01,533 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] (1, 1)
2025-04-21 18:47:01,535 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:47:01,535 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:01,536 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:47:01,537 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:47:01,538 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:47:01,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:01,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:47:01,541 - sqlalchemy.engine.Engine - INFO - [generated in 0.00143s] (1000, 2000, 2001)
2025-04-21 18:47:01,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:01,570 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:47:01,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:01,573 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:47:01,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 47, 1, 538313))
2025-04-21 18:47:01,574 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:47:01,574 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:47:01,575 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:01,575 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:01,575 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:47:01,576 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:47:01,577 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:01,578 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:47:01,578 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:47:01,578 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:47:06,570 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 18:47:06,574 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,576 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:47:06,577 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:47:06,578 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,579 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:47:06,579 - sqlalchemy.engine.Engine - INFO - [cached since 0.003114s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:47:06,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,582 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 18:47:06,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,584 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:47:06,585 - sqlalchemy.engine.Engine - INFO - [cached since 0.008739s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:47:06,587 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-21 18:47:06,587 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] ('77558612-a211-4eb9-bb47-5e0821879311', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 5, datetime.datetime(2025, 4, 21, 18, 47, 6, 585637), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "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, 21, 18, 47, 6, 582651), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 21, 18, 47, 6, 586567), datetime.datetime(2025, 4, 21, 18, 47, 6, 586567), 0)
2025-04-21 18:47:06,588 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:47:06,603 - sqlalchemy.engine.Engine - INFO - [cached since 5.029s ago] ('77558612-a211-4eb9-bb47-5e0821879311',)
2025-04-21 18:47:06,605 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,607 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 77558612-a211-4eb9-bb47-5e0821879311 (优先级 1) 添加到队列 0
2025-04-21 18:47:06,607 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0367秒
2025-04-21 18:47:06,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 77558612-a211-4eb9-bb47-5e0821879311, 优先级: 1
2025-04-21 18:47:06,662 - services.execution.task_executor - DEBUG - 任务 77558612-a211-4eb9-bb47-5e0821879311 设置超时时间: 3600秒
2025-04-21 18:47:06,665 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,667 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:47:06,671 - sqlalchemy.engine.Engine - INFO - [cached since 5.096s ago] ('77558612-a211-4eb9-bb47-5e0821879311',)
2025-04-21 18:47:06,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:47:06,680 - sqlalchemy.engine.Engine - INFO - [cached since 0.1041s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:47:06,681 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:47:06,682 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (datetime.datetime(2025, 4, 21, 18, 47, 6, 681869), datetime.datetime(2025, 4, 21, 18, 47, 6, 681869), '77558612-a211-4eb9-bb47-5e0821879311')
2025-04-21 18:47:06,683 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,695 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:47:06,697 - sqlalchemy.engine.Engine - INFO - [generated in 0.00142s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 18, 47, 6, 695867), '77558612-a211-4eb9-bb47-5e0821879311')
2025-04-21 18:47:06,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,707 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 18:47:06,708 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,712 - 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-21 18:47:06,714 - sqlalchemy.engine.Engine - INFO - [generated in 0.00151s] ('c0659c95-3059-40d7-b315-2ceeae6545fe', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '77558612-a211-4eb9-bb47-5e0821879311', datetime.datetime(2025, 4, 21, 18, 47, 6, 708865), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 18, 47, 6, 712865), datetime.datetime(2025, 4, 21, 18, 47, 6, 712865), 0)
2025-04-21 18:47:06,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,730 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:47:06,731 - sqlalchemy.engine.Engine - INFO - [generated in 0.00111s] ('c0659c95-3059-40d7-b315-2ceeae6545fe',)
2025-04-21 18:47:06,734 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 18:47:06,737 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 18:47:06,738 - 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-21 18:47:06,740 - sqlalchemy.engine.Engine - INFO - [generated in 0.00153s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 18, 47, 6, 738988), 'c0659c95-3059-40d7-b315-2ceeae6545fe')
2025-04-21 18:47:06,742 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,750 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 18:47:06,751 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 18:47:06,753 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-21 18:47:06,754 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,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-21 18:47:06,755 - sqlalchemy.engine.Engine - INFO - [cached since 0.04256s ago] ('89bd9fd4-aefe-4f60-9781-2cb77f6baab5', 'b1', '1', '', '{}', '{}', '{}', 'ReleaseResourceBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '77558612-a211-4eb9-bb47-5e0821879311', datetime.datetime(2025, 4, 21, 18, 47, 6, 754568), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 18, 47, 6, 755545), datetime.datetime(2025, 4, 21, 18, 47, 6, 755545), 0)
2025-04-21 18:47:06,756 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,768 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 89bd9fd4-aefe-4f60-9781-2cb77f6baab5
2025-04-21 18:47:06,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,771 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:47:06,771 - sqlalchemy.engine.Engine - INFO - [cached since 0.04136s ago] ('89bd9fd4-aefe-4f60-9781-2cb77f6baab5',)
2025-04-21 18:47:06,774 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 18:47:06,774 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 18:47:06,774 - 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-21 18:47:06,776 - sqlalchemy.engine.Engine - INFO - [cached since 0.0379s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 18, 47, 6, 774523), '89bd9fd4-aefe-4f60-9781-2cb77f6baab5')
2025-04-21 18:47:06,778 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,786 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 18:47:06,787 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,788 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:47:06,790 - sqlalchemy.engine.Engine - INFO - [cached since 5.215s ago] ('77558612-a211-4eb9-bb47-5e0821879311',)
2025-04-21 18:47:06,791 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:47:06,792 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (1, datetime.datetime(2025, 4, 21, 18, 47, 6, 791528), '77558612-a211-4eb9-bb47-5e0821879311')
2025-04-21 18:47:06,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,802 - 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-21 18:47:06,803 - sqlalchemy.engine.Engine - INFO - [generated in 0.00087s] ('992e5c5f-0974-4351-b6b5-34162a1f38cb', 1, '{"success": true, "message": "释放资源成功", "output": {}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '77558612-a211-4eb9-bb47-5e0821879311', datetime.datetime(2025, 4, 21, 18, 47, 6, 802497), datetime.datetime(2025, 4, 21, 18, 47, 6, 802497), 0)
2025-04-21 18:47:06,804 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,812 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,813 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:47:06,813 - sqlalchemy.engine.Engine - INFO - [cached since 0.08312s ago] ('89bd9fd4-aefe-4f60-9781-2cb77f6baab5',)
2025-04-21 18:47:06,814 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 18:47:06,814 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 18:47:06,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-21 18:47:06,816 - sqlalchemy.engine.Engine - INFO - [generated in 0.00122s] (datetime.datetime(2025, 4, 21, 18, 47, 6, 815519), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 18, 47, 6, 815519), '89bd9fd4-aefe-4f60-9781-2cb77f6baab5')
2025-04-21 18:47:06,817 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,824 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,825 - 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-21 18:47:06,827 - sqlalchemy.engine.Engine - INFO - [cached since 0.0244s ago] ('dfd392b1-c5a1-4ddd-9592-453d320e6f33', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '77558612-a211-4eb9-bb47-5e0821879311', datetime.datetime(2025, 4, 21, 18, 47, 6, 825519), datetime.datetime(2025, 4, 21, 18, 47, 6, 825519), 0)
2025-04-21 18:47:06,827 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,842 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:47:06,842 - sqlalchemy.engine.Engine - INFO - [cached since 0.1125s ago] ('c0659c95-3059-40d7-b315-2ceeae6545fe',)
2025-04-21 18:47:06,843 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 18:47:06,844 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 18:47:06,845 - 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-21 18:47:06,845 - sqlalchemy.engine.Engine - INFO - [cached since 0.03084s ago] (datetime.datetime(2025, 4, 21, 18, 47, 6, 844520), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 18, 47, 6, 845539), 'c0659c95-3059-40d7-b315-2ceeae6545fe')
2025-04-21 18:47:06,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:06,867 - 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-21 18:47:06,868 - sqlalchemy.engine.Engine - INFO - [generated in 0.00139s] (datetime.datetime(2025, 4, 21, 18, 47, 6, 862540), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 167, 1, datetime.datetime(2025, 4, 21, 18, 47, 6, 867505), '77558612-a211-4eb9-bb47-5e0821879311')
2025-04-21 18:47:06,870 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:06,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 77558612-a211-4eb9-bb47-5e0821879311, 结果: True
2025-04-21 18:47:44,745 - root - INFO - 应用程序关闭中...
2025-04-21 18:47:44,745 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:47:44,746 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:47:44,746 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:47:44,746 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:47:44,747 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 18:47:44,747 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:47:44,747 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:47:44,747 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 18:47:44,748 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:47:44,748 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:47:44,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:47:44,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:47:44,749 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:47:44,749 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:47:44,749 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:47:44,749 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 18:47:44,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:47:44,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:47:44,750 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 18:47:44,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:47:44,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:47:44,751 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 18:47:44,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:47:44,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:47:44,752 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 18:47:44,752 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 18:47:44,752 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 18:47:44,752 - root - INFO - 增强版任务调度器已停止
2025-04-21 18:47:44,753 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 18:47:44,753 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 18:47:44,753 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 18:47:44,753 - data.session - INFO - 数据库连接已关闭
2025-04-21 18:47:46,716 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:47:46,717 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:47:47,599 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:47:47,600 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:47:47,703 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:47:47,773 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:47:47,802 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:47:47,814 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:47:47,814 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,815 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:47:47,815 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,815 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:47:47,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,816 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:47,817 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:47:47,817 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,819 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:47:47,819 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,824 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:47:47,824 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,825 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:47:47,825 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,826 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:47:47,826 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,829 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:47:47,830 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,832 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:47:47,833 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,835 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:47:47,835 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,838 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:47:47,839 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,841 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:47:47,841 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,845 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:47:47,846 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:47:47,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:47,850 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:47:48,272 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:47:48,272 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:47:48,272 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:47:48,273 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:47:48,273 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:47:48,273 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:47:48,274 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:47:48,274 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:47:48,274 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:47:48,274 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:47:48,274 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:47:48,274 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:47:48,274 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:47:48,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:47:48,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:47:48,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:47:48,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:47:48,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:47:48,276 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:47:48,277 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:47:48,299 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:47:48,300 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:47:48,300 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:47:48,300 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:47:48,301 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:47:48,301 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:47:48,301 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:47:48,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:48,312 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:47:48,312 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1, 1)
2025-04-21 18:47:48,313 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:47:48,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:48,315 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:47:48,318 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:47:48,320 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:47:48,322 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:48,324 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:47:48,324 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1000, 2000, 2001)
2025-04-21 18:47:48,325 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:48,328 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:47:48,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:48,330 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:47:48,333 - sqlalchemy.engine.Engine - INFO - [generated in 0.00248s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 47, 48, 322287))
2025-04-21 18:47:48,334 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:47:48,334 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:47:48,335 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:48,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:48,337 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:47:48,337 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:47:48,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:48,339 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:47:48,340 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:47:48,340 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:47:49,671 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-21 18:47:49,676 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:47:49,681 - sqlalchemy.engine.Engine - INFO - [generated in 0.00315s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:47:49,685 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,690 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:47:49,695 - sqlalchemy.engine.Engine - INFO - [cached since 0.01716s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:47:49,696 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,700 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-21 18:47:49,702 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,707 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:47:49,710 - sqlalchemy.engine.Engine - INFO - [cached since 0.03247s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:47:49,714 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-21 18:47:49,719 - sqlalchemy.engine.Engine - INFO - [generated in 0.00440s] ('26460f24-6edc-4e73-9cea-79054e5a0217', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 5, datetime.datetime(2025, 4, 21, 18, 47, 49, 713669), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "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, 21, 18, 47, 49, 700679), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 21, 18, 47, 49, 714669), datetime.datetime(2025, 4, 21, 18, 47, 49, 714669), 0)
2025-04-21 18:47:49,723 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,744 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:47:49,745 - sqlalchemy.engine.Engine - INFO - [cached since 1.409s ago] ('26460f24-6edc-4e73-9cea-79054e5a0217',)
2025-04-21 18:47:49,748 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,753 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 26460f24-6edc-4e73-9cea-79054e5a0217 (优先级 1) 添加到队列 0
2025-04-21 18:47:49,754 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0832秒
2025-04-21 18:47:49,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 26460f24-6edc-4e73-9cea-79054e5a0217, 优先级: 1
2025-04-21 18:47:49,797 - services.execution.task_executor - DEBUG - 任务 26460f24-6edc-4e73-9cea-79054e5a0217 设置超时时间: 3600秒
2025-04-21 18:47:49,798 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,799 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:47:49,800 - sqlalchemy.engine.Engine - INFO - [cached since 1.464s ago] ('26460f24-6edc-4e73-9cea-79054e5a0217',)
2025-04-21 18:47:49,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-21 18:47:49,806 - sqlalchemy.engine.Engine - INFO - [cached since 0.1276s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-21 18:47:49,813 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:47:49,813 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (datetime.datetime(2025, 4, 21, 18, 47, 49, 812228), datetime.datetime(2025, 4, 21, 18, 47, 49, 813237), '26460f24-6edc-4e73-9cea-79054e5a0217')
2025-04-21 18:47:49,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,836 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:47:49,843 - sqlalchemy.engine.Engine - INFO - [generated in 0.00697s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 18, 47, 49, 836228), '26460f24-6edc-4e73-9cea-79054e5a0217')
2025-04-21 18:47:49,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,852 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-21 18:47:49,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,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-21 18:47:49,860 - sqlalchemy.engine.Engine - INFO - [generated in 0.00099s] ('aa2aea91-f549-49cb-afa3-6bfbf4aa7bb5', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '26460f24-6edc-4e73-9cea-79054e5a0217', datetime.datetime(2025, 4, 21, 18, 47, 49, 855236), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 18, 47, 49, 859266), datetime.datetime(2025, 4, 21, 18, 47, 49, 859266), 0)
2025-04-21 18:47:49,863 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,877 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:47:49,879 - sqlalchemy.engine.Engine - INFO - [generated in 0.00156s] ('aa2aea91-f549-49cb-afa3-6bfbf4aa7bb5',)
2025-04-21 18:47:49,883 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 18:47:49,883 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 18:47:49,885 - 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-21 18:47:49,885 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 21, 18, 47, 49, 885228), 'aa2aea91-f549-49cb-afa3-6bfbf4aa7bb5')
2025-04-21 18:47:49,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,901 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-21 18:47:49,902 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-21 18:47:49,903 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-21 18:47:49,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,905 - 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-21 18:47:49,906 - sqlalchemy.engine.Engine - INFO - [cached since 0.04683s ago] ('31f20e2d-e2ed-4834-836a-ea7c6ca4af85', 'b1', '1', '', '{}', '{}', '{}', 'ReleaseResourceBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '26460f24-6edc-4e73-9cea-79054e5a0217', datetime.datetime(2025, 4, 21, 18, 47, 49, 904235), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 21, 18, 47, 49, 905228), datetime.datetime(2025, 4, 21, 18, 47, 49, 905228), 0)
2025-04-21 18:47:49,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,918 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 31f20e2d-e2ed-4834-836a-ea7c6ca4af85
2025-04-21 18:47:49,919 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,919 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:47:49,921 - sqlalchemy.engine.Engine - INFO - [cached since 0.04464s ago] ('31f20e2d-e2ed-4834-836a-ea7c6ca4af85',)
2025-04-21 18:47:49,923 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 18:47:49,926 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 18:47:49,927 - 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-21 18:47:49,927 - sqlalchemy.engine.Engine - INFO - [cached since 0.04321s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 21, 18, 47, 49, 926844), '31f20e2d-e2ed-4834-836a-ea7c6ca4af85')
2025-04-21 18:47:49,929 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,940 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-21 18:47:49,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,943 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:47:49,945 - sqlalchemy.engine.Engine - INFO - [cached since 1.608s ago] ('26460f24-6edc-4e73-9cea-79054e5a0217',)
2025-04-21 18:47:49,951 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-21 18:47:49,952 - sqlalchemy.engine.Engine - INFO - [generated in 0.00135s] (1, datetime.datetime(2025, 4, 21, 18, 47, 49, 951296), '26460f24-6edc-4e73-9cea-79054e5a0217')
2025-04-21 18:47:49,953 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,965 - 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-21 18:47:49,965 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('d2e68113-3cc9-4c53-80b0-9eb699d0a7cb', 1, '{"success": true, "message": "释放资源成功", "output": {}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '26460f24-6edc-4e73-9cea-79054e5a0217', datetime.datetime(2025, 4, 21, 18, 47, 49, 964823), datetime.datetime(2025, 4, 21, 18, 47, 49, 964823), 0)
2025-04-21 18:47:49,966 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:49,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:49,978 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-21 18:47:49,980 - sqlalchemy.engine.Engine - INFO - [cached since 0.1033s ago] ('31f20e2d-e2ed-4834-836a-ea7c6ca4af85',)
2025-04-21 18:47:49,981 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-21 18:47:49,982 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-21 18:47:49,983 - 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-21 18:47:49,985 - sqlalchemy.engine.Engine - INFO - [generated in 0.00219s] (datetime.datetime(2025, 4, 21, 18, 47, 49, 983823), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 18, 47, 49, 983823), '31f20e2d-e2ed-4834-836a-ea7c6ca4af85')
2025-04-21 18:47:49,987 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:50,009 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:50,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-21 18:47:50,011 - sqlalchemy.engine.Engine - INFO - [cached since 0.04662s ago] ('0566ab3c-2d8a-41f2-a447-55a1a87ecc00', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '26460f24-6edc-4e73-9cea-79054e5a0217', datetime.datetime(2025, 4, 21, 18, 47, 50, 11163), datetime.datetime(2025, 4, 21, 18, 47, 50, 11163), 0)
2025-04-21 18:47:50,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:50,026 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:50,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-21 18:47:50,029 - sqlalchemy.engine.Engine - INFO - [cached since 0.1522s ago] ('aa2aea91-f549-49cb-afa3-6bfbf4aa7bb5',)
2025-04-21 18:47:50,032 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-21 18:47:50,033 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-21 18:47:50,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-21 18:47:50,036 - sqlalchemy.engine.Engine - INFO - [cached since 0.05244s ago] (datetime.datetime(2025, 4, 21, 18, 47, 50, 34772), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 21, 18, 47, 50, 34772), 'aa2aea91-f549-49cb-afa3-6bfbf4aa7bb5')
2025-04-21 18:47:50,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:50,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:47:50,053 - 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-21 18:47:50,053 - sqlalchemy.engine.Engine - INFO - [generated in 0.00119s] (datetime.datetime(2025, 4, 21, 18, 47, 50, 48780), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 216, 1, datetime.datetime(2025, 4, 21, 18, 47, 50, 52696), '26460f24-6edc-4e73-9cea-79054e5a0217')
2025-04-21 18:47:50,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:47:50,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 26460f24-6edc-4e73-9cea-79054e5a0217, 结果: True
2025-04-21 18:48:35,781 - root - INFO - 应用程序关闭中...
2025-04-21 18:48:35,781 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:48:35,784 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:48:35,787 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:48:35,787 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:48:35,790 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 18:48:35,792 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:48:35,794 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:48:35,796 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 18:48:35,797 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:48:35,800 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:48:35,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:48:35,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:48:35,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:48:35,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:48:35,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:48:35,805 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 18:48:35,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:48:35,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:48:35,805 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 18:48:35,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:48:35,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:48:35,805 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 18:48:35,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:48:35,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:48:35,806 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 18:48:35,806 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 18:48:35,806 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 18:48:35,806 - root - INFO - 增强版任务调度器已停止
2025-04-21 18:48:35,806 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 18:48:35,807 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 18:48:35,807 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 18:48:35,808 - data.session - INFO - 数据库连接已关闭
2025-04-21 18:48:37,147 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-21 18:48:37,149 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-21 18:48:37,210 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-21 18:48:37,267 - data.session - INFO - 正在初始化数据库...
2025-04-21 18:48:37,301 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-21 18:48:37,324 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:48:37,325 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,326 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:48:37,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,326 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:48:37,327 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:48:37,327 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-21 18:48:37,327 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,329 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-21 18:48:37,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,331 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-21 18:48:37,331 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,333 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-21 18:48:37,334 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,337 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-21 18:48:37,338 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,340 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-21 18:48:37,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,341 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-21 18:48:37,341 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,342 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-21 18:48:37,342 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-21 18:48:37,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,345 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-21 18:48:37,345 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,346 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-21 18:48:37,346 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-21 18:48:37,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:48:37,349 - data.session - INFO - 数据库表初始化完成
2025-04-21 18:48:37,711 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-21 18:48:37,711 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-21 18:48:37,711 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-21 18:48:37,712 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-21 18:48:37,712 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-21 18:48:37,712 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-21 18:48:37,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-21 18:48:37,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-21 18:48:37,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-21 18:48:37,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-21 18:48:37,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:48:37,713 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-21 18:48:37,713 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-21 18:48:37,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:48:37,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:48:37,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:48:37,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:48:37,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:48:37,716 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-21 18:48:37,716 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-21 18:48:37,717 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:48:37,717 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-21 18:48:37,718 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:48:37,718 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-21 18:48:37,718 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:48:37,718 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-21 18:48:37,719 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-21 18:48:37,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:48:37,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-21 18:48:37,728 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] (1, 1)
2025-04-21 18:48:37,729 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-21 18:48:37,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:48:37,731 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-21 18:48:37,732 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-21 18:48:37,732 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-21 18:48:37,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:48:37,734 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-21 18:48:37,738 - sqlalchemy.engine.Engine - INFO - [generated in 0.00463s] (1000, 2000, 2001)
2025-04-21 18:48:37,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:48:37,742 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-21 18:48:37,744 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:48:37,745 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:48:37,746 - sqlalchemy.engine.Engine - INFO - [generated in 0.00131s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 48, 37, 732255))
2025-04-21 18:48:37,747 - services.enhanced_scheduler.task_persistence - INFO - 从备份 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 加载任务，合并后共 1 个任务
2025-04-21 18:48:37,747 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-21 18:48:37,748 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:48:37,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:48:37,750 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-21 18:48:37,750 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] ('c3b19b8c-bbf5-4aeb-a5cd-da8d44c1e152',)
2025-04-21 18:48:37,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:48:37,752 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 0 个未完成的任务，移除 1 个不需要恢复的任务
2025-04-21 18:48:37,753 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-21 18:48:37,753 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-21 18:49:37,759 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:49:37,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:49:37,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:49:37,763 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:49:37,764 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:49:37,765 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:49:37,765 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:49:37,765 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:49:37,766 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 49, 37, 759605))
2025-04-21 18:49:37,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:49:37,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:49:37,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:49:37,767 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:49:37,767 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:49:37,767 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:49:37,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:49:37,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:49:37,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:49:37,768 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:49:37,769 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:49:37,769 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:49:37,769 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:49:37,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:49:37,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:49:37,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:49:37,770 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:49:37,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:49:37,770 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:49:37,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:49:37,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:49:37,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:49:37,771 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:49:37,771 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:49:37,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:50:37,791 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:50:37,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:50:37,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:50:37,794 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:50:37,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:50:37,796 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:50:37,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:50:37,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:50:37,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:50:37,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:50:37,804 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:50:37,807 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 50, 37, 791512))
2025-04-21 18:50:37,813 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:50:37,813 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:50:37,816 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:50:37,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:50:37,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:50:37,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:50:37,822 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:50:37,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:50:37,823 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:50:37,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:50:37,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:50:37,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:50:37,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:50:37,825 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:50:37,825 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:50:37,825 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:50:37,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:50:37,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:50:37,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:50:37,826 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:50:37,826 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:50:37,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:51:37,861 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-21 18:51:37,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:51:37,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:51:37,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:51:37,861 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-21 18:51:37,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-21 18:51:37,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-21 18:51:37,863 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-21 18:51:37,863 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 21, 17, 51, 37, 860851))
2025-04-21 18:51:37,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-21 18:51:37,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:51:37,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:51:37,864 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-21 18:51:37,864 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-21 18:51:37,864 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-21 18:51:37,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-21 18:51:37,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:51:37,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:51:37,865 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-21 18:51:37,865 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-21 18:51:37,865 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-21 18:51:37,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-21 18:51:37,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-21 18:51:37,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-21 18:51:37,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:51:37,868 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-21 18:51:37,868 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-21 18:51:37,869 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-21 18:51:37,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-21 18:51:37,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-21 18:51:37,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:51:37,871 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-21 18:51:37,872 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-21 18:51:37,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-21 18:51:39,466 - root - INFO - 应用程序关闭中...
2025-04-21 18:51:39,466 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-21 18:51:39,468 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-21 18:51:39,468 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-21 18:51:39,469 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-21 18:51:39,469 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-21 18:51:39,469 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-21 18:51:39,469 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-21 18:51:39,470 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-21 18:51:39,470 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-21 18:51:39,470 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-21 18:51:39,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-21 18:51:39,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-21 18:51:39,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-21 18:51:39,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-21 18:51:39,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-21 18:51:39,471 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-21 18:51:39,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-21 18:51:39,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-21 18:51:39,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-21 18:51:39,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-21 18:51:39,472 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-21 18:51:39,472 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-21 18:51:39,472 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-21 18:51:39,472 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-21 18:51:39,472 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-21 18:51:39,472 - root - INFO - 增强版任务调度器已停止
2025-04-21 18:51:39,472 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-21 18:51:39,473 - data.session - INFO - 异步数据库连接已关闭
2025-04-21 18:51:39,473 - data.session - INFO - 正在关闭数据库连接...
2025-04-21 18:51:39,473 - data.session - INFO - 数据库连接已关闭
2025-04-22 09:39:03,318 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 09:39:03,318 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 09:39:04,329 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 09:39:04,329 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 09:39:04,461 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 09:39:04,537 - data.session - INFO - 正在初始化数据库...
2025-04-22 09:39:04,581 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 09:39:04,597 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 09:39:04,597 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,597 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 09:39:04,597 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,600 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 09:39:04,600 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,600 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 09:39:04,600 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 09:39:04,600 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,600 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 09:39:04,600 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,613 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 09:39:04,613 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,616 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 09:39:04,616 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,616 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 09:39:04,616 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,616 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 09:39:04,616 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,616 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 09:39:04,616 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,616 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 09:39:04,629 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,630 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 09:39:04,630 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,630 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 09:39:04,630 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,630 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 09:39:04,630 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 09:39:04,630 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 09:39:04,630 - data.session - INFO - 数据库表初始化完成
2025-04-22 09:39:05,215 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 09:39:05,215 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 09:39:05,215 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 09:39:05,215 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 09:39:05,215 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 09:39:05,215 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 09:39:05,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 09:39:05,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 09:39:05,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 09:39:05,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 09:39:05,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 09:39:05,215 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 09:39:05,215 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 09:39:05,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 09:39:05,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 09:39:05,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 09:39:05,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 09:39:05,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 09:39:05,220 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 09:39:05,220 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 09:39:05,220 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 09:39:05,225 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 09:39:05,229 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 09:39:05,230 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 09:39:05,232 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 09:39:05,232 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 09:39:05,232 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 09:39:05,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 09:39:05,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 09:39:05,245 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1, 1)
2025-04-22 09:39:05,245 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 09:39:05,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 09:39:05,245 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 09:39:05,245 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 09:39:05,245 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 09:39:05,245 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 09:39:05,252 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 09:39:05,252 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1000, 2000, 2001)
2025-04-22 09:39:05,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 09:39:05,252 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (17.7小时)，不使用它恢复任务
2025-04-22 09:39:05,252 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 09:39:05,252 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 09:39:05,252 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 09:39:05,252 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 09:39:05,252 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 09:39:05,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 09:39:05,259 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 09:39:05,259 - sqlalchemy.engine.Engine - INFO - [generated in 0.00110s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 8, 39, 5, 245501))
2025-04-22 09:39:05,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 09:39:11,936 - root - INFO - 应用程序关闭中...
2025-04-22 09:39:11,936 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 09:39:11,936 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 09:39:11,936 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 09:39:11,936 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 09:39:11,936 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 09:39:11,936 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 09:39:11,936 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 09:39:11,936 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 09:39:11,936 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 09:39:11,936 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 09:39:11,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 09:39:11,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 09:39:11,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 09:39:11,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 09:39:11,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 09:39:11,941 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 09:39:11,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 09:39:11,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 09:39:11,941 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 09:39:11,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 09:39:11,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 09:39:11,941 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 09:39:11,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 09:39:11,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 09:39:11,941 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 09:39:11,944 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 09:39:11,944 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 09:39:11,944 - root - INFO - 增强版任务调度器已停止
2025-04-22 09:39:11,945 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 09:39:11,945 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 09:39:11,945 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 09:39:11,945 - data.session - INFO - 数据库连接已关闭
2025-04-22 10:57:05,963 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 10:57:05,963 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 10:57:06,748 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 10:57:06,748 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 10:57:06,818 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 10:57:06,878 - data.session - INFO - 正在初始化数据库...
2025-04-22 10:57:06,905 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 10:57:06,930 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 10:57:06,932 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,932 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 10:57:06,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,934 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 10:57:06,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:06,935 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 10:57:06,935 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,937 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 10:57:06,937 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 10:57:06,940 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,940 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 10:57:06,940 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,943 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 10:57:06,943 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,944 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 10:57:06,945 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,945 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 10:57:06,946 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,947 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 10:57:06,947 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,948 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 10:57:06,948 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,949 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 10:57:06,949 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,950 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 10:57:06,950 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 10:57:06,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:06,951 - data.session - INFO - 数据库表初始化完成
2025-04-22 10:57:07,433 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 10:57:07,433 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 10:57:07,434 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 10:57:07,434 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 10:57:07,434 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 10:57:07,434 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 10:57:07,435 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 10:57:07,435 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 10:57:07,435 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 10:57:07,435 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 10:57:07,436 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 10:57:07,436 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 10:57:07,436 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 10:57:07,437 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 10:57:07,437 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 10:57:07,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 10:57:07,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 10:57:07,439 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 10:57:07,440 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 10:57:07,440 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 10:57:07,452 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 10:57:07,453 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 10:57:07,455 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 10:57:07,456 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 10:57:07,456 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 10:57:07,456 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 10:57:07,457 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 10:57:07,458 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:07,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 10:57:07,467 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (1, 1)
2025-04-22 10:57:07,468 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 10:57:07,468 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 10:57:07,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:07,469 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 10:57:07,469 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 10:57:07,469 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 10:57:07,469 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 10:57:07,470 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 10:57:07,470 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 10:57:07,470 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:07,472 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 10:57:07,472 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (1000, 2000, 2001)
2025-04-22 10:57:07,485 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:07,485 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 10:57:07,485 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.0小时)，不使用它恢复任务
2025-04-22 10:57:07,485 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.0小时)，不使用它恢复任务
2025-04-22 10:57:07,493 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 10:57:07,493 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 10:57:07,494 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 10:57:07,494 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 10:57:07,494 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 10:57:07,494 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 10:57:07,495 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 10:57:07,495 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:07,496 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 10:57:07,496 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 9, 57, 7, 470436))
2025-04-22 10:57:07,497 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,086 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-22 10:57:11,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,090 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 10:57:11,091 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 10:57:11,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,093 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,093 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 10:57:11,093 - sqlalchemy.engine.Engine - INFO - [cached since 0.00318s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 10:57:11,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,095 - services.task_edit_service - INFO - 准备启动任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-22 10:57:11,095 - services.task_edit_service - INFO - 准备启动任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-22 10:57:11,095 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-22 10:57:11,095 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-22 10:57:11,095 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-22 10:57:11,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 10:57:11,096 - sqlalchemy.engine.Engine - INFO - [cached since 0.005781s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 10:57:11,098 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-22 10:57:11,098 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('9af91ca7-b76a-4b22-9ef5-c50585a196d7', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 5, datetime.datetime(2025, 4, 22, 10, 57, 11, 97138), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "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, 22, 10, 57, 11, 95138), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 22, 10, 57, 11, 98146), datetime.datetime(2025, 4, 22, 10, 57, 11, 98146), 0)
2025-04-22 10:57:11,104 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 10:57:11,114 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('9af91ca7-b76a-4b22-9ef5-c50585a196d7',)
2025-04-22 10:57:11,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,115 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9af91ca7-b76a-4b22-9ef5-c50585a196d7 (优先级 1) 添加到队列 0
2025-04-22 10:57:11,115 - services.task_edit_service - INFO - 普通任务启动成功: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 记录ID: 9af91ca7-b76a-4b22-9ef5-c50585a196d7
2025-04-22 10:57:11,115 - services.task_edit_service - INFO - 普通任务启动成功: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 记录ID: 9af91ca7-b76a-4b22-9ef5-c50585a196d7
2025-04-22 10:57:11,115 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0298秒
2025-04-22 10:57:11,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 9af91ca7-b76a-4b22-9ef5-c50585a196d7, 优先级: 1
2025-04-22 10:57:11,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 9af91ca7-b76a-4b22-9ef5-c50585a196d7, 优先级: 1
2025-04-22 10:57:11,163 - services.execution.task_executor - DEBUG - 任务 9af91ca7-b76a-4b22-9ef5-c50585a196d7 设置超时时间: 3600秒
2025-04-22 10:57:11,164 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,166 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 10:57:11,166 - sqlalchemy.engine.Engine - INFO - [cached since 0.05222s ago] ('9af91ca7-b76a-4b22-9ef5-c50585a196d7',)
2025-04-22 10:57:11,167 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 10:57:11,167 - sqlalchemy.engine.Engine - INFO - [cached since 0.07705s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 10:57:11,168 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 10:57:11,169 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (datetime.datetime(2025, 4, 22, 10, 57, 11, 168428), datetime.datetime(2025, 4, 22, 10, 57, 11, 168428), '9af91ca7-b76a-4b22-9ef5-c50585a196d7')
2025-04-22 10:57:11,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,179 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 10:57:11,182 - sqlalchemy.engine.Engine - INFO - [generated in 0.00238s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 57, 11, 179427), '9af91ca7-b76a-4b22-9ef5-c50585a196d7')
2025-04-22 10:57:11,183 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,190 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-22 10:57:11,190 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-22 10:57:11,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,193 - 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-22 10:57:11,194 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('d89d4cd9-3a67-4a8b-aa9a-11a0471ac754', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '9af91ca7-b76a-4b22-9ef5-c50585a196d7', datetime.datetime(2025, 4, 22, 10, 57, 11, 191487), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 10, 57, 11, 193428), datetime.datetime(2025, 4, 22, 10, 57, 11, 193428), 0)
2025-04-22 10:57:11,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,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-22 10:57:11,204 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('d89d4cd9-3a67-4a8b-aa9a-11a0471ac754',)
2025-04-22 10:57:11,205 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 10:57:11,205 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 10:57:11,206 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 10:57:11,206 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 10:57:11,207 - 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-22 10:57:11,207 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 22, 10, 57, 11, 207428), 'd89d4cd9-3a67-4a8b-aa9a-11a0471ac754')
2025-04-22 10:57:11,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,218 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-22 10:57:11,218 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-22 10:57:11,219 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-22 10:57:11,219 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-22 10:57:11,219 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-22 10:57:11,219 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-22 10:57:11,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,221 - 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-22 10:57:11,221 - sqlalchemy.engine.Engine - INFO - [cached since 0.02801s ago] ('6f8203c9-8d64-4f08-8472-c670de842cd2', 'b1', '1', '', '{}', '{}', '{}', 'ReleaseResourceBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '9af91ca7-b76a-4b22-9ef5-c50585a196d7', datetime.datetime(2025, 4, 22, 10, 57, 11, 220428), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 10, 57, 11, 221428), datetime.datetime(2025, 4, 22, 10, 57, 11, 221428), 0)
2025-04-22 10:57:11,222 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,227 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 6f8203c9-8d64-4f08-8472-c670de842cd2
2025-04-22 10:57:11,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,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-22 10:57:11,229 - sqlalchemy.engine.Engine - INFO - [cached since 0.02516s ago] ('6f8203c9-8d64-4f08-8472-c670de842cd2',)
2025-04-22 10:57:11,230 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 10:57:11,230 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 10:57:11,230 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 10:57:11,230 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 10:57:11,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-22 10:57:11,231 - sqlalchemy.engine.Engine - INFO - [cached since 0.02365s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 22, 10, 57, 11, 230276), '6f8203c9-8d64-4f08-8472-c670de842cd2')
2025-04-22 10:57:11,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,238 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-22 10:57:11,238 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-22 10:57:11,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,239 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 10:57:11,239 - sqlalchemy.engine.Engine - INFO - [cached since 0.1257s ago] ('9af91ca7-b76a-4b22-9ef5-c50585a196d7',)
2025-04-22 10:57:11,240 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 10:57:11,240 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1, datetime.datetime(2025, 4, 22, 10, 57, 11, 240788), '9af91ca7-b76a-4b22-9ef5-c50585a196d7')
2025-04-22 10:57:11,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,248 - services.execution.handlers.foundation - INFO - 任务记录ID: 9af91ca7-b76a-4b22-9ef5-c50585a196d7 释放资源成功
2025-04-22 10:57:11,248 - services.execution.handlers.foundation - INFO - 任务记录ID: 9af91ca7-b76a-4b22-9ef5-c50585a196d7 释放资源成功
2025-04-22 10:57:11,249 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,249 - 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-22 10:57:11,250 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('a9695c1f-eb02-4279-884d-1e2341520602', 1, '{"success": true, "message": "释放资源成功", "output": {}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '9af91ca7-b76a-4b22-9ef5-c50585a196d7', datetime.datetime(2025, 4, 22, 10, 57, 11, 249382), datetime.datetime(2025, 4, 22, 10, 57, 11, 249382), 0)
2025-04-22 10:57:11,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,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-22 10:57:11,265 - sqlalchemy.engine.Engine - INFO - [cached since 0.06171s ago] ('6f8203c9-8d64-4f08-8472-c670de842cd2',)
2025-04-22 10:57:11,269 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 10:57:11,269 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 10:57:11,272 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 10:57:11,272 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 10:57:11,273 - 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-22 10:57:11,275 - sqlalchemy.engine.Engine - INFO - [generated in 0.00243s] (datetime.datetime(2025, 4, 22, 10, 57, 11, 273753), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 10, 57, 11, 273753), '6f8203c9-8d64-4f08-8472-c670de842cd2')
2025-04-22 10:57:11,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,288 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,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-22 10:57:11,289 - sqlalchemy.engine.Engine - INFO - [cached since 0.03964s ago] ('d3c0a748-72c9-4e62-a3a4-acc1e5438849', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '9af91ca7-b76a-4b22-9ef5-c50585a196d7', datetime.datetime(2025, 4, 22, 10, 57, 11, 288763), datetime.datetime(2025, 4, 22, 10, 57, 11, 288763), 0)
2025-04-22 10:57:11,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,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-22 10:57:11,303 - sqlalchemy.engine.Engine - INFO - [cached since 0.1001s ago] ('d89d4cd9-3a67-4a8b-aa9a-11a0471ac754',)
2025-04-22 10:57:11,306 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 10:57:11,306 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 10:57:11,306 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 10:57:11,306 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 10:57:11,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-22 10:57:11,309 - sqlalchemy.engine.Engine - INFO - [cached since 0.03552s ago] (datetime.datetime(2025, 4, 22, 10, 57, 11, 307815), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 10, 57, 11, 309009), 'd89d4cd9-3a67-4a8b-aa9a-11a0471ac754')
2025-04-22 10:57:11,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,323 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:57:11,328 - 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-22 10:57:11,330 - sqlalchemy.engine.Engine - INFO - [generated in 0.00167s] (datetime.datetime(2025, 4, 22, 10, 57, 11, 323770), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 147, 1, datetime.datetime(2025, 4, 22, 10, 57, 11, 328846), '9af91ca7-b76a-4b22-9ef5-c50585a196d7')
2025-04-22 10:57:11,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:57:11,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 9af91ca7-b76a-4b22-9ef5-c50585a196d7, 结果: True
2025-04-22 10:57:11,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 9af91ca7-b76a-4b22-9ef5-c50585a196d7, 结果: True
2025-04-22 10:58:07,456 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 10:58:07,456 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 10:58:07,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 10:58:07,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 10:58:07,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 10:58:07,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 10:58:07,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 10:58:07,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 10:58:07,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 10:58:07,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 10:58:07,462 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 10:58:07,462 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 10:58:07,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 10:58:07,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 10:58:07,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 10:58:07,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 10:58:07,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 10:58:07,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 10:58:07,465 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 10:58:07,465 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 10:58:07,466 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 10:58:07,466 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 10:58:07,467 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 10:58:07,467 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 10:58:07,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 10:58:07,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 10:58:07,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 10:58:07,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 10:58:07,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 10:58:07,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 10:58:07,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 10:58:07,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 10:58:07,485 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 10:58:07,485 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 10:58:07,487 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 10:58:07,487 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 10:58:07,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 10:58:07,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 10:58:07,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 10:58:07,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 10:58:07,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 10:58:07,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 10:58:07,503 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 10:58:07,503 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 10:58:07,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 10:58:07,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 10:58:07,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 10:58:07,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 10:58:07,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:58:07,518 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 10:58:07,518 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 9, 58, 7, 516694))
2025-04-22 10:58:07,520 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:58:22,502 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 10:58:22,502 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 10:58:22,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 10:58:22,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 10:58:22,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 10:58:22,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 10:58:22,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 10:58:22,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 10:58:22,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 10:58:22,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 10:58:22,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 10:58:22,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 10:59:07,522 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 10:59:07,522 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 10:59:07,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 10:59:07,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 10:59:07,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 10:59:07,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 10:59:07,534 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 10:59:07,534 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 10:59:07,535 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 10:59:07,535 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 10:59:07,536 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 10:59:07,536 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 10:59:07,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:07,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 10:59:07,541 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 9, 59, 7, 521395))
2025-04-22 10:59:07,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 10:59:07,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 10:59:07,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 10:59:07,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 10:59:07,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 10:59:07,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 10:59:07,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 10:59:07,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 10:59:07,554 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 10:59:07,554 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 10:59:07,557 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 10:59:07,557 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 10:59:07,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 10:59:07,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 10:59:07,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 10:59:07,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 10:59:07,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 10:59:07,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 10:59:07,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:07,575 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 10:59:07,575 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 10:59:07,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 10:59:07,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 10:59:07,581 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 10:59:07,581 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 10:59:07,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 10:59:07,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 10:59:07,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 10:59:07,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 10:59:07,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 10:59:07,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 10:59:07,593 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 10:59:07,593 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 10:59:07,598 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 10:59:07,598 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 10:59:07,609 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 10:59:07,609 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 10:59:22,607 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 10:59:22,607 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 10:59:22,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 10:59:22,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 10:59:22,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 10:59:22,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 10:59:22,610 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 10:59:22,610 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 10:59:22,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 10:59:22,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 10:59:22,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 10:59:22,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 10:59:46,472 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-22 10:59:46,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,476 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 10:59:46,477 - sqlalchemy.engine.Engine - INFO - [cached since 155.4s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 10:59:46,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,481 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 10:59:46,482 - sqlalchemy.engine.Engine - INFO - [cached since 155.4s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 10:59:46,485 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,489 - services.task_edit_service - INFO - 准备启动任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-22 10:59:46,489 - services.task_edit_service - INFO - 准备启动任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-22 10:59:46,490 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-22 10:59:46,490 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-22 10:59:46,490 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-22 10:59:46,491 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,492 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 10:59:46,493 - sqlalchemy.engine.Engine - INFO - [cached since 155.4s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 10:59:46,496 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-22 10:59:46,496 - sqlalchemy.engine.Engine - INFO - [cached since 155.4s ago] ('82c8914c-7112-407a-9e7d-7dddcd36ad3d', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 5, datetime.datetime(2025, 4, 22, 10, 59, 46, 495844), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "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, 22, 10, 59, 46, 489844), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 22, 10, 59, 46, 496845), datetime.datetime(2025, 4, 22, 10, 59, 46, 496845), 0)
2025-04-22 10:59:46,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,509 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 10:59:46,510 - sqlalchemy.engine.Engine - INFO - [cached since 155.4s ago] ('82c8914c-7112-407a-9e7d-7dddcd36ad3d',)
2025-04-22 10:59:46,511 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,511 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 82c8914c-7112-407a-9e7d-7dddcd36ad3d (优先级 1) 添加到队列 0
2025-04-22 10:59:46,513 - services.task_edit_service - INFO - 普通任务启动成功: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 记录ID: 82c8914c-7112-407a-9e7d-7dddcd36ad3d
2025-04-22 10:59:46,513 - services.task_edit_service - INFO - 普通任务启动成功: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 记录ID: 82c8914c-7112-407a-9e7d-7dddcd36ad3d
2025-04-22 10:59:46,513 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0412秒
2025-04-22 10:59:46,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 82c8914c-7112-407a-9e7d-7dddcd36ad3d, 优先级: 1
2025-04-22 10:59:46,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 82c8914c-7112-407a-9e7d-7dddcd36ad3d, 优先级: 1
2025-04-22 10:59:46,616 - services.execution.task_executor - DEBUG - 任务 82c8914c-7112-407a-9e7d-7dddcd36ad3d 设置超时时间: 3600秒
2025-04-22 10:59:46,616 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,618 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 10:59:46,618 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('82c8914c-7112-407a-9e7d-7dddcd36ad3d',)
2025-04-22 10:59:46,621 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 10:59:46,627 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 10:59:46,630 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 10:59:46,630 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] (datetime.datetime(2025, 4, 22, 10, 59, 46, 629883), datetime.datetime(2025, 4, 22, 10, 59, 46, 630886), '82c8914c-7112-407a-9e7d-7dddcd36ad3d')
2025-04-22 10:59:46,635 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,645 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,646 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 10:59:46,647 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 59, 46, 646220), '82c8914c-7112-407a-9e7d-7dddcd36ad3d')
2025-04-22 10:59:46,649 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,666 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-22 10:59:46,666 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-22 10:59:46,668 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,670 - 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-22 10:59:46,672 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('8dcbf675-5376-4382-8412-5eb3c9b743c3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '82c8914c-7112-407a-9e7d-7dddcd36ad3d', datetime.datetime(2025, 4, 22, 10, 59, 46, 667512), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 10, 59, 46, 670508), datetime.datetime(2025, 4, 22, 10, 59, 46, 670508), 0)
2025-04-22 10:59:46,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,688 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 10:59:46,690 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('8dcbf675-5376-4382-8412-5eb3c9b743c3',)
2025-04-22 10:59:46,691 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 10:59:46,691 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 10:59:46,692 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 10:59:46,692 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 10:59:46,693 - 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-22 10:59:46,693 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 22, 10, 59, 46, 693513), '8dcbf675-5376-4382-8412-5eb3c9b743c3')
2025-04-22 10:59:46,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,704 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-22 10:59:46,704 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-22 10:59:46,707 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-22 10:59:46,707 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-22 10:59:46,708 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-22 10:59:46,708 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-22 10:59:46,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,711 - 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-22 10:59:46,715 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('4491eb90-f27c-4b28-a273-c3856e2ebe4d', 'b1', '1', '', '{}', '{}', '{}', 'ReleaseResourceBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '82c8914c-7112-407a-9e7d-7dddcd36ad3d', datetime.datetime(2025, 4, 22, 10, 59, 46, 710333), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 10, 59, 46, 711406), datetime.datetime(2025, 4, 22, 10, 59, 46, 711406), 0)
2025-04-22 10:59:46,717 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,724 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4491eb90-f27c-4b28-a273-c3856e2ebe4d
2025-04-22 10:59:46,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,726 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 10:59:46,730 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('4491eb90-f27c-4b28-a273-c3856e2ebe4d',)
2025-04-22 10:59:46,733 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 10:59:46,733 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 10:59:46,736 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 10:59:46,736 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 10:59:46,737 - 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-22 10:59:46,739 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 22, 10, 59, 46, 737411), '4491eb90-f27c-4b28-a273-c3856e2ebe4d')
2025-04-22 10:59:46,740 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,749 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-22 10:59:46,749 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-22 10:59:46,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,751 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 10:59:46,754 - sqlalchemy.engine.Engine - INFO - [cached since 155.6s ago] ('82c8914c-7112-407a-9e7d-7dddcd36ad3d',)
2025-04-22 10:59:46,759 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 10:59:46,759 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] (1, datetime.datetime(2025, 4, 22, 10, 59, 46, 759101), '82c8914c-7112-407a-9e7d-7dddcd36ad3d')
2025-04-22 10:59:46,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,768 - services.execution.handlers.foundation - INFO - 任务记录ID: 82c8914c-7112-407a-9e7d-7dddcd36ad3d 释放资源成功
2025-04-22 10:59:46,768 - services.execution.handlers.foundation - INFO - 任务记录ID: 82c8914c-7112-407a-9e7d-7dddcd36ad3d 释放资源成功
2025-04-22 10:59:46,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,770 - 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-22 10:59:46,770 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('9a3c2605-bad9-415b-956f-d06b00aecb3d', 1, '{"success": true, "message": "释放资源成功", "output": {}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '82c8914c-7112-407a-9e7d-7dddcd36ad3d', datetime.datetime(2025, 4, 22, 10, 59, 46, 770390), datetime.datetime(2025, 4, 22, 10, 59, 46, 770390), 0)
2025-04-22 10:59:46,771 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,778 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 10:59:46,781 - sqlalchemy.engine.Engine - INFO - [cached since 155.6s ago] ('4491eb90-f27c-4b28-a273-c3856e2ebe4d',)
2025-04-22 10:59:46,781 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 10:59:46,781 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 10:59:46,782 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 10:59:46,782 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 10:59:46,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-22 10:59:46,783 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] (datetime.datetime(2025, 4, 22, 10, 59, 46, 782387), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 10, 59, 46, 783476), '4491eb90-f27c-4b28-a273-c3856e2ebe4d')
2025-04-22 10:59:46,784 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,794 - 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-22 10:59:46,794 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] ('70d1f4b9-f724-4ec8-a3fa-1df9893d1385', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '82c8914c-7112-407a-9e7d-7dddcd36ad3d', datetime.datetime(2025, 4, 22, 10, 59, 46, 794050), datetime.datetime(2025, 4, 22, 10, 59, 46, 794050), 0)
2025-04-22 10:59:46,795 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,803 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 10:59:46,803 - sqlalchemy.engine.Engine - INFO - [cached since 155.6s ago] ('8dcbf675-5376-4382-8412-5eb3c9b743c3',)
2025-04-22 10:59:46,805 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 10:59:46,805 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 10:59:46,805 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 10:59:46,805 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 10:59:46,807 - 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-22 10:59:46,807 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] (datetime.datetime(2025, 4, 22, 10, 59, 46, 806924), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 10, 59, 46, 806924), '8dcbf675-5376-4382-8412-5eb3c9b743c3')
2025-04-22 10:59:46,809 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,816 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 10:59:46,818 - 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-22 10:59:46,818 - sqlalchemy.engine.Engine - INFO - [cached since 155.5s ago] (datetime.datetime(2025, 4, 22, 10, 59, 46, 815550), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 170, 1, datetime.datetime(2025, 4, 22, 10, 59, 46, 818452), '82c8914c-7112-407a-9e7d-7dddcd36ad3d')
2025-04-22 10:59:46,821 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 10:59:46,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 82c8914c-7112-407a-9e7d-7dddcd36ad3d, 结果: True
2025-04-22 10:59:46,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 82c8914c-7112-407a-9e7d-7dddcd36ad3d, 结果: True
2025-04-22 11:00:07,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:00:07,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:00:07,583 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 0, 7, 580450))
2025-04-22 11:00:07,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:00:07,642 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:00:07,642 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:00:07,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:00:07,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:00:07,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:00:07,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:00:07,644 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:00:07,644 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:00:07,644 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:00:07,644 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:00:07,645 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:00:07,645 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:00:07,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:00:07,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:00:07,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:00:07,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:00:07,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:00:07,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:00:07,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:00:07,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:00:07,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:00:07,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:00:07,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:00:07,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:00:07,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:00:07,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:00:07,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:00:07,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:00:07,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:00:07,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:00:07,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:00:07,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:00:07,649 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:00:07,649 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:00:07,649 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:00:07,649 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:00:07,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:00:07,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:00:07,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:00:07,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:00:07,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:00:07,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:00:07,651 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:00:07,651 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:00:07,651 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:00:07,651 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:00:07,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:00:07,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:00:52,637 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:00:52,637 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:00:52,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:00:52,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:00:52,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:00:52,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:00:52,638 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:00:52,638 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:00:52,639 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:00:52,639 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:00:52,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:00:52,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:01:07,595 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:01:07,596 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:01:07,598 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 1, 7, 594662))
2025-04-22 11:01:07,601 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:01:22,646 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:01:22,646 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:01:22,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:01:22,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:01:22,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:01:22,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:01:22,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:01:22,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:01:22,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:01:22,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:01:22,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:01:22,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:01:22,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:01:22,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:01:22,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:01:22,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:01:22,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:01:22,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:01:22,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:01:22,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:01:22,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:01:22,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:01:22,648 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:01:22,648 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:01:22,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:01:22,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:01:22,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:01:22,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:01:22,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:01:22,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:01:22,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:01:22,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:01:22,649 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:01:22,649 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:01:22,649 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:01:22,649 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:01:22,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:01:22,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:01:22,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:01:22,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:01:22,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:01:22,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:01:22,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:01:22,652 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:01:22,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:01:22,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:01:22,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:01:22,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:01:52,688 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:01:52,688 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:01:52,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:01:52,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:01:52,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:01:52,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:01:52,690 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:01:52,690 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:01:52,691 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:01:52,691 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:01:52,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:01:52,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:01:52,799 - root - INFO - 应用程序关闭中...
2025-04-22 11:01:52,799 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:01:52,799 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:01:52,799 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:01:52,799 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:01:52,800 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:01:52,800 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:01:52,800 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:01:52,800 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:01:52,800 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:01:52,800 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:01:52,800 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:01:52,800 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:01:52,801 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:01:52,801 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:01:52,801 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:01:52,801 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:01:52,801 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:01:52,801 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:01:52,801 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:01:52,801 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:01:52,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:01:52,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:01:52,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:01:52,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:01:52,803 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:01:52,803 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:01:52,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-22 11:01:52,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:01:52,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-22 11:01:52,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:01:52,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:01:52,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-22 11:01:52,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-22 11:01:52,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:01:52,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:01:52,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:01:52,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:01:52,805 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-22 11:01:52,805 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-22 11:01:52,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:01:52,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:01:52,805 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:01:52,805 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:01:52,805 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:01:52,805 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:01:52,807 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:01:52,807 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:01:52,807 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:01:54,026 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:01:54,028 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:01:54,087 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:01:54,135 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:01:54,168 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:01:54,188 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:01:54,188 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,189 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:01:54,189 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,190 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:01:54,191 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:01:54,192 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:01:54,192 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,193 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:01:54,194 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,195 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:01:54,196 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,197 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:01:54,197 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,198 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:01:54,198 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,199 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:01:54,199 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,200 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:01:54,200 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,201 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:01:54,201 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,203 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:01:54,204 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,204 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:01:54,205 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,208 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:01:54,209 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:01:54,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:01:54,211 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:01:54,586 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:01:54,586 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:01:54,587 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:01:54,587 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:01:54,587 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:01:54,587 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:01:54,587 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:01:54,587 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:01:54,589 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:01:54,589 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:01:54,590 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:01:54,590 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:01:54,591 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:01:54,591 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:01:54,592 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:01:54,598 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:01:54,598 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:01:54,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:01:54,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:01:54,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:01:54,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:01:54,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:01:54,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:01:54,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:01:54,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:01:54,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:01:54,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:01:54,607 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:01:54,607 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:01:54,608 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:01:54,608 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:01:54,620 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:01:54,621 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:01:54,621 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:01:54,623 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:01:54,625 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:01:54,625 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:01:54,627 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:01:54,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:01:54,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:01:54,640 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1, 1)
2025-04-22 11:01:54,642 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:01:54,642 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:01:54,642 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:01:54,644 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:01:54,644 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:01:54,644 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:01:54,644 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:01:54,644 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:01:54,644 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:01:54,645 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:01:54,647 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:01:54,647 - sqlalchemy.engine.Engine - INFO - [generated in 0.00090s] (1000, 2000, 2001)
2025-04-22 11:01:54,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:01:54,667 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:01:54,668 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:01:54,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:01:54,670 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 1, 54, 644209))
2025-04-22 11:01:54,672 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.0小时)，不使用它恢复任务
2025-04-22 11:01:54,672 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.0小时)，不使用它恢复任务
2025-04-22 11:01:54,673 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:01:54,673 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:01:54,673 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:01:54,673 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:01:54,674 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:01:54,674 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:01:54,674 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:01:54,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:05,247 - root - INFO - 应用程序关闭中...
2025-04-22 11:02:05,248 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:02:05,248 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:02:05,248 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:02:05,248 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:02:05,249 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:02:05,249 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:02:05,249 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:02:05,249 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:02:05,249 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:02:05,249 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:02:05,249 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:02:05,249 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:02:05,249 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:02:05,249 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:02:05,249 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:02:05,249 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:02:05,249 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:02:05,249 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:02:05,249 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:02:05,249 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:02:05,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:02:05,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:02:05,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:02:05,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:02:05,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:02:05,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:02:05,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:02:05,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:02:05,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:02:05,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:02:05,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:02:05,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:02:05,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:02:05,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:02:05,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:02:05,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:02:05,253 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:02:05,253 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:02:05,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:02:05,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:02:05,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:02:05,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:02:05,255 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:02:05,255 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:02:05,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:02:05,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:02:05,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:02:05,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:02:05,260 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:02:05,260 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:02:05,261 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:02:05,261 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:02:05,261 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:02:05,261 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:02:05,261 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:02:05,261 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:02:05,263 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:02:05,264 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:02:05,266 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:02:06,422 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:02:06,475 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:02:06,504 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:02:06,524 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:02:06,524 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,525 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:02:06,525 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,526 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:02:06,526 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:06,527 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:02:06,527 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,529 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:02:06,529 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,530 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:02:06,531 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,532 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:02:06,532 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,533 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:02:06,534 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,535 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:02:06,535 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,537 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:02:06,539 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,540 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:02:06,540 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,541 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:02:06,542 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,543 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:02:06,543 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,544 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:02:06,545 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:06,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:06,547 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:02:06,919 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:02:06,919 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:02:06,920 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:02:06,920 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:02:06,920 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:02:06,920 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:02:06,921 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:02:06,921 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:02:06,921 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:02:06,921 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:02:06,922 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:02:06,922 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:02:06,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:02:06,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:02:06,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:02:06,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:02:06,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:02:06,922 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:02:06,923 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:02:06,923 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:02:06,923 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:02:06,923 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:02:06,924 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:02:06,924 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:02:06,927 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:02:06,927 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:02:06,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:02:06,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:02:06,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:02:06,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:02:06,929 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:02:06,930 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:02:06,930 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:02:06,931 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:02:06,931 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:02:06,931 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:02:06,933 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:02:06,933 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:02:06,934 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:06,944 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:02:06,944 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1, 1)
2025-04-22 11:02:06,946 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:02:06,946 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:02:06,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:06,947 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:02:06,947 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:02:06,947 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:02:06,947 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:02:06,948 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:02:06,948 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:02:06,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:06,951 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:02:06,952 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (1000, 2000, 2001)
2025-04-22 11:02:06,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:06,966 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:02:06,966 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.0小时)，不使用它恢复任务
2025-04-22 11:02:06,966 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.0小时)，不使用它恢复任务
2025-04-22 11:02:06,967 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:02:06,967 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:02:06,967 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:02:06,967 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:02:06,967 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:02:06,967 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:02:06,967 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:02:06,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:06,969 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:02:06,969 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 2, 6, 949378))
2025-04-22 11:02:06,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:24,797 - root - INFO - 应用程序关闭中...
2025-04-22 11:02:24,803 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:02:24,803 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:02:24,803 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:02:24,803 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:02:24,805 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:02:24,805 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:02:24,805 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:02:24,805 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:02:24,805 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:02:24,805 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:02:24,806 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:02:24,806 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:02:24,806 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:02:24,806 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:02:24,806 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:02:24,806 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:02:24,806 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:02:24,806 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:02:24,806 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:02:24,806 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:02:24,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:02:24,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:02:24,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:02:24,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:02:24,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:02:24,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:02:24,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:02:24,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:02:24,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:02:24,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:02:24,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:02:24,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:02:24,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:02:24,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:02:24,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:02:24,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:02:24,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:02:24,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:02:24,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:02:24,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:02:24,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:02:24,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:02:24,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:02:24,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:02:24,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:02:24,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:02:24,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:02:24,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:02:24,810 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:02:24,810 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:02:24,810 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:02:24,810 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:02:24,810 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:02:24,810 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:02:24,810 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:02:24,811 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:02:24,811 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:02:24,812 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:02:24,812 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:02:28,063 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:02:28,064 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:02:28,759 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:02:28,760 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:02:28,816 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:02:28,861 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:02:28,898 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:02:28,918 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:02:28,918 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,918 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:02:28,919 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,919 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:02:28,919 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:28,920 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:02:28,920 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,921 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:02:28,921 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,924 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:02:28,924 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,926 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:02:28,926 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,927 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:02:28,927 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,928 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:02:28,928 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,929 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:02:28,930 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,930 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:02:28,931 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,932 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:02:28,932 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,933 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:02:28,933 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,934 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:02:28,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:02:28,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:28,937 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:02:29,282 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:02:29,282 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:02:29,283 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:02:29,283 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:02:29,283 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:02:29,283 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:02:29,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:02:29,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:02:29,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:02:29,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:02:29,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:02:29,284 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:02:29,285 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:02:29,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:02:29,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:02:29,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:02:29,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:02:29,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:02:29,288 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:02:29,288 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:02:29,289 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:02:29,290 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:02:29,290 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:02:29,291 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:02:29,291 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:02:29,292 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:02:29,292 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:02:29,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:29,301 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:02:29,301 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (1, 1)
2025-04-22 11:02:29,302 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:02:29,303 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:29,303 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:02:29,304 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:02:29,304 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:02:29,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:29,307 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:02:29,307 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (1000, 2000, 2001)
2025-04-22 11:02:29,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:29,309 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.0小时)，不使用它恢复任务
2025-04-22 11:02:29,309 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:02:29,309 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:02:29,310 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:02:29,311 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:02:29,312 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:02:29,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:29,313 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:02:29,314 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 2, 29, 304992))
2025-04-22 11:02:29,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:31,862 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-22 11:02:31,864 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:31,865 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:02:31,865 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:02:31,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:31,867 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:31,871 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:02:31,876 - sqlalchemy.engine.Engine - INFO - [cached since 0.01131s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:02:31,878 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:31,879 - services.task_edit_service - INFO - 准备启动任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-22 11:02:31,880 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-22 11:02:31,880 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-22 11:02:31,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:31,884 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:02:31,885 - sqlalchemy.engine.Engine - INFO - [cached since 0.02035s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:02:31,887 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-22 11:02:31,889 - sqlalchemy.engine.Engine - INFO - [generated in 0.00156s] ('0e424267-72c7-445d-adb6-a15786d1a947', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 5, datetime.datetime(2025, 4, 22, 11, 2, 31, 886695), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "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, 22, 11, 2, 31, 879468), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 22, 11, 2, 31, 887698), datetime.datetime(2025, 4, 22, 11, 2, 31, 887698), 0)
2025-04-22 11:02:31,892 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:31,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:31,901 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 11:02:31,901 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('0e424267-72c7-445d-adb6-a15786d1a947',)
2025-04-22 11:02:31,902 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:31,903 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 0e424267-72c7-445d-adb6-a15786d1a947 (优先级 1) 添加到队列 0
2025-04-22 11:02:31,903 - services.task_edit_service - INFO - 普通任务启动成功: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 记录ID: 0e424267-72c7-445d-adb6-a15786d1a947
2025-04-22 11:02:31,903 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0419秒
2025-04-22 11:02:32,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 0e424267-72c7-445d-adb6-a15786d1a947, 优先级: 1
2025-04-22 11:02:32,001 - services.execution.task_executor - DEBUG - 任务 0e424267-72c7-445d-adb6-a15786d1a947 设置超时时间: 3600秒
2025-04-22 11:02:32,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,003 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 11:02:32,004 - sqlalchemy.engine.Engine - INFO - [cached since 0.102s ago] ('0e424267-72c7-445d-adb6-a15786d1a947',)
2025-04-22 11:02:32,005 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:02:32,006 - sqlalchemy.engine.Engine - INFO - [cached since 0.1402s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:02:32,007 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 11:02:32,008 - sqlalchemy.engine.Engine - INFO - [generated in 0.00090s] (datetime.datetime(2025, 4, 22, 11, 2, 32, 6229), datetime.datetime(2025, 4, 22, 11, 2, 32, 7212), '0e424267-72c7-445d-adb6-a15786d1a947')
2025-04-22 11:02:32,009 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,021 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 11:02:32,021 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 2, 32, 21550), '0e424267-72c7-445d-adb6-a15786d1a947')
2025-04-22 11:02:32,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,031 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-22 11:02:32,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,037 - 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-22 11:02:32,037 - sqlalchemy.engine.Engine - INFO - [generated in 0.00096s] ('6270c603-3c0b-468f-81ea-6d84cbe8c5b4', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '0e424267-72c7-445d-adb6-a15786d1a947', datetime.datetime(2025, 4, 22, 11, 2, 32, 31472), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 11, 2, 32, 36820), datetime.datetime(2025, 4, 22, 11, 2, 32, 36820), 0)
2025-04-22 11:02:32,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,048 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:02:32,048 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('6270c603-3c0b-468f-81ea-6d84cbe8c5b4',)
2025-04-22 11:02:32,049 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 11:02:32,050 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 11:02:32,050 - 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-22 11:02:32,050 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 22, 11, 2, 32, 50743), '6270c603-3c0b-468f-81ea-6d84cbe8c5b4')
2025-04-22 11:02:32,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,058 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-22 11:02:32,058 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-22 11:02:32,059 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-22 11:02:32,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,060 - 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-22 11:02:32,060 - sqlalchemy.engine.Engine - INFO - [cached since 0.024s ago] ('9c646969-56a1-4a4f-b376-f9308d67d3f9', 'b1', '1', '', '{}', '{}', '{}', 'ReleaseResourceBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '0e424267-72c7-445d-adb6-a15786d1a947', datetime.datetime(2025, 4, 22, 11, 2, 32, 59742), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 11, 2, 32, 60742), datetime.datetime(2025, 4, 22, 11, 2, 32, 60742), 0)
2025-04-22 11:02:32,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,070 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 9c646969-56a1-4a4f-b376-f9308d67d3f9
2025-04-22 11:02:32,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,071 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:02:32,072 - sqlalchemy.engine.Engine - INFO - [cached since 0.0234s ago] ('9c646969-56a1-4a4f-b376-f9308d67d3f9',)
2025-04-22 11:02:32,072 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 11:02:32,072 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 11:02:32,073 - 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-22 11:02:32,073 - sqlalchemy.engine.Engine - INFO - [cached since 0.02296s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 22, 11, 2, 32, 73742), '9c646969-56a1-4a4f-b376-f9308d67d3f9')
2025-04-22 11:02:32,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,081 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-22 11:02:32,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,082 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 11:02:32,082 - sqlalchemy.engine.Engine - INFO - [cached since 0.1812s ago] ('0e424267-72c7-445d-adb6-a15786d1a947',)
2025-04-22 11:02:32,083 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 11:02:32,084 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (1, datetime.datetime(2025, 4, 22, 11, 2, 32, 83742), '0e424267-72c7-445d-adb6-a15786d1a947')
2025-04-22 11:02:32,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,090 - services.execution.handlers.foundation - INFO - 任务记录ID: 0e424267-72c7-445d-adb6-a15786d1a947 释放资源成功
2025-04-22 11:02:32,090 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,091 - 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-22 11:02:32,092 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('bfa241fd-56f6-4858-8b72-daeee2b3be82', 1, '{"success": true, "message": "释放资源成功", "output": {}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '0e424267-72c7-445d-adb6-a15786d1a947', datetime.datetime(2025, 4, 22, 11, 2, 32, 91742), datetime.datetime(2025, 4, 22, 11, 2, 32, 91742), 0)
2025-04-22 11:02:32,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,100 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:02:32,101 - sqlalchemy.engine.Engine - INFO - [cached since 0.05283s ago] ('9c646969-56a1-4a4f-b376-f9308d67d3f9',)
2025-04-22 11:02:32,102 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 11:02:32,102 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 11:02:32,103 - 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-22 11:02:32,105 - sqlalchemy.engine.Engine - INFO - [generated in 0.00201s] (datetime.datetime(2025, 4, 22, 11, 2, 32, 102749), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 11, 2, 32, 103759), '9c646969-56a1-4a4f-b376-f9308d67d3f9')
2025-04-22 11:02:32,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,112 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,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-22 11:02:32,112 - sqlalchemy.engine.Engine - INFO - [cached since 0.02091s ago] ('cc636cc0-47c6-4ed1-b0e3-aec5a307e506', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '0e424267-72c7-445d-adb6-a15786d1a947', datetime.datetime(2025, 4, 22, 11, 2, 32, 112434), datetime.datetime(2025, 4, 22, 11, 2, 32, 112434), 0)
2025-04-22 11:02:32,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,123 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:02:32,123 - sqlalchemy.engine.Engine - INFO - [cached since 0.07474s ago] ('6270c603-3c0b-468f-81ea-6d84cbe8c5b4',)
2025-04-22 11:02:32,124 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 11:02:32,125 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 11:02:32,125 - 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-22 11:02:32,126 - sqlalchemy.engine.Engine - INFO - [cached since 0.0229s ago] (datetime.datetime(2025, 4, 22, 11, 2, 32, 125376), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 11, 2, 32, 125376), '6270c603-3c0b-468f-81ea-6d84cbe8c5b4')
2025-04-22 11:02:32,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:02:32,136 - 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-22 11:02:32,136 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (datetime.datetime(2025, 4, 22, 11, 2, 32, 134409), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 115, 1, datetime.datetime(2025, 4, 22, 11, 2, 32, 136389), '0e424267-72c7-445d-adb6-a15786d1a947')
2025-04-22 11:02:32,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:02:32,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 0e424267-72c7-445d-adb6-a15786d1a947, 结果: True
2025-04-22 11:03:29,312 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:03:29,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:03:29,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:03:29,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:03:29,314 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:03:29,314 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:03:29,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:03:29,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:03:29,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:03:29,316 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:03:29,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:03:29,317 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:03:29,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:03:29,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:03:29,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:03:29,318 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:03:29,318 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:03:29,318 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:03:29,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:03:29,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:03:29,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:03:29,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:03:29,320 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:03:29,321 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 3, 29, 317368))
2025-04-22 11:03:29,324 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:03:29,324 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:03:29,329 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:03:29,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:03:44,350 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:03:44,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:03:44,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:03:44,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:03:44,353 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:03:44,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:04:29,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:04:29,357 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:04:29,359 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 4, 29, 354574))
2025-04-22 11:04:29,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:04:29,362 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:04:29,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:04:29,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:04:29,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:04:29,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:04:29,365 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:04:29,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:04:29,367 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:04:29,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:04:29,368 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:04:29,369 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:04:29,369 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:04:29,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:04:29,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:04:29,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:04:29,372 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:04:29,372 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:04:29,372 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:04:29,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:04:29,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:04:29,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:04:29,374 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:04:29,374 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:04:29,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:04:44,397 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:04:44,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:04:44,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:04:44,398 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:04:44,400 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:04:44,400 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:05:29,385 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:05:29,386 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:05:29,386 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 5, 29, 384435))
2025-04-22 11:05:29,387 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:05:29,415 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:05:29,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:05:29,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:05:29,416 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:05:29,416 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:05:29,417 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:05:29,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:05:29,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:05:29,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:05:29,420 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:05:29,420 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:05:29,420 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:05:29,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:05:29,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:05:29,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:05:29,421 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:05:29,421 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:05:29,421 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:05:29,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:05:29,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:05:29,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:05:29,422 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:05:29,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:05:29,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:05:44,410 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:05:44,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:05:44,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:05:44,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:05:44,412 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:05:44,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:06:29,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:06:29,397 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:06:29,397 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 6, 29, 394900))
2025-04-22 11:06:29,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:06:29,442 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:06:29,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:06:29,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:06:29,461 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:06:29,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:06:29,461 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:06:29,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:06:29,465 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:06:29,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:06:29,468 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:06:29,473 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:06:29,473 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:06:29,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:06:29,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:06:29,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:06:29,491 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:06:29,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:06:29,492 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:06:29,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:06:29,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:06:29,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:06:29,498 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:06:29,499 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:06:29,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:06:44,528 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:06:44,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:06:44,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:06:44,529 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:06:44,529 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:06:44,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:07:27,584 - root - INFO - 应用程序关闭中...
2025-04-22 11:07:27,584 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:07:27,584 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:07:27,585 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:07:27,585 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:07:27,585 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:07:27,585 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:07:27,585 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:07:27,586 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:07:27,586 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:07:27,586 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:07:27,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:07:27,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:07:27,586 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:07:27,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:07:27,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:07:27,586 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-22 11:07:27,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:07:27,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:07:27,586 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-22 11:07:27,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:07:27,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:07:27,587 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-22 11:07:27,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:07:27,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:07:27,587 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-22 11:07:27,587 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:07:27,587 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:07:27,587 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:07:27,587 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:07:27,588 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:07:27,589 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:07:27,589 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:07:28,853 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:07:28,854 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:07:28,916 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:07:28,974 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:07:28,991 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:07:28,992 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:28,992 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:07:28,992 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:28,993 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:07:28,993 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:28,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:07:28,994 - sqlalchemy.engine.Engine - INFO - CREATE DATABASE IF NOT EXISTS vwed_task CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
2025-04-22 11:07:28,995 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] {}
2025-04-22 11:07:29,005 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:07:29,006 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-22 11:07:29,007 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:07:29,008 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,008 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:07:29,008 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,009 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:07:29,009 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:07:29,010 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:07:29,010 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,012 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:07:29,012 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,015 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:07:29,015 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,018 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:07:29,018 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,020 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:07:29,022 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,023 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:07:29,023 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,024 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:07:29,024 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,026 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:07:29,027 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,027 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:07:29,028 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,028 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:07:29,028 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,029 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:07:29,029 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:07:29,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:07:29,030 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:07:29,413 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:07:29,414 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:07:29,414 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:07:29,414 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:07:29,414 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:07:29,414 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:07:29,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:07:29,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:07:29,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:07:29,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:07:29,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:07:29,414 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:07:29,415 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:07:29,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:07:29,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:07:29,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:07:29,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:07:29,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:07:29,416 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:07:29,416 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:07:29,417 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:07:29,418 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:07:29,418 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:07:29,418 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:07:29,419 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:07:29,419 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:07:29,419 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:07:29,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:07:29,420 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) _post_configure_properties() started
2025-04-22 11:07:29,420 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop id
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop label
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop created_by
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop version
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop detail
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop template_name
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop period
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop periodic_task
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop status
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop if_enable
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop delay
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop release_sites
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop create_date
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop remark
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop tenant_id
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop user_token
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop created_at
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop updated_at
2025-04-22 11:07:29,421 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop is_deleted
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) _post_configure_properties() complete
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) _post_configure_properties() started
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop id
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop def_id
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop def_label
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop def_version
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop created_on
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop ended_on
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop ended_reason
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop status
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop input_params
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop path
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop agv_id
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop parent_task_record_id
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop root_task_record_id
2025-04-22 11:07:29,422 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop state_description
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop executor_time
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop first_executor_time
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop if_have_child_task
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop periodic_task
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop priority
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop root_block_state_id
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop work_stations
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop work_types
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop task_def_detail
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop variables
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop call_work_station
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop call_work_type
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_type
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_system
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_user
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_device
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_ip
2025-04-22 11:07:29,423 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_time
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_client_info
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_remarks
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop allow_restart_same_location
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop created_at
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop updated_at
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop is_deleted
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) _post_configure_properties() complete
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) _post_configure_properties() started
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop id
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop level
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop message
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop task_block_id
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop task_id
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop task_record_id
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop created_at
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop updated_at
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop is_deleted
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) _post_configure_properties() complete
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) _post_configure_properties() started
2025-04-22 11:07:29,424 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop id
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_name
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_id
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_config_id
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_input_params
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_input_params_value
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_out_params_value
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_internal_variables
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_execute_name
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop task_id
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop task_record_id
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop started_on
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop ended_on
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop ended_reason
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop status
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop ctrl_status
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop input_params
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop internal_variables
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop output_params
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop version
2025-04-22 11:07:29,425 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop remark
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop created_at
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop updated_at
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop is_deleted
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) _post_configure_properties() complete
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) _post_configure_properties() started
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop id
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_name
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_description
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_if_enable
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_dir
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop created_at
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop updated_at
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop is_deleted
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) _post_configure_properties() complete
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) _post_configure_properties() started
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop id
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop data
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop created_at
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop updated_at
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop is_deleted
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) _post_configure_properties() complete
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) _post_configure_properties() started
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop id
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop data_key
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop data_value
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop created_at
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop updated_at
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop is_deleted
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) _post_configure_properties() complete
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) _post_configure_properties() started
2025-04-22 11:07:29,427 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop versions
2025-04-22 11:07:29,428 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions setup primary join vwed_script.id = vwed_script_version.script_id
2025-04-22 11:07:29,428 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions setup secondary join None
2025-04-22 11:07:29,428 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions synchronize pairs [(vwed_script.id => vwed_script_version.script_id)]
2025-04-22 11:07:29,428 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions secondary synchronize pairs []
2025-04-22 11:07:29,428 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions local/remote pairs [(vwed_script.id / vwed_script_version.script_id)]
2025-04-22 11:07:29,428 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions remote columns [vwed_script_version.script_id]
2025-04-22 11:07:29,428 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions local columns [vwed_script.id]
2025-04-22 11:07:29,428 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions relationship direction RelationshipDirection.ONETOMANY
2025-04-22 11:07:29,428 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScript.versions lazy loading clause :param_1 = vwed_script_version.script_id
2025-04-22 11:07:29,429 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop logs
2025-04-22 11:07:29,429 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs setup primary join vwed_script.id = vwed_script_log.script_id
2025-04-22 11:07:29,429 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs setup secondary join None
2025-04-22 11:07:29,429 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs synchronize pairs [(vwed_script.id => vwed_script_log.script_id)]
2025-04-22 11:07:29,429 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs secondary synchronize pairs []
2025-04-22 11:07:29,429 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs local/remote pairs [(vwed_script.id / vwed_script_log.script_id)]
2025-04-22 11:07:29,429 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs remote columns [vwed_script_log.script_id]
2025-04-22 11:07:29,429 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs local columns [vwed_script.id]
2025-04-22 11:07:29,429 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs relationship direction RelationshipDirection.ONETOMANY
2025-04-22 11:07:29,430 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScript.logs lazy loading clause :param_1 = vwed_script_log.script_id
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop id
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop name
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop folder_path
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop file_name
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop description
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop code
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop version
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop status
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop is_public
2025-04-22 11:07:29,430 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop tags
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop created_by
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop created_on
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop updated_by
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop updated_on
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop test_params
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop created_at
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop updated_at
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop is_deleted
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) _post_configure_properties() complete
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) _post_configure_properties() started
2025-04-22 11:07:29,431 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop script
2025-04-22 11:07:29,431 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script setup primary join vwed_script.id = vwed_script_version.script_id
2025-04-22 11:07:29,431 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script setup secondary join None
2025-04-22 11:07:29,431 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script synchronize pairs [(vwed_script.id => vwed_script_version.script_id)]
2025-04-22 11:07:29,431 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script secondary synchronize pairs []
2025-04-22 11:07:29,431 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script local/remote pairs [(vwed_script_version.script_id / vwed_script.id)]
2025-04-22 11:07:29,431 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script remote columns [vwed_script.id]
2025-04-22 11:07:29,431 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script local columns [vwed_script_version.script_id]
2025-04-22 11:07:29,431 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script relationship direction RelationshipDirection.MANYTOONE
2025-04-22 11:07:29,432 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptVersion.script lazy loading clause vwed_script.id = :param_1
2025-04-22 11:07:29,432 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptVersion.script will use Session.get() to optimize instance loads
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop id
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop script_id
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop version
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop code
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop change_log
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop created_by
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop created_on
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop created_at
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop updated_at
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop is_deleted
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) _post_configure_properties() complete
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) _post_configure_properties() started
2025-04-22 11:07:29,433 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop script
2025-04-22 11:07:29,433 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script setup primary join vwed_script.id = vwed_script_log.script_id
2025-04-22 11:07:29,434 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script setup secondary join None
2025-04-22 11:07:29,434 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script synchronize pairs [(vwed_script.id => vwed_script_log.script_id)]
2025-04-22 11:07:29,434 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script secondary synchronize pairs []
2025-04-22 11:07:29,434 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script local/remote pairs [(vwed_script_log.script_id / vwed_script.id)]
2025-04-22 11:07:29,434 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script remote columns [vwed_script.id]
2025-04-22 11:07:29,434 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script local columns [vwed_script_log.script_id]
2025-04-22 11:07:29,434 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script relationship direction RelationshipDirection.MANYTOONE
2025-04-22 11:07:29,434 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptLog.script lazy loading clause vwed_script.id = :param_1
2025-04-22 11:07:29,434 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptLog.script will use Session.get() to optimize instance loads
2025-04-22 11:07:29,434 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop id
2025-04-22 11:07:29,434 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop script_id
2025-04-22 11:07:29,434 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop version
2025-04-22 11:07:29,434 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop task_record_id
2025-04-22 11:07:29,434 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop block_record_id
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop input_params
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop output_result
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop status
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop error_message
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop execution_time
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop started_on
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop ended_on
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop created_at
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop updated_at
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop is_deleted
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) _post_configure_properties() complete
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) _post_configure_properties() started
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop id
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop name
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop ip
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop port
2025-04-22 11:07:29,435 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop slave_id
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop address_type
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop address_number
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop task_id
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop target_value
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop remark
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop create_date
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop update_date
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop status
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop tenant_id
2025-04-22 11:07:29,436 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop created_at
2025-04-22 11:07:29,437 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop updated_at
2025-04-22 11:07:29,437 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop is_deleted
2025-04-22 11:07:29,437 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) _post_configure_properties() complete
2025-04-22 11:07:29,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:07:29,438 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (1, 1)
2025-04-22 11:07:29,439 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:07:29,440 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:07:29,440 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:07:29,441 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:07:29,441 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:07:29,441 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:07:29,443 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:07:29,443 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (1000, 2000, 2001)
2025-04-22 11:07:29,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:07:29,469 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:07:29,469 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.1小时)，不使用它恢复任务
2025-04-22 11:07:29,469 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:07:29,469 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:07:29,471 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:07:29,471 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:07:29,471 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:07:29,471 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:07:29,472 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 7, 29, 441267))
2025-04-22 11:07:29,472 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:08:29,437 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:08:29,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:08:29,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:08:29,439 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:08:29,440 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:08:29,440 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:08:29,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:08:29,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:08:29,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:08:29,441 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:08:29,441 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:08:29,441 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:08:29,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:08:29,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:08:29,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:08:29,441 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:08:29,441 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:08:29,441 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:08:29,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:08:29,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:08:29,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:08:29,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:08:29,443 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:08:29,443 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:08:29,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:08:29,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:08:29,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:08:29,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:08:29,443 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:08:29,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:08:29,484 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:08:29,485 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:08:29,485 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 8, 29, 484053))
2025-04-22 11:08:29,486 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:08:29,638 - root - INFO - 应用程序关闭中...
2025-04-22 11:08:29,638 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:08:29,638 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:08:29,638 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:08:29,639 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:08:29,639 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:08:29,639 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:08:29,639 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:08:29,640 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:08:29,640 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:08:29,640 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:08:29,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:08:29,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:08:29,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:08:29,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:08:29,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:08:29,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:08:29,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:08:29,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:08:29,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:08:29,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:08:29,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:08:29,642 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:08:29,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:08:29,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:08:29,642 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:08:29,642 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:08:29,642 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:08:29,642 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:08:29,642 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:08:29,642 - sqlalchemy.pool.impl.AsyncAdaptedQueuePool - INFO - Pool disposed. Pool size: 10  Connections in pool: 0 Current Overflow: -10 Current Checked out connections: 0
2025-04-22 11:08:29,642 - sqlalchemy.pool.impl.AsyncAdaptedQueuePool - INFO - Pool recreating
2025-04-22 11:08:29,642 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:08:29,643 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:08:29,643 - sqlalchemy.pool.impl.QueuePool - INFO - Pool disposed. Pool size: 10  Connections in pool: 0 Current Overflow: -10 Current Checked out connections: 0
2025-04-22 11:08:29,643 - sqlalchemy.pool.impl.QueuePool - INFO - Pool recreating
2025-04-22 11:08:29,643 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:08:30,957 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:08:30,958 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:08:31,015 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:08:31,063 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:08:31,100 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:08:31,119 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:08:31,123 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,127 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:08:31,130 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,134 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:08:31,136 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:08:31,136 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:08:31,137 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,138 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:08:31,138 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,142 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:08:31,145 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,154 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:08:31,157 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,159 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:08:31,160 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,161 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:08:31,161 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,166 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:08:31,166 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,167 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:08:31,167 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,168 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:08:31,168 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,170 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:08:31,170 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,171 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:08:31,171 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:08:31,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:08:31,174 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:08:31,542 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:08:31,542 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:08:31,542 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:08:31,543 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:08:31,543 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:08:31,543 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:08:31,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:08:31,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:08:31,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:08:31,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:08:31,545 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:08:31,545 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:08:31,545 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:08:31,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:08:31,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:08:31,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:08:31,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:08:31,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:08:31,548 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:08:31,549 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:08:31,552 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:08:31,553 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:08:31,553 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:08:31,555 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:08:31,555 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:08:31,556 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:08:31,556 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:08:31,557 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:08:31,566 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:08:31,567 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1, 1)
2025-04-22 11:08:31,567 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:08:31,568 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:08:31,568 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:08:31,568 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:08:31,569 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:08:31,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:08:31,570 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:08:31,571 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1000, 2000, 2001)
2025-04-22 11:08:31,572 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:08:31,572 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.1小时)，不使用它恢复任务
2025-04-22 11:08:31,573 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:08:31,573 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:08:31,573 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:08:31,573 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:08:31,573 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:08:31,574 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:08:31,575 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:08:31,575 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 8, 31, 569554))
2025-04-22 11:08:31,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:31,572 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:09:31,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:09:31,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:09:31,573 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:09:31,573 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:09:31,575 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:09:31,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:09:31,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:09:31,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:09:31,575 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:31,575 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:09:31,575 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 9, 31, 573896))
2025-04-22 11:09:31,576 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:09:31,576 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:09:31,578 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:09:31,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:09:31,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:09:31,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:09:31,579 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:09:31,579 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:09:31,579 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:09:31,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:31,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:09:31,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:09:31,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:09:31,580 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:09:31,580 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:09:31,580 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:09:31,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:09:31,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:09:31,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:09:31,580 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:09:31,581 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:09:31,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:09:31,743 - root - INFO - 应用程序关闭中...
2025-04-22 11:09:31,743 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:09:31,744 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:09:31,744 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:09:31,744 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:09:31,744 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:09:31,744 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:09:31,744 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:09:31,744 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:09:31,745 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:09:31,745 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:09:31,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:09:31,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:09:31,745 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:09:31,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:09:31,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:09:31,748 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:09:31,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:09:31,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:09:31,750 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:09:31,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:09:31,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:09:31,750 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:09:31,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:09:31,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:09:31,751 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:09:31,752 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:09:31,752 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:09:31,753 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:09:31,753 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:09:31,753 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:09:31,753 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:09:31,754 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:09:32,938 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:09:32,942 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:09:33,001 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:09:33,049 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:09:33,070 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:09:33,073 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,074 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:09:33,074 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,075 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:09:33,075 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:33,076 - sqlalchemy.engine.Engine - INFO - CREATE DATABASE IF NOT EXISTS vwed_task CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
2025-04-22 11:09:33,076 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] {}
2025-04-22 11:09:33,089 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:09:33,089 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-22 11:09:33,101 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:09:33,102 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,102 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:09:33,103 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,104 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:09:33,104 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:33,106 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:09:33,106 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,107 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:09:33,108 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,109 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:09:33,109 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,112 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:09:33,112 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,113 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:09:33,113 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,115 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:09:33,116 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,117 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:09:33,117 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,119 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:09:33,119 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,120 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:09:33,120 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,121 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:09:33,122 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,123 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:09:33,124 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:33,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:33,126 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:09:33,487 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:09:33,487 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:09:33,488 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:09:33,488 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:09:33,488 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:09:33,488 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:09:33,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:09:33,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:09:33,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:09:33,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:09:33,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:09:33,489 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:09:33,489 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:09:33,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:09:33,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:09:33,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:09:33,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:09:33,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:09:33,492 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:09:33,492 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:09:33,494 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:09:33,494 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:09:33,495 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:09:33,495 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:09:33,495 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:09:33,496 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:09:33,496 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:09:33,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:33,497 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) _post_configure_properties() started
2025-04-22 11:09:33,497 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop id
2025-04-22 11:09:33,497 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop label
2025-04-22 11:09:33,497 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop created_by
2025-04-22 11:09:33,497 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop version
2025-04-22 11:09:33,497 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop detail
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop template_name
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop period
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop periodic_task
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop status
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop if_enable
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop delay
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop release_sites
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop create_date
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop remark
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop tenant_id
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop user_token
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop created_at
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop updated_at
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop is_deleted
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) _post_configure_properties() complete
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) _post_configure_properties() started
2025-04-22 11:09:33,498 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop id
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop def_id
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop def_label
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop def_version
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop created_on
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop ended_on
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop ended_reason
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop status
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop input_params
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop path
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop agv_id
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop parent_task_record_id
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop root_task_record_id
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop state_description
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop executor_time
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop first_executor_time
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop if_have_child_task
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop periodic_task
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop priority
2025-04-22 11:09:33,499 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop root_block_state_id
2025-04-22 11:09:33,500 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop work_stations
2025-04-22 11:09:33,500 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop work_types
2025-04-22 11:09:33,500 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop task_def_detail
2025-04-22 11:09:33,500 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop variables
2025-04-22 11:09:33,500 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop call_work_station
2025-04-22 11:09:33,500 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop call_work_type
2025-04-22 11:09:33,500 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_type
2025-04-22 11:09:33,500 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_system
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_user
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_device
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_ip
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_time
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_client_info
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_remarks
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop allow_restart_same_location
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop created_at
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop updated_at
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop is_deleted
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) _post_configure_properties() complete
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) _post_configure_properties() started
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop id
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop level
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop message
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop task_block_id
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop task_id
2025-04-22 11:09:33,501 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop task_record_id
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop created_at
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop updated_at
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop is_deleted
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) _post_configure_properties() complete
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) _post_configure_properties() started
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop id
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_name
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_id
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_config_id
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_input_params
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_input_params_value
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_out_params_value
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_internal_variables
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_execute_name
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop task_id
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop task_record_id
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop started_on
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop ended_on
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop ended_reason
2025-04-22 11:09:33,502 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop status
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop ctrl_status
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop input_params
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop internal_variables
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop output_params
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop version
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop remark
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop created_at
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop updated_at
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop is_deleted
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) _post_configure_properties() complete
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) _post_configure_properties() started
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop id
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_name
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_description
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_if_enable
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_dir
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop created_at
2025-04-22 11:09:33,503 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop updated_at
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop is_deleted
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) _post_configure_properties() complete
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) _post_configure_properties() started
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop id
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop data
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop created_at
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop updated_at
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop is_deleted
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) _post_configure_properties() complete
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) _post_configure_properties() started
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop id
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop data_key
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop data_value
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop created_at
2025-04-22 11:09:33,504 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop updated_at
2025-04-22 11:09:33,505 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop is_deleted
2025-04-22 11:09:33,505 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) _post_configure_properties() complete
2025-04-22 11:09:33,505 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) _post_configure_properties() started
2025-04-22 11:09:33,505 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop versions
2025-04-22 11:09:33,505 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions setup primary join vwed_script.id = vwed_script_version.script_id
2025-04-22 11:09:33,506 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions setup secondary join None
2025-04-22 11:09:33,506 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions synchronize pairs [(vwed_script.id => vwed_script_version.script_id)]
2025-04-22 11:09:33,506 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions secondary synchronize pairs []
2025-04-22 11:09:33,506 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions local/remote pairs [(vwed_script.id / vwed_script_version.script_id)]
2025-04-22 11:09:33,506 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions remote columns [vwed_script_version.script_id]
2025-04-22 11:09:33,506 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions local columns [vwed_script.id]
2025-04-22 11:09:33,506 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions relationship direction RelationshipDirection.ONETOMANY
2025-04-22 11:09:33,506 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScript.versions lazy loading clause :param_1 = vwed_script_version.script_id
2025-04-22 11:09:33,506 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop logs
2025-04-22 11:09:33,506 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs setup primary join vwed_script.id = vwed_script_log.script_id
2025-04-22 11:09:33,507 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs setup secondary join None
2025-04-22 11:09:33,507 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs synchronize pairs [(vwed_script.id => vwed_script_log.script_id)]
2025-04-22 11:09:33,507 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs secondary synchronize pairs []
2025-04-22 11:09:33,507 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs local/remote pairs [(vwed_script.id / vwed_script_log.script_id)]
2025-04-22 11:09:33,507 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs remote columns [vwed_script_log.script_id]
2025-04-22 11:09:33,507 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs local columns [vwed_script.id]
2025-04-22 11:09:33,507 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs relationship direction RelationshipDirection.ONETOMANY
2025-04-22 11:09:33,507 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScript.logs lazy loading clause :param_1 = vwed_script_log.script_id
2025-04-22 11:09:33,507 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop id
2025-04-22 11:09:33,507 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop name
2025-04-22 11:09:33,507 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop folder_path
2025-04-22 11:09:33,507 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop file_name
2025-04-22 11:09:33,507 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop description
2025-04-22 11:09:33,507 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop code
2025-04-22 11:09:33,507 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop version
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop status
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop is_public
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop tags
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop created_by
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop created_on
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop updated_by
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop updated_on
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop test_params
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop created_at
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop updated_at
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop is_deleted
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) _post_configure_properties() complete
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) _post_configure_properties() started
2025-04-22 11:09:33,508 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop script
2025-04-22 11:09:33,509 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script setup primary join vwed_script.id = vwed_script_version.script_id
2025-04-22 11:09:33,509 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script setup secondary join None
2025-04-22 11:09:33,509 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script synchronize pairs [(vwed_script.id => vwed_script_version.script_id)]
2025-04-22 11:09:33,509 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script secondary synchronize pairs []
2025-04-22 11:09:33,509 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script local/remote pairs [(vwed_script_version.script_id / vwed_script.id)]
2025-04-22 11:09:33,509 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script remote columns [vwed_script.id]
2025-04-22 11:09:33,509 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script local columns [vwed_script_version.script_id]
2025-04-22 11:09:33,509 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script relationship direction RelationshipDirection.MANYTOONE
2025-04-22 11:09:33,509 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptVersion.script lazy loading clause vwed_script.id = :param_1
2025-04-22 11:09:33,509 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptVersion.script will use Session.get() to optimize instance loads
2025-04-22 11:09:33,510 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop id
2025-04-22 11:09:33,510 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop script_id
2025-04-22 11:09:33,510 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop version
2025-04-22 11:09:33,510 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop code
2025-04-22 11:09:33,510 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop change_log
2025-04-22 11:09:33,511 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop created_by
2025-04-22 11:09:33,511 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop created_on
2025-04-22 11:09:33,511 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop created_at
2025-04-22 11:09:33,511 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop updated_at
2025-04-22 11:09:33,511 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop is_deleted
2025-04-22 11:09:33,511 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) _post_configure_properties() complete
2025-04-22 11:09:33,511 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) _post_configure_properties() started
2025-04-22 11:09:33,511 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop script
2025-04-22 11:09:33,511 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script setup primary join vwed_script.id = vwed_script_log.script_id
2025-04-22 11:09:33,511 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script setup secondary join None
2025-04-22 11:09:33,511 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script synchronize pairs [(vwed_script.id => vwed_script_log.script_id)]
2025-04-22 11:09:33,511 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script secondary synchronize pairs []
2025-04-22 11:09:33,511 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script local/remote pairs [(vwed_script_log.script_id / vwed_script.id)]
2025-04-22 11:09:33,511 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script remote columns [vwed_script.id]
2025-04-22 11:09:33,511 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script local columns [vwed_script_log.script_id]
2025-04-22 11:09:33,511 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script relationship direction RelationshipDirection.MANYTOONE
2025-04-22 11:09:33,512 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptLog.script lazy loading clause vwed_script.id = :param_1
2025-04-22 11:09:33,512 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptLog.script will use Session.get() to optimize instance loads
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop id
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop script_id
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop version
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop task_record_id
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop block_record_id
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop input_params
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop output_result
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop status
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop error_message
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop execution_time
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop started_on
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop ended_on
2025-04-22 11:09:33,512 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop created_at
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop updated_at
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop is_deleted
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) _post_configure_properties() complete
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) _post_configure_properties() started
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop id
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop name
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop ip
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop port
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop slave_id
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop address_type
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop address_number
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop task_id
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop target_value
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop remark
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop create_date
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop update_date
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop status
2025-04-22 11:09:33,513 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop tenant_id
2025-04-22 11:09:33,514 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop created_at
2025-04-22 11:09:33,514 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop updated_at
2025-04-22 11:09:33,514 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop is_deleted
2025-04-22 11:09:33,514 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) _post_configure_properties() complete
2025-04-22 11:09:33,515 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:09:33,515 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1, 1)
2025-04-22 11:09:33,516 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:09:33,516 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:33,517 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:09:33,517 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:09:33,517 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:09:33,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:33,521 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:09:33,521 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (1000, 2000, 2001)
2025-04-22 11:09:33,523 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:33,523 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:09:33,523 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.2小时)，不使用它恢复任务
2025-04-22 11:09:33,524 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:09:33,524 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:09:33,524 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:09:33,524 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:09:33,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:33,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:09:33,526 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 9, 33, 518203))
2025-04-22 11:09:33,526 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:34,159 - root - INFO - 应用程序关闭中...
2025-04-22 11:09:34,159 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:09:34,159 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:09:34,159 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:09:34,159 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:09:34,159 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:09:34,159 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:09:34,159 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:09:34,159 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:09:34,159 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:09:34,159 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:09:34,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:09:34,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:09:34,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:09:34,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:09:34,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:09:34,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:09:34,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:09:34,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:09:34,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:09:34,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:09:34,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:09:34,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:09:34,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:09:34,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:09:34,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:09:34,161 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:09:34,161 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:09:34,161 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:09:34,161 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:09:34,162 - sqlalchemy.pool.impl.AsyncAdaptedQueuePool - INFO - Pool disposed. Pool size: 10  Connections in pool: 0 Current Overflow: -10 Current Checked out connections: 0
2025-04-22 11:09:34,162 - sqlalchemy.pool.impl.AsyncAdaptedQueuePool - INFO - Pool recreating
2025-04-22 11:09:34,162 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:09:34,162 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:09:34,162 - sqlalchemy.pool.impl.QueuePool - INFO - Pool disposed. Pool size: 10  Connections in pool: 0 Current Overflow: -10 Current Checked out connections: 0
2025-04-22 11:09:34,162 - sqlalchemy.pool.impl.QueuePool - INFO - Pool recreating
2025-04-22 11:09:34,162 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:09:35,969 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:09:35,969 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:09:36,691 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:09:36,692 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:09:36,762 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:09:36,817 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:09:36,837 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:09:36,837 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,838 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:09:36,838 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,838 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:09:36,838 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,839 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:36,839 - sqlalchemy.engine.Engine - INFO - CREATE DATABASE IF NOT EXISTS vwed_task CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
2025-04-22 11:09:36,839 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] {}
2025-04-22 11:09:36,842 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:09:36,843 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-22 11:09:36,872 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:09:36,873 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,873 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:09:36,873 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,874 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:09:36,874 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:36,875 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:09:36,876 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,877 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:09:36,877 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,878 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:09:36,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,878 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:09:36,879 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,879 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:09:36,880 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,881 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:09:36,881 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,882 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:09:36,883 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,883 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:09:36,885 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,886 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:09:36,886 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,887 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:09:36,887 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,888 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:09:36,888 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:09:36,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:36,889 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:09:37,241 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:09:37,241 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:09:37,242 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:09:37,242 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:09:37,244 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:09:37,244 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:09:37,245 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:09:37,245 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:09:37,245 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:09:37,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:09:37,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:09:37,249 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:09:37,249 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:09:37,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:09:37,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:09:37,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:09:37,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:09:37,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:09:37,252 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:09:37,253 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:09:37,253 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:09:37,254 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:09:37,254 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:09:37,257 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:09:37,257 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:09:37,257 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:09:37,257 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:09:37,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:37,259 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) _post_configure_properties() started
2025-04-22 11:09:37,259 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop id
2025-04-22 11:09:37,259 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop label
2025-04-22 11:09:37,259 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop created_by
2025-04-22 11:09:37,259 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop version
2025-04-22 11:09:37,259 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop detail
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop template_name
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop period
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop periodic_task
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop status
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop if_enable
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop delay
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop release_sites
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop create_date
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop remark
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop tenant_id
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop user_token
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop created_at
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop updated_at
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) initialize prop is_deleted
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskDef|vwed_taskdef) _post_configure_properties() complete
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) _post_configure_properties() started
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop id
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop def_id
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop def_label
2025-04-22 11:09:37,260 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop def_version
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop created_on
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop ended_on
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop ended_reason
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop status
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop input_params
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop path
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop agv_id
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop parent_task_record_id
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop root_task_record_id
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop state_description
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop executor_time
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop first_executor_time
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop if_have_child_task
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop periodic_task
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop priority
2025-04-22 11:09:37,261 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop root_block_state_id
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop work_stations
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop work_types
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop task_def_detail
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop variables
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop call_work_station
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop call_work_type
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_type
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_system
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_user
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_device
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_ip
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_time
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_client_info
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop source_remarks
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop allow_restart_same_location
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop created_at
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop updated_at
2025-04-22 11:09:37,262 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) initialize prop is_deleted
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskRecord|vwed_taskrecord) _post_configure_properties() complete
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) _post_configure_properties() started
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop id
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop level
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop message
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop task_block_id
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop task_id
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop task_record_id
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop created_at
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop updated_at
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) initialize prop is_deleted
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskLog|vwed_tasklog) _post_configure_properties() complete
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) _post_configure_properties() started
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop id
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_name
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_id
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_config_id
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_input_params
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_input_params_value
2025-04-22 11:09:37,263 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_out_params_value
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_internal_variables
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop block_execute_name
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop task_id
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop task_record_id
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop started_on
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop ended_on
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop ended_reason
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop status
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop ctrl_status
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop input_params
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop internal_variables
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop output_params
2025-04-22 11:09:37,264 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop version
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop remark
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop created_at
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop updated_at
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) initialize prop is_deleted
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDBlockRecord|vwed_blockrecord) _post_configure_properties() complete
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) _post_configure_properties() started
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop id
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_name
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_description
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_if_enable
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop template_dir
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop created_at
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop updated_at
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) initialize prop is_deleted
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDTaskTemplate|vwed_tasktemplate) _post_configure_properties() complete
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) _post_configure_properties() started
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop id
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop data
2025-04-22 11:09:37,265 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop created_at
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop updated_at
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) initialize prop is_deleted
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCache|vwed_datacache) _post_configure_properties() complete
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) _post_configure_properties() started
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop id
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop data_key
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop data_value
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop created_at
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop updated_at
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) initialize prop is_deleted
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDDataCacheSplit|vwed_datacachesplit) _post_configure_properties() complete
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) _post_configure_properties() started
2025-04-22 11:09:37,266 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop versions
2025-04-22 11:09:37,267 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions setup primary join vwed_script.id = vwed_script_version.script_id
2025-04-22 11:09:37,267 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions setup secondary join None
2025-04-22 11:09:37,267 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions synchronize pairs [(vwed_script.id => vwed_script_version.script_id)]
2025-04-22 11:09:37,267 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions secondary synchronize pairs []
2025-04-22 11:09:37,267 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions local/remote pairs [(vwed_script.id / vwed_script_version.script_id)]
2025-04-22 11:09:37,267 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions remote columns [vwed_script_version.script_id]
2025-04-22 11:09:37,267 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions local columns [vwed_script.id]
2025-04-22 11:09:37,267 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.versions relationship direction RelationshipDirection.ONETOMANY
2025-04-22 11:09:37,267 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScript.versions lazy loading clause :param_1 = vwed_script_version.script_id
2025-04-22 11:09:37,268 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop logs
2025-04-22 11:09:37,268 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs setup primary join vwed_script.id = vwed_script_log.script_id
2025-04-22 11:09:37,268 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs setup secondary join None
2025-04-22 11:09:37,268 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs synchronize pairs [(vwed_script.id => vwed_script_log.script_id)]
2025-04-22 11:09:37,268 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs secondary synchronize pairs []
2025-04-22 11:09:37,268 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs local/remote pairs [(vwed_script.id / vwed_script_log.script_id)]
2025-04-22 11:09:37,268 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs remote columns [vwed_script_log.script_id]
2025-04-22 11:09:37,268 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs local columns [vwed_script.id]
2025-04-22 11:09:37,268 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScript.logs relationship direction RelationshipDirection.ONETOMANY
2025-04-22 11:09:37,268 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScript.logs lazy loading clause :param_1 = vwed_script_log.script_id
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop id
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop name
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop folder_path
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop file_name
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop description
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop code
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop version
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop status
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop is_public
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop tags
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop created_by
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop created_on
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop updated_by
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop updated_on
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop test_params
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop created_at
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop updated_at
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) initialize prop is_deleted
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScript|vwed_script) _post_configure_properties() complete
2025-04-22 11:09:37,269 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) _post_configure_properties() started
2025-04-22 11:09:37,270 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop script
2025-04-22 11:09:37,270 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script setup primary join vwed_script.id = vwed_script_version.script_id
2025-04-22 11:09:37,270 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script setup secondary join None
2025-04-22 11:09:37,270 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script synchronize pairs [(vwed_script.id => vwed_script_version.script_id)]
2025-04-22 11:09:37,270 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script secondary synchronize pairs []
2025-04-22 11:09:37,270 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script local/remote pairs [(vwed_script_version.script_id / vwed_script.id)]
2025-04-22 11:09:37,270 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script remote columns [vwed_script.id]
2025-04-22 11:09:37,270 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script local columns [vwed_script_version.script_id]
2025-04-22 11:09:37,270 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptVersion.script relationship direction RelationshipDirection.MANYTOONE
2025-04-22 11:09:37,270 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptVersion.script lazy loading clause vwed_script.id = :param_1
2025-04-22 11:09:37,270 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptVersion.script will use Session.get() to optimize instance loads
2025-04-22 11:09:37,271 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop id
2025-04-22 11:09:37,271 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop script_id
2025-04-22 11:09:37,271 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop version
2025-04-22 11:09:37,271 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop code
2025-04-22 11:09:37,271 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop change_log
2025-04-22 11:09:37,272 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop created_by
2025-04-22 11:09:37,272 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop created_on
2025-04-22 11:09:37,272 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop created_at
2025-04-22 11:09:37,272 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop updated_at
2025-04-22 11:09:37,272 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) initialize prop is_deleted
2025-04-22 11:09:37,272 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptVersion|vwed_script_version) _post_configure_properties() complete
2025-04-22 11:09:37,272 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) _post_configure_properties() started
2025-04-22 11:09:37,272 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop script
2025-04-22 11:09:37,272 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script setup primary join vwed_script.id = vwed_script_log.script_id
2025-04-22 11:09:37,272 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script setup secondary join None
2025-04-22 11:09:37,272 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script synchronize pairs [(vwed_script.id => vwed_script_log.script_id)]
2025-04-22 11:09:37,272 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script secondary synchronize pairs []
2025-04-22 11:09:37,272 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script local/remote pairs [(vwed_script_log.script_id / vwed_script.id)]
2025-04-22 11:09:37,272 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script remote columns [vwed_script.id]
2025-04-22 11:09:37,272 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script local columns [vwed_script_log.script_id]
2025-04-22 11:09:37,273 - sqlalchemy.orm.relationships.RelationshipProperty - INFO - VWEDScriptLog.script relationship direction RelationshipDirection.MANYTOONE
2025-04-22 11:09:37,273 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptLog.script lazy loading clause vwed_script.id = :param_1
2025-04-22 11:09:37,273 - sqlalchemy.orm.strategies.LazyLoader - INFO - VWEDScriptLog.script will use Session.get() to optimize instance loads
2025-04-22 11:09:37,273 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop id
2025-04-22 11:09:37,273 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop script_id
2025-04-22 11:09:37,273 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop version
2025-04-22 11:09:37,273 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop task_record_id
2025-04-22 11:09:37,273 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop block_record_id
2025-04-22 11:09:37,273 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop input_params
2025-04-22 11:09:37,273 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop output_result
2025-04-22 11:09:37,273 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop status
2025-04-22 11:09:37,273 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop error_message
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop execution_time
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop started_on
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop ended_on
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop created_at
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop updated_at
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) initialize prop is_deleted
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDScriptLog|vwed_script_log) _post_configure_properties() complete
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) _post_configure_properties() started
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop id
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop name
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop ip
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop port
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop slave_id
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop address_type
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop address_number
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop task_id
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop target_value
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop remark
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop create_date
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop update_date
2025-04-22 11:09:37,274 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop status
2025-04-22 11:09:37,275 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop tenant_id
2025-04-22 11:09:37,275 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop created_at
2025-04-22 11:09:37,275 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop updated_at
2025-04-22 11:09:37,275 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) initialize prop is_deleted
2025-04-22 11:09:37,275 - sqlalchemy.orm.mapper.Mapper - INFO - (VWEDModbusConfig|modbus_config) _post_configure_properties() complete
2025-04-22 11:09:37,276 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:09:37,276 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (1, 1)
2025-04-22 11:09:37,277 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:09:37,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:37,277 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:09:37,278 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:09:37,279 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:09:37,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:37,281 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:09:37,281 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1000, 2000, 2001)
2025-04-22 11:09:37,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:37,283 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.2小时)，不使用它恢复任务
2025-04-22 11:09:37,284 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:09:37,284 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:09:37,285 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:09:37,285 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:09:37,285 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:09:37,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:37,288 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:09:37,289 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 9, 37, 279107))
2025-04-22 11:09:37,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,772 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-22 11:09:58,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,776 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:09:58,777 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:09:58,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,778 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:09:58,779 - sqlalchemy.engine.Engine - INFO - [cached since 0.002368s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:09:58,779 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,780 - services.task_edit_service - INFO - 准备启动任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-22 11:09:58,780 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-22 11:09:58,780 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-22 11:09:58,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:09:58,782 - sqlalchemy.engine.Engine - INFO - [cached since 0.005471s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:09:58,784 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-22 11:09:58,784 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('3c24a048-e280-4406-93f6-fca62a04bcb7', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 5, datetime.datetime(2025, 4, 22, 11, 9, 58, 782649), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "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, 22, 11, 9, 58, 780657), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 22, 11, 9, 58, 784657), datetime.datetime(2025, 4, 22, 11, 9, 58, 784657), 0)
2025-04-22 11:09:58,785 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,808 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 11:09:58,808 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('3c24a048-e280-4406-93f6-fca62a04bcb7',)
2025-04-22 11:09:58,809 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,810 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3c24a048-e280-4406-93f6-fca62a04bcb7 (优先级 1) 添加到队列 0
2025-04-22 11:09:58,810 - services.task_edit_service - INFO - 普通任务启动成功: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 记录ID: 3c24a048-e280-4406-93f6-fca62a04bcb7
2025-04-22 11:09:58,810 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0377秒
2025-04-22 11:09:58,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3c24a048-e280-4406-93f6-fca62a04bcb7, 优先级: 1
2025-04-22 11:09:58,871 - services.execution.task_executor - DEBUG - 任务 3c24a048-e280-4406-93f6-fca62a04bcb7 设置超时时间: 3600秒
2025-04-22 11:09:58,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,872 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 11:09:58,873 - sqlalchemy.engine.Engine - INFO - [cached since 0.06468s ago] ('3c24a048-e280-4406-93f6-fca62a04bcb7',)
2025-04-22 11:09:58,874 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:09:58,875 - sqlalchemy.engine.Engine - INFO - [cached since 0.09784s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:09:58,877 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 11:09:58,877 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (datetime.datetime(2025, 4, 22, 11, 9, 58, 876238), datetime.datetime(2025, 4, 22, 11, 9, 58, 877236), '3c24a048-e280-4406-93f6-fca62a04bcb7')
2025-04-22 11:09:58,878 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,890 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 11:09:58,890 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 9, 58, 890254), '3c24a048-e280-4406-93f6-fca62a04bcb7')
2025-04-22 11:09:58,892 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,898 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-22 11:09:58,899 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,902 - 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-22 11:09:58,902 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('31194fbf-59c2-44d6-b5ae-3d9668eba6ea', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '3c24a048-e280-4406-93f6-fca62a04bcb7', datetime.datetime(2025, 4, 22, 11, 9, 58, 898780), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 11, 9, 58, 902321), datetime.datetime(2025, 4, 22, 11, 9, 58, 902321), 0)
2025-04-22 11:09:58,903 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,912 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:09:58,913 - sqlalchemy.engine.Engine - INFO - [generated in 0.00094s] ('31194fbf-59c2-44d6-b5ae-3d9668eba6ea',)
2025-04-22 11:09:58,914 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 11:09:58,916 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 11:09:58,917 - 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-22 11:09:58,918 - sqlalchemy.engine.Engine - INFO - [generated in 0.00149s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 22, 11, 9, 58, 917325), '31194fbf-59c2-44d6-b5ae-3d9668eba6ea')
2025-04-22 11:09:58,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,927 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-22 11:09:58,929 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-22 11:09:58,931 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-22 11:09:58,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,933 - 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-22 11:09:58,933 - sqlalchemy.engine.Engine - INFO - [cached since 0.03143s ago] ('ef4aa151-b145-47ae-b312-5f1a9a50ca11', 'b1', '1', '', '{}', '{}', '{}', 'ReleaseResourceBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '3c24a048-e280-4406-93f6-fca62a04bcb7', datetime.datetime(2025, 4, 22, 11, 9, 58, 932334), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 11, 9, 58, 933326), datetime.datetime(2025, 4, 22, 11, 9, 58, 933326), 0)
2025-04-22 11:09:58,935 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,942 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: ef4aa151-b145-47ae-b312-5f1a9a50ca11
2025-04-22 11:09:58,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,944 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:09:58,946 - sqlalchemy.engine.Engine - INFO - [cached since 0.03328s ago] ('ef4aa151-b145-47ae-b312-5f1a9a50ca11',)
2025-04-22 11:09:58,947 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 11:09:58,947 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 11:09:58,947 - 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-22 11:09:58,947 - sqlalchemy.engine.Engine - INFO - [cached since 0.03069s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 22, 11, 9, 58, 947326), 'ef4aa151-b145-47ae-b312-5f1a9a50ca11')
2025-04-22 11:09:58,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,956 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-22 11:09:58,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,957 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 11:09:58,957 - sqlalchemy.engine.Engine - INFO - [cached since 0.149s ago] ('3c24a048-e280-4406-93f6-fca62a04bcb7',)
2025-04-22 11:09:58,959 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 11:09:58,959 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1, datetime.datetime(2025, 4, 22, 11, 9, 58, 959325), '3c24a048-e280-4406-93f6-fca62a04bcb7')
2025-04-22 11:09:58,959 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,966 - services.execution.handlers.foundation - INFO - 任务记录ID: 3c24a048-e280-4406-93f6-fca62a04bcb7 释放资源成功
2025-04-22 11:09:58,967 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,970 - 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-22 11:09:58,971 - sqlalchemy.engine.Engine - INFO - [generated in 0.00098s] ('7bb62f5c-8352-43f5-beb8-9e2e6b23b3a3', 1, '{"success": true, "message": "释放资源成功", "output": {}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '3c24a048-e280-4406-93f6-fca62a04bcb7', datetime.datetime(2025, 4, 22, 11, 9, 58, 970334), datetime.datetime(2025, 4, 22, 11, 9, 58, 970334), 0)
2025-04-22 11:09:58,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,981 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:09:58,981 - sqlalchemy.engine.Engine - INFO - [cached since 0.06852s ago] ('ef4aa151-b145-47ae-b312-5f1a9a50ca11',)
2025-04-22 11:09:58,982 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 11:09:58,983 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 11:09:58,984 - 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-22 11:09:58,984 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (datetime.datetime(2025, 4, 22, 11, 9, 58, 983339), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 11, 9, 58, 984328), 'ef4aa151-b145-47ae-b312-5f1a9a50ca11')
2025-04-22 11:09:58,985 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,992 - 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-22 11:09:58,993 - sqlalchemy.engine.Engine - INFO - [cached since 0.02237s ago] ('381657f9-1775-4751-a515-fb35fcb2d171', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '3c24a048-e280-4406-93f6-fca62a04bcb7', datetime.datetime(2025, 4, 22, 11, 9, 58, 992328), datetime.datetime(2025, 4, 22, 11, 9, 58, 992328), 0)
2025-04-22 11:09:58,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:58,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:58,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-22 11:09:58,999 - sqlalchemy.engine.Engine - INFO - [cached since 0.08723s ago] ('31194fbf-59c2-44d6-b5ae-3d9668eba6ea',)
2025-04-22 11:09:59,000 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 11:09:59,000 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 11:09:59,000 - 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-22 11:09:59,000 - sqlalchemy.engine.Engine - INFO - [cached since 0.01685s ago] (datetime.datetime(2025, 4, 22, 11, 9, 59, 751), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 11, 9, 59, 751), '31194fbf-59c2-44d6-b5ae-3d9668eba6ea')
2025-04-22 11:09:59,001 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:59,008 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:09:59,008 - 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-22 11:09:59,008 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (datetime.datetime(2025, 4, 22, 11, 9, 59, 7759), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 119, 1, datetime.datetime(2025, 4, 22, 11, 9, 59, 8751), '3c24a048-e280-4406-93f6-fca62a04bcb7')
2025-04-22 11:09:59,009 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:09:59,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 3c24a048-e280-4406-93f6-fca62a04bcb7, 结果: True
2025-04-22 11:10:37,263 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:10:37,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:10:37,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:10:37,269 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:10:37,272 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:10:37,274 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:10:37,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:10:37,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:10:37,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:10:37,281 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:10:37,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:10:37,285 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:10:37,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:10:37,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:10:37,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:10:37,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:10:37,294 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:10:37,295 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:10:37,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:10:37,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:10:37,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:10:37,296 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:10:37,296 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:10:37,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:10:37,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:10:37,304 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:10:37,306 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 10, 37, 295868))
2025-04-22 11:10:37,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:11:07,326 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:11:07,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:11:07,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:11:07,331 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:11:07,333 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:11:07,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:11:37,310 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:11:37,311 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:11:37,311 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 11, 37, 309330))
2025-04-22 11:11:37,312 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:11:37,337 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:11:37,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:11:37,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:11:37,345 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:11:37,347 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:11:37,349 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:11:37,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:11:37,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:11:37,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:11:37,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:11:37,359 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:11:37,360 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:11:37,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:11:37,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:11:37,367 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:11:37,368 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:11:37,368 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:11:37,369 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:11:37,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:11:37,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:11:37,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:11:37,382 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:11:37,383 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:11:37,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:12:07,412 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:12:07,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:12:07,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:12:07,413 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:12:07,415 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:12:07,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:12:07,630 - root - INFO - 应用程序关闭中...
2025-04-22 11:12:07,630 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:12:07,630 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:12:07,631 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:12:07,631 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:12:07,631 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:12:07,631 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:12:07,631 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:12:07,632 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:12:07,632 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:12:07,632 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:12:07,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:12:07,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:12:07,633 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:12:07,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:12:07,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:12:07,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-22 11:12:07,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:12:07,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:12:07,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-22 11:12:07,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:12:07,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:12:07,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-22 11:12:07,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:12:07,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:12:07,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-22 11:12:07,636 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:12:07,636 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:12:07,636 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:12:07,636 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:12:07,637 - sqlalchemy.pool.impl.AsyncAdaptedQueuePool - INFO - Pool disposed. Pool size: 10  Connections in pool: 0 Current Overflow: -10 Current Checked out connections: 0
2025-04-22 11:12:07,637 - sqlalchemy.pool.impl.AsyncAdaptedQueuePool - INFO - Pool recreating
2025-04-22 11:12:07,637 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:12:07,637 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:12:07,637 - sqlalchemy.pool.impl.QueuePool - INFO - Pool disposed. Pool size: 10  Connections in pool: 0 Current Overflow: -10 Current Checked out connections: 0
2025-04-22 11:12:07,637 - sqlalchemy.pool.impl.QueuePool - INFO - Pool recreating
2025-04-22 11:12:07,637 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:12:09,051 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:12:09,052 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:12:09,124 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:12:09,179 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:12:09,217 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:12:09,236 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:12:09,236 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,238 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:12:09,239 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,242 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:12:09,244 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,244 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:09,249 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:12:09,251 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,255 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:12:09,257 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,263 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:12:09,266 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:12:09,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,273 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:12:09,275 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,281 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:12:09,286 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,291 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:12:09,293 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,295 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:12:09,296 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,300 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:12:09,302 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,308 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:12:09,311 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,313 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:12:09,314 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:09,315 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:09,316 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:12:09,703 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:12:09,703 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:12:09,704 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:12:09,704 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:12:09,705 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:12:09,705 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:12:09,705 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:12:09,705 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:12:09,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:12:09,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:12:09,707 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:12:09,707 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:12:09,707 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:12:09,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:12:09,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:12:09,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:12:09,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:12:09,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:12:09,709 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:12:09,709 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:12:09,711 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:12:09,711 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:12:09,712 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:12:09,714 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:12:09,715 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:12:09,715 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:12:09,715 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:12:09,715 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:09,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:12:09,725 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (1, 1)
2025-04-22 11:12:09,726 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:12:09,727 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:09,727 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:12:09,728 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:12:09,728 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:12:09,728 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:09,730 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:12:09,730 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1000, 2000, 2001)
2025-04-22 11:12:09,731 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:09,732 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.2小时)，不使用它恢复任务
2025-04-22 11:12:09,732 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:12:09,732 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:12:09,732 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:12:09,732 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:12:09,732 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:12:09,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:09,734 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:12:09,735 - sqlalchemy.engine.Engine - INFO - [generated in 0.00179s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 12, 9, 728100))
2025-04-22 11:12:09,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:34,698 - root - INFO - 应用程序关闭中...
2025-04-22 11:12:34,698 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:12:34,698 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:12:34,698 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:12:34,698 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:12:34,698 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:12:34,700 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:12:34,700 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:12:34,701 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:12:34,701 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:12:34,701 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:12:34,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:12:34,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:12:34,702 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:12:34,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:12:34,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:12:34,702 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:12:34,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:12:34,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:12:34,704 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:12:34,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:12:34,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:12:34,705 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:12:34,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:12:34,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:12:34,707 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:12:34,707 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:12:34,711 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:12:34,711 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:12:34,711 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:12:34,711 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:12:34,711 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:12:34,712 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:12:37,913 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:12:37,913 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:12:38,605 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:12:38,606 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:12:38,665 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:12:38,709 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:12:38,722 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:12:38,743 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:12:38,743 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,744 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:12:38,744 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,744 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:12:38,744 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:38,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:12:38,746 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,748 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:12:38,748 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,749 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:12:38,750 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,752 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:12:38,752 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,753 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:12:38,753 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,754 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:12:38,754 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,754 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:12:38,754 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,754 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:12:38,756 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,756 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:12:38,757 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,757 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:12:38,758 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,758 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:12:38,759 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:12:38,759 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:38,760 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:12:39,101 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:12:39,102 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:12:39,102 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:12:39,103 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:12:39,103 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:12:39,103 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:12:39,104 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:12:39,104 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:12:39,104 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:12:39,105 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:12:39,105 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:12:39,105 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:12:39,106 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:12:39,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:12:39,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:12:39,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:12:39,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:12:39,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:12:39,107 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:12:39,108 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:12:39,132 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:12:39,134 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:12:39,134 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:12:39,136 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:12:39,136 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:12:39,136 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:12:39,137 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:12:39,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:39,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:12:39,146 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (1, 1)
2025-04-22 11:12:39,147 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:12:39,147 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:39,148 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:12:39,148 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:12:39,148 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:12:39,149 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:39,150 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:12:39,151 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (1000, 2000, 2001)
2025-04-22 11:12:39,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:39,153 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.2小时)，不使用它恢复任务
2025-04-22 11:12:39,153 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:12:39,153 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:12:39,153 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:12:39,154 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:12:39,154 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:12:39,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:39,156 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:12:39,156 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 12, 39, 148661))
2025-04-22 11:12:39,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,496 - root - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-22 11:12:53,499 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,500 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:12:53,501 - sqlalchemy.engine.Engine - INFO - [generated in 0.00119s] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:12:53,502 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,502 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,503 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:12:53,505 - sqlalchemy.engine.Engine - INFO - [cached since 0.005149s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:12:53,507 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,507 - services.task_edit_service - INFO - 准备启动任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-22 11:12:53,508 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: '整数'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-22 11:12:53,508 - services.task_edit_service - INFO - 启动普通任务: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a
2025-04-22 11:12:53,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,509 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:12:53,509 - sqlalchemy.engine.Engine - INFO - [cached since 0.009533s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:12:53,511 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, created_on, 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, %s)
2025-04-22 11:12:53,512 - sqlalchemy.engine.Engine - INFO - [generated in 0.00096s] ('166aa099-24cb-49bc-a24e-2be9057dc552', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '第一级父任务', 5, datetime.datetime(2025, 4, 22, 11, 12, 53, 510624), None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "整数", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "整数", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [], "outputParams": [], "rootBlock": {"id": -1, "name": "-1", "blockType": "RootBp", "inputParams": {}, "children": {"default": [{"id ... (57 characters truncated) ... putParams": {}, "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, 22, 11, 12, 53, 507624), '{"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": "268"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 22, 11, 12, 53, 511626), datetime.datetime(2025, 4, 22, 11, 12, 53, 511626), 0)
2025-04-22 11:12:53,513 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,531 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,531 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 11:12:53,532 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] ('166aa099-24cb-49bc-a24e-2be9057dc552',)
2025-04-22 11:12:53,533 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,534 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 166aa099-24cb-49bc-a24e-2be9057dc552 (优先级 1) 添加到队列 0
2025-04-22 11:12:53,534 - services.task_edit_service - INFO - 普通任务启动成功: 9e0e17e3-7bad-4632-9725-1c6a469c5e2a, 记录ID: 166aa099-24cb-49bc-a24e-2be9057dc552
2025-04-22 11:12:53,534 - root - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0381秒
2025-04-22 11:12:53,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 166aa099-24cb-49bc-a24e-2be9057dc552, 优先级: 1
2025-04-22 11:12:53,567 - services.execution.task_executor - DEBUG - 任务 166aa099-24cb-49bc-a24e-2be9057dc552 设置超时时间: 3600秒
2025-04-22 11:12:53,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,570 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 11:12:53,572 - sqlalchemy.engine.Engine - INFO - [cached since 0.04068s ago] ('166aa099-24cb-49bc-a24e-2be9057dc552',)
2025-04-22 11:12:53,574 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-22 11:12:53,575 - sqlalchemy.engine.Engine - INFO - [cached since 0.07535s ago] ('9e0e17e3-7bad-4632-9725-1c6a469c5e2a',)
2025-04-22 11:12:53,578 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 11:12:53,579 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] (datetime.datetime(2025, 4, 22, 11, 12, 53, 577728), datetime.datetime(2025, 4, 22, 11, 12, 53, 578721), '166aa099-24cb-49bc-a24e-2be9057dc552')
2025-04-22 11:12:53,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,590 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,593 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 11:12:53,596 - sqlalchemy.engine.Engine - INFO - [generated in 0.00303s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 12, 53, 593757), '166aa099-24cb-49bc-a24e-2be9057dc552')
2025-04-22 11:12:53,599 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,608 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-22 11:12:53,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,614 - 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-22 11:12:53,615 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('9897897b-89b9-4569-bd38-889db3104ac2', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '166aa099-24cb-49bc-a24e-2be9057dc552', datetime.datetime(2025, 4, 22, 11, 12, 53, 610765), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 11, 12, 53, 614758), datetime.datetime(2025, 4, 22, 11, 12, 53, 614758), 0)
2025-04-22 11:12:53,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,628 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:12:53,629 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] ('9897897b-89b9-4569-bd38-889db3104ac2',)
2025-04-22 11:12:53,630 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 11:12:53,630 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 11:12:53,631 - 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-22 11:12:53,632 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 22, 11, 12, 53, 631758), '9897897b-89b9-4569-bd38-889db3104ac2')
2025-04-22 11:12:53,633 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,640 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-22 11:12:53,640 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-22 11:12:53,641 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: ReleaseResourceBp
2025-04-22 11:12:53,641 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,642 - 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-22 11:12:53,642 - sqlalchemy.engine.Engine - INFO - [cached since 0.02813s ago] ('b44db521-7635-49cd-b276-5255711c98b2', 'b1', '1', '', '{}', '{}', '{}', 'ReleaseResourceBp', '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '166aa099-24cb-49bc-a24e-2be9057dc552', datetime.datetime(2025, 4, 22, 11, 12, 53, 641757), 1001, '{}', '{}', 1, datetime.datetime(2025, 4, 22, 11, 12, 53, 642758), datetime.datetime(2025, 4, 22, 11, 12, 53, 642758), 0)
2025-04-22 11:12:53,643 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,651 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b44db521-7635-49cd-b276-5255711c98b2
2025-04-22 11:12:53,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,653 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:12:53,654 - sqlalchemy.engine.Engine - INFO - [cached since 0.02512s ago] ('b44db521-7635-49cd-b276-5255711c98b2',)
2025-04-22 11:12:53,654 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 11:12:53,655 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 11:12:53,655 - 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-22 11:12:53,655 - sqlalchemy.engine.Engine - INFO - [cached since 0.02429s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 22, 11, 12, 53, 655758), 'b44db521-7635-49cd-b276-5255711c98b2')
2025-04-22 11:12:53,656 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,662 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-22 11:12:53,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,664 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, 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-22 11:12:53,664 - sqlalchemy.engine.Engine - INFO - [cached since 0.1326s ago] ('166aa099-24cb-49bc-a24e-2be9057dc552',)
2025-04-22 11:12:53,665 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-22 11:12:53,665 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (1, datetime.datetime(2025, 4, 22, 11, 12, 53, 665756), '166aa099-24cb-49bc-a24e-2be9057dc552')
2025-04-22 11:12:53,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,672 - services.execution.handlers.foundation - INFO - 任务记录ID: 166aa099-24cb-49bc-a24e-2be9057dc552 释放资源成功
2025-04-22 11:12:53,674 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,675 - 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-22 11:12:53,676 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('ed9796dc-271c-4d92-92c1-4069689462c8', 1, '{"success": true, "message": "释放资源成功", "output": {}}', 1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '166aa099-24cb-49bc-a24e-2be9057dc552', datetime.datetime(2025, 4, 22, 11, 12, 53, 675774), datetime.datetime(2025, 4, 22, 11, 12, 53, 675774), 0)
2025-04-22 11:12:53,677 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,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-22 11:12:53,687 - sqlalchemy.engine.Engine - INFO - [cached since 0.05901s ago] ('b44db521-7635-49cd-b276-5255711c98b2',)
2025-04-22 11:12:53,688 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-22 11:12:53,689 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-22 11:12:53,689 - 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-22 11:12:53,690 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (datetime.datetime(2025, 4, 22, 11, 12, 53, 689921), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 11, 12, 53, 689921), 'b44db521-7635-49cd-b276-5255711c98b2')
2025-04-22 11:12:53,690 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,697 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,699 - 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-22 11:12:53,700 - sqlalchemy.engine.Engine - INFO - [cached since 0.02475s ago] ('265dc195-f9fd-4a5f-8499-58c0d657eae2', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '9e0e17e3-7bad-4632-9725-1c6a469c5e2a', '166aa099-24cb-49bc-a24e-2be9057dc552', datetime.datetime(2025, 4, 22, 11, 12, 53, 699928), datetime.datetime(2025, 4, 22, 11, 12, 53, 699928), 0)
2025-04-22 11:12:53,701 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,711 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-22 11:12:53,713 - sqlalchemy.engine.Engine - INFO - [cached since 0.08462s ago] ('9897897b-89b9-4569-bd38-889db3104ac2',)
2025-04-22 11:12:53,715 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-22 11:12:53,715 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-22 11:12:53,715 - 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-22 11:12:53,716 - sqlalchemy.engine.Engine - INFO - [cached since 0.0268s ago] (datetime.datetime(2025, 4, 22, 11, 12, 53, 715920), '执行成功', 1000, '执行成功', datetime.datetime(2025, 4, 22, 11, 12, 53, 715920), '9897897b-89b9-4569-bd38-889db3104ac2')
2025-04-22 11:12:53,717 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,727 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:12:53,727 - 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-22 11:12:53,728 - sqlalchemy.engine.Engine - INFO - [generated in 0.00109s] (datetime.datetime(2025, 4, 22, 11, 12, 53, 726002), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 136, 1, datetime.datetime(2025, 4, 22, 11, 12, 53, 727919), '166aa099-24cb-49bc-a24e-2be9057dc552')
2025-04-22 11:12:53,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:12:53,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 166aa099-24cb-49bc-a24e-2be9057dc552, 结果: True
2025-04-22 11:13:14,496 - root - INFO - 应用程序关闭中...
2025-04-22 11:13:14,499 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:13:14,499 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:13:14,499 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:13:14,499 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:13:14,499 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:13:14,499 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:13:14,500 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:13:14,501 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:13:14,501 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:13:14,502 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:13:14,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:13:14,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:13:14,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:13:14,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:13:14,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:13:14,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:13:14,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:13:14,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:13:14,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:13:14,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:13:14,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:13:14,508 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:13:14,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:13:14,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:13:14,513 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:13:14,513 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:13:14,513 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:13:14,513 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:13:14,513 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:13:14,516 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:13:14,516 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:13:14,517 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:19:05,525 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:19:05,526 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,527 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:19:05,527 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,528 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:19:05,528 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:19:05,529 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:19:05,529 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,531 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:19:05,531 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,535 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:19:05,535 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,537 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:19:05,537 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,538 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:19:05,538 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,538 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:19:05,539 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,540 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:19:05,540 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,541 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:19:05,542 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,543 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:19:05,543 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,544 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:19:05,545 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,546 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:19:05,547 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:05,548 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:19:05,945 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:19:05,946 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:19:05,946 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:19:05,946 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:19:05,946 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:19:05,946 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:19:05,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:19:05,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:19:05,957 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (1, 1)
2025-04-22 11:19:05,957 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:19:05,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:19:05,962 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:19:05,962 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (1000, 2000, 2001)
2025-04-22 11:19:05,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:19:05,965 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:19:05,968 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:19:05,969 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 19, 5, 960263))
2025-04-22 11:19:05,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:19:34,372 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:19:34,372 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,374 - sqlalchemy.engine.Engine - DEBUG - Col ('DATABASE()',)
2025-04-22 11:19:34,375 - sqlalchemy.engine.Engine - DEBUG - Row ('mysql',)
2025-04-22 11:19:34,375 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:19:34,375 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,376 - sqlalchemy.engine.Engine - DEBUG - Col ('@@sql_mode',)
2025-04-22 11:19:34,376 - sqlalchemy.engine.Engine - DEBUG - Row ('ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION',)
2025-04-22 11:19:34,376 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:19:34,377 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,378 - sqlalchemy.engine.Engine - DEBUG - Col ('@@lower_case_table_names',)
2025-04-22 11:19:34,378 - sqlalchemy.engine.Engine - DEBUG - Row (1,)
2025-04-22 11:19:34,378 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:19:34,379 - sqlalchemy.engine.Engine - INFO - CREATE DATABASE IF NOT EXISTS vwed_task CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
2025-04-22 11:19:34,379 - sqlalchemy.engine.Engine - INFO - [generated in 0.00087s] {}
2025-04-22 11:19:34,382 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-22 11:19:34,402 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:19:34,402 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,403 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:19:34,403 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,404 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:19:34,404 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:19:34,405 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:19:34,405 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,406 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:19:34,406 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,407 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:19:34,407 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,418 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:19:34,418 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,419 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:19:34,421 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,424 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:19:34,424 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,427 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:19:34,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,430 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:19:34,431 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,433 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:19:34,433 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,435 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:19:34,435 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,436 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:19:34,436 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:19:34,439 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:19:34,820 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:19:34,820 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:19:34,820 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:19:34,820 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:19:34,821 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:19:34,821 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:19:34,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:19:34,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:19:34,830 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (1, 1)
2025-04-22 11:19:34,832 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:19:34,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:19:34,838 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:19:34,838 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (1000, 2000, 2001)
2025-04-22 11:19:34,850 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:19:34,851 - sqlalchemy.engine.Engine - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:19:34,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:19:34,855 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:19:34,856 - sqlalchemy.engine.Engine - INFO - [generated in 0.00109s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 19, 34, 833106))
2025-04-22 11:19:34,857 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:20:08,503 - sqlalchemy.engine.Engine - INFO - 应用程序关闭中...
2025-04-22 11:20:08,503 - sqlalchemy.engine.Engine - INFO - 增强版任务调度器已停止
2025-04-22 11:20:10,799 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:20:10,800 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:20:11,560 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:20:11,562 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:20:11,620 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:20:11,670 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:20:11,706 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:20:11,723 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:20:11,724 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,725 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:20:11,728 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,728 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:20:11,729 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,730 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:20:11,731 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:20:11,731 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,732 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:20:11,733 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,736 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:20:11,737 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,738 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:20:11,738 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,740 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:20:11,740 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,741 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:20:11,741 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,742 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:20:11,742 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,743 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:20:11,743 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,744 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:20:11,744 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:20:11,747 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,748 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:20:11,748 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:20:11,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:20:11,751 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:20:12,109 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:20:12,109 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:20:12,111 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:20:12,113 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:20:12,114 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:20:12,115 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:20:12,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:20:12,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:20:12,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:20:12,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:20:12,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:20:12,117 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:20:12,117 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:20:12,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:20:12,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:20:12,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:20:12,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:20:12,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:20:12,131 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:20:12,133 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:20:12,158 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:20:12,159 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:20:12,160 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:20:12,161 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:20:12,162 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:20:12,162 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:20:12,163 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:20:12,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:20:12,177 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:20:12,177 - sqlalchemy.engine.Engine - INFO - [generated in 0.00091s] (1, 1)
2025-04-22 11:20:12,178 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:20:12,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:20:12,179 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:20:12,179 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:20:12,180 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:20:12,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:20:12,185 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:20:12,185 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (1000, 2000, 2001)
2025-04-22 11:20:12,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:20:12,188 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.3小时)，不使用它恢复任务
2025-04-22 11:20:12,188 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:20:12,189 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:20:12,189 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:20:12,189 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:20:12,190 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:20:12,190 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:20:12,193 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:20:12,194 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 20, 12, 180218))
2025-04-22 11:20:12,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:21:12,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:21:12,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:21:12,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:21:12,168 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:21:12,168 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:21:12,168 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:21:12,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:21:12,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:21:12,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:21:12,169 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:21:12,169 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:21:12,169 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:21:12,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:21:12,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:21:12,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:21:12,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:21:12,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:21:12,170 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:21:12,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:21:12,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:21:12,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:21:12,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:21:12,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:21:12,170 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:21:12,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:21:12,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:21:12,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:21:12,171 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:21:12,171 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:21:12,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:21:12,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:21:12,198 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:21:12,198 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 21, 12, 198113))
2025-04-22 11:21:12,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:21:12,385 - root - INFO - 应用程序关闭中...
2025-04-22 11:21:12,385 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:21:12,385 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:21:12,385 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:21:12,385 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:21:12,386 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:21:12,386 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:21:12,386 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:21:12,386 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:21:12,386 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:21:12,386 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:21:12,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:21:12,386 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:21:12,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:21:12,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:21:12,388 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:21:12,388 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:21:12,388 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:21:12,388 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:21:12,388 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:21:12,388 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:21:12,389 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:21:12,389 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:21:13,640 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:21:13,697 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:21:13,698 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:21:13,774 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:21:13,826 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:21:13,845 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:21:13,870 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:21:13,871 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,871 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:21:13,872 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,873 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:21:13,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,880 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:21:13,882 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:21:13,883 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,884 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:21:13,885 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,889 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:21:13,890 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,890 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:21:13,891 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,892 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:21:13,896 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,897 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:21:13,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,901 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:21:13,903 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,906 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:21:13,907 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,908 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:21:13,908 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,909 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:21:13,909 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,910 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:21:13,910 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:13,912 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:21:13,913 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:21:14,288 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:21:14,289 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:21:14,289 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:21:14,289 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:21:14,289 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:21:14,289 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:21:14,289 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:21:14,289 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:21:14,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:21:14,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:21:14,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:21:14,291 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:21:14,291 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:21:14,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:21:14,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:21:14,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:21:14,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:21:14,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:21:14,294 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:21:14,294 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:21:14,306 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:21:14,307 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:21:14,308 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:21:14,308 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:21:14,308 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:21:14,309 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:21:14,311 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:21:14,312 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:21:14,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:21:14,322 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] (1, 1)
2025-04-22 11:21:14,322 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:21:14,323 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:21:14,324 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:21:14,325 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:21:14,325 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:21:14,325 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:21:14,327 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:21:14,327 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (1000, 2000, 2001)
2025-04-22 11:21:14,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:21:14,329 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:21:14,330 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.4小时)，不使用它恢复任务
2025-04-22 11:21:14,330 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:21:14,330 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:21:14,330 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:21:14,330 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:21:14,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:21:14,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:21:14,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:21:14,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:21:14,331 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:21:14,331 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:21:14,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:21:14,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:21:14,333 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:21:14,333 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:21:14,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:21:14,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:21:14,333 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:21:14,333 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:21:14,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:21:14,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:21:14,333 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:21:14,334 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:21:15,186 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:21:15,246 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
2025-04-22 11:21:15,246 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:21:15,311 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:21:15,367 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:21:15,377 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:21:15,398 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:21:15,398 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,399 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:21:15,400 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,400 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:21:15,400 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,402 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:21:15,403 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:21:15,403 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,403 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:21:15,403 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,405 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:21:15,406 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,407 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:21:15,407 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,408 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:21:15,408 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,409 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:21:15,410 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,410 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:21:15,412 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,418 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:21:15,420 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,425 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:21:15,429 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,431 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:21:15,435 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,439 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:21:15,442 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:21:15,446 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:21:15,449 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:21:15,842 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:21:15,843 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:21:15,844 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:21:15,845 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:21:15,848 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:21:15,850 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:21:15,851 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:21:15,852 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:21:15,853 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:21:15,853 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:21:15,855 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:21:15,858 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:21:15,859 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:21:15,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:21:15,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:21:15,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:21:15,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:21:15,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:21:15,865 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:21:15,867 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:21:15,870 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:21:15,871 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:21:15,873 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:21:15,878 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:21:15,879 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:21:15,883 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:21:15,885 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:21:15,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:21:15,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:21:15,904 - sqlalchemy.engine.Engine - INFO - [generated in 0.00238s] (1, 1)
2025-04-22 11:21:15,905 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:21:15,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:21:15,908 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:21:15,910 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:21:15,911 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:21:15,912 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:21:15,913 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:21:15,915 - sqlalchemy.engine.Engine - INFO - [generated in 0.00170s] (1000, 2000, 2001)
2025-04-22 11:21:15,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:21:15,932 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:21:15,933 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.4小时)，不使用它恢复任务
2025-04-22 11:21:15,933 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:21:15,934 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:21:15,934 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:21:15,934 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:21:15,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:21:15,936 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:21:15,936 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 21, 15, 911669))
2025-04-22 11:21:15,937 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:22:15,928 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:22:15,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:22:15,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:22:15,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:22:15,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:22:15,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:22:15,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:22:15,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:22:15,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:22:15,931 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:22:15,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:22:15,932 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 22, 15, 929735))
2025-04-22 11:22:15,932 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:22:15,933 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:22:15,933 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:22:15,933 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:22:15,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:22:15,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:22:15,935 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:22:15,935 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:22:15,935 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:22:15,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:22:15,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:22:15,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:22:15,937 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:22:15,937 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:22:15,937 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:22:15,937 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:22:15,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:22:15,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:22:15,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:22:15,939 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:22:15,939 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:22:15,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:22:16,083 - root - INFO - 应用程序关闭中...
2025-04-22 11:22:16,085 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:22:16,086 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:22:16,086 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:22:16,086 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:22:16,086 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:22:16,087 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:22:16,087 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:22:16,087 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:22:16,087 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:22:16,088 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:22:16,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:22:16,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:22:16,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:22:16,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:22:16,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:22:16,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:22:16,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:22:16,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:22:16,089 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:22:16,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:22:16,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:22:16,089 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:22:16,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:22:16,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:22:16,090 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:22:16,090 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:22:16,090 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:22:16,090 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:22:16,090 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:22:16,091 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:22:16,091 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:22:16,091 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:22:17,323 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:22:17,392 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:22:17,394 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:22:17,457 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:22:17,508 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:22:17,532 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:22:17,554 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:22:17,554 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,555 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:22:17,556 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,556 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:22:17,556 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,556 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:22:17,556 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:22:17,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,558 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:22:17,558 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,561 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:22:17,562 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,562 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:22:17,563 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,564 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:22:17,564 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,565 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:22:17,566 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,566 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:22:17,566 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,574 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:22:17,576 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:22:17,582 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,586 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:22:17,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,592 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:22:17,594 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:22:17,600 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:22:17,600 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:22:17,988 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:22:17,988 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:22:17,990 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:22:17,990 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:22:17,990 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:22:17,990 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:22:17,990 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:22:17,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:22:17,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:22:17,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:22:17,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:22:17,992 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:22:17,992 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:22:17,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:22:17,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:22:17,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:22:17,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:22:17,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:22:17,996 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:22:17,996 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:22:17,999 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:22:17,999 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:22:17,999 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:22:18,001 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:22:18,001 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:22:18,001 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:22:18,002 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:22:18,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:22:18,011 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:22:18,012 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] (1, 1)
2025-04-22 11:22:18,013 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:22:18,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:22:18,014 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:22:18,015 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:22:18,015 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:22:18,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:22:18,017 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:22:18,017 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (1000, 2000, 2001)
2025-04-22 11:22:18,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:22:18,038 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.4小时)，不使用它恢复任务
2025-04-22 11:22:18,038 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:22:18,038 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:22:18,038 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:22:18,039 - root - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:22:18,039 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:22:18,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:22:18,040 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:22:18,040 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 22, 18, 15930))
2025-04-22 11:22:18,041 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:23:14,064 - root - INFO - 应用程序关闭中...
2025-04-22 11:23:14,064 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:23:14,065 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:23:14,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:23:14,066 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:23:14,066 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:23:14,066 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:23:14,066 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:23:14,067 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:23:14,067 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:23:14,067 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:23:14,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:23:14,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:23:14,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:23:14,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:23:14,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:23:14,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:23:14,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:23:14,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:23:14,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:23:14,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:23:14,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:23:14,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:23:14,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:23:14,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:23:14,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:23:14,069 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:23:14,070 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:23:14,070 - root - INFO - 增强版任务调度器已停止
2025-04-22 11:23:14,070 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:23:14,070 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:23:14,070 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:23:14,073 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:23:15,279 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:23:15,334 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:23:15,337 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:23:15,410 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:23:15,474 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:23:15,502 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:23:15,527 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:23:15,528 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,528 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:23:15,529 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,529 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:23:15,529 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,530 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:23:15,531 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:23:15,531 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,532 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:23:15,532 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,533 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:23:15,533 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,535 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:23:15,535 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,538 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:23:15,538 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,538 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:23:15,539 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,539 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:23:15,540 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,541 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:23:15,541 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,541 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:23:15,542 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,545 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:23:15,545 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,546 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:23:15,550 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:23:15,554 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:23:15,557 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:23:15,923 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:23:15,923 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:23:15,924 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:23:15,925 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:23:15,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:23:15,925 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:23:15,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:23:15,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:23:15,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:23:15,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:23:15,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:23:15,925 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:23:15,927 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:23:15,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:23:15,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:23:15,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:23:15,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:23:15,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:23:15,928 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:23:15,928 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:23:15,929 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:23:15,929 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:23:15,931 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:23:15,931 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:23:15,931 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:23:15,931 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:23:15,931 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:23:15,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:23:15,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:23:15,943 - sqlalchemy.engine.Engine - INFO - [generated in 0.00168s] (1, 1)
2025-04-22 11:23:15,945 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:23:15,945 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:23:15,946 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:23:15,947 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:23:15,947 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:23:15,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:23:15,949 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:23:15,950 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (1000, 2000, 2001)
2025-04-22 11:23:15,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:23:15,952 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:23:15,952 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.4小时)，不使用它恢复任务
2025-04-22 11:23:15,955 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:23:15,955 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:23:15,955 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:23:15,955 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:23:15,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:23:15,957 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:23:15,957 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 23, 15, 947774))
2025-04-22 11:23:15,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:24:15,941 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:24:15,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:24:15,943 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:24:15,943 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:24:15,943 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:24:15,944 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:24:15,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:24:15,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:24:15,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:24:15,944 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:24:15,944 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:24:15,944 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:24:15,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:24:15,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:24:15,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:24:15,945 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:24:15,946 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:24:15,946 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:24:15,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:24:15,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:24:15,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:24:15,947 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:24:15,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:24:15,948 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:24:15,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:24:15,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:24:15,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:24:15,948 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:24:15,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:24:15,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:24:15,954 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:24:15,955 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:24:15,955 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 24, 15, 954946))
2025-04-22 11:24:15,957 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:25:15,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:25:15,957 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:25:15,957 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 25, 15, 956079))
2025-04-22 11:25:15,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:25:16,003 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:25:16,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:25:16,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:25:16,010 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:25:16,012 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:25:16,013 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:25:16,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:25:16,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:25:16,018 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:25:16,019 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:25:16,019 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:25:16,021 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:25:16,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:25:16,027 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:25:16,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:25:16,029 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:25:16,029 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:25:16,030 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:25:16,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:25:16,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:25:16,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:25:16,037 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:25:16,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:25:16,041 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:25:16,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:25:16,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:25:16,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:25:16,046 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:25:16,049 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:25:16,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:26:15,957 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:26:15,957 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:26:15,958 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 26, 15, 956733))
2025-04-22 11:26:15,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:26:16,110 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:26:16,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:26:16,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:26:16,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:26:16,111 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:26:16,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:26:16,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:26:16,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:26:16,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:26:16,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:26:16,111 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:26:16,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:26:16,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:26:16,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:26:16,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:26:16,115 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:26:16,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:26:16,116 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:26:16,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:26:16,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:26:16,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:26:16,117 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:26:16,117 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:26:16,117 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:26:16,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:26:16,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:26:16,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:26:16,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:26:16,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:26:16,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:27:15,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:27:15,986 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:27:15,987 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 27, 15, 985475))
2025-04-22 11:27:15,989 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:27:16,155 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:27:16,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:27:16,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:27:16,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:27:16,158 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:27:16,158 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:27:16,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:27:16,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:27:16,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:27:16,158 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:27:16,158 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:27:16,158 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:27:16,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:27:16,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:27:16,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:27:16,158 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:27:16,158 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:27:16,158 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:27:16,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:27:16,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:27:16,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:27:16,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:27:16,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:27:16,159 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:27:16,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:27:16,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:27:16,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:27:16,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:27:16,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:27:16,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:28:15,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:28:15,993 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:28:15,993 - sqlalchemy.engine.Engine - INFO - [cached since 300s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 28, 15, 991282))
2025-04-22 11:28:15,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:28:16,209 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:28:16,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:28:16,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:28:16,210 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:28:16,210 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:28:16,210 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:28:16,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:28:16,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:28:16,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:28:16,212 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:28:16,212 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:28:16,212 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:28:16,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:28:16,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:28:16,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:28:16,214 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:28:16,214 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:28:16,214 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:28:16,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:28:16,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:28:16,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:28:16,215 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:28:16,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:28:16,215 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:28:16,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:28:16,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:28:16,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:28:16,216 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:28:16,216 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:28:16,222 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:29:15,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:29:16,002 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:29:16,003 - sqlalchemy.engine.Engine - INFO - [cached since 360s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 29, 15, 998394))
2025-04-22 11:29:16,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:29:16,275 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:29:16,275 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:29:16,275 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:29:16,276 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:29:16,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:29:16,276 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:29:16,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:29:16,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:29:16,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:29:16,276 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:29:16,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:29:16,276 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:29:16,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:29:16,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:29:16,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:29:16,276 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:29:16,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:29:16,278 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:29:16,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:29:16,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:29:16,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:29:16,280 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:29:16,280 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:29:16,280 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:29:16,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:29:16,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:29:16,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:29:16,280 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:29:16,281 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:29:16,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:30:16,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:30:16,021 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:30:16,022 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 30, 16, 19648))
2025-04-22 11:30:16,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:30:16,331 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:30:16,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:30:16,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:30:16,335 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:30:16,338 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:30:16,339 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:30:16,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:30:16,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:30:16,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:30:16,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:30:16,346 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:30:16,347 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:30:16,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:30:16,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:30:16,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:30:16,350 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:30:16,351 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:30:16,352 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:30:16,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:30:16,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:30:16,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:30:16,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:30:16,363 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:30:16,363 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:30:16,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:30:16,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:30:16,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:30:16,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:30:16,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:30:16,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:31:16,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:31:16,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:31:16,045 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 31, 16, 43776))
2025-04-22 11:31:16,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:31:16,401 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:31:16,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:31:16,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:31:16,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:31:16,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:31:16,403 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:31:16,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:31:16,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:31:16,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:31:16,403 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:31:16,404 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:31:16,404 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:31:16,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:31:16,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:31:16,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:31:16,408 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:31:16,408 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:31:16,408 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:31:16,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:31:16,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:31:16,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:31:16,408 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:31:16,408 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:31:16,408 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:31:16,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:31:16,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:31:16,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:31:16,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:31:16,409 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:31:16,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:32:16,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:32:16,050 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:32:16,051 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 32, 16, 47940))
2025-04-22 11:32:16,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:32:16,451 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:32:16,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:32:16,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:32:16,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:32:16,456 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:32:16,458 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:32:16,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:32:16,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:32:16,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:32:16,467 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:32:16,467 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:32:16,467 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:32:16,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:32:16,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:32:16,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:32:16,468 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:32:16,468 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:32:16,468 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:32:16,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:32:16,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:32:16,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:32:16,473 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:32:16,475 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:32:16,477 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:32:16,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:32:16,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:32:16,479 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:32:16,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:32:16,481 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:32:16,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:33:16,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:33:16,047 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:33:16,049 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 33, 16, 46171))
2025-04-22 11:33:16,052 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:33:16,528 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:33:16,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:33:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:33:16,529 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:33:16,529 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:33:16,529 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:33:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:33:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:33:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:33:16,529 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:33:16,529 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:33:16,529 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:33:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:33:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:33:16,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:33:16,529 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:33:16,531 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:33:16,531 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:33:16,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:33:16,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:33:16,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:33:16,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:33:16,531 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:33:16,531 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:33:16,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:33:16,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:33:16,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:33:16,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:33:16,531 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:33:16,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:34:16,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:34:16,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:34:16,058 - sqlalchemy.engine.Engine - INFO - [cached since 660.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 34, 16, 56836))
2025-04-22 11:34:16,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:34:16,553 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:34:16,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:34:16,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:34:16,555 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:34:16,556 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:34:16,558 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:34:16,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:34:16,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:34:16,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:34:16,566 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:34:16,568 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:34:16,568 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:34:16,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:34:16,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:34:16,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:34:16,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:34:16,579 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:34:16,581 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:34:16,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:34:16,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:34:16,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:34:16,587 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:34:16,589 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:34:16,591 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:34:16,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:34:16,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:34:16,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:34:16,599 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:34:16,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:34:16,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:35:16,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:35:16,086 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:35:16,086 - sqlalchemy.engine.Engine - INFO - [cached since 720.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 35, 16, 85321))
2025-04-22 11:35:16,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:35:16,636 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:35:16,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:35:16,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:35:16,637 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:35:16,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:35:16,638 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:35:16,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:35:16,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:35:16,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:35:16,639 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:35:16,639 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:35:16,639 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:35:16,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:35:16,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:35:16,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:35:16,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:35:16,641 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:35:16,641 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:35:16,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:35:16,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:35:16,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:35:16,642 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:35:16,642 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:35:16,642 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:35:16,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:35:16,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:35:16,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:35:16,642 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:35:16,642 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:35:16,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:36:16,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:36:16,106 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:36:16,107 - sqlalchemy.engine.Engine - INFO - [cached since 780.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 36, 16, 104948))
2025-04-22 11:36:16,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:36:16,322 - app - INFO - 应用程序关闭中...
2025-04-22 11:36:16,323 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:36:16,323 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:36:16,323 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:36:16,323 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:36:16,323 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:36:16,324 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:36:16,324 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:36:16,324 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:36:16,324 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:36:16,324 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:36:16,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:36:16,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:36:16,325 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:36:16,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:36:16,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:36:16,325 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:36:16,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:36:16,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:36:16,325 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:36:16,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:36:16,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:36:16,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:36:16,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:36:16,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:36:16,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:36:16,326 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:36:16,326 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:36:16,326 - app - INFO - 增强版任务调度器已停止
2025-04-22 11:36:16,326 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:36:16,327 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:36:16,327 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:36:16,327 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:36:17,697 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:36:17,761 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:36:17,763 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:36:17,826 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:36:17,889 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:36:17,931 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:36:17,934 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:36:17,935 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,938 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:36:17,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,939 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:36:17,939 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:36:17,944 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:36:17,946 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,949 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:36:17,950 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,954 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:36:17,955 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,956 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:36:17,956 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,957 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:36:17,958 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,958 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:36:17,959 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,959 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:36:17,960 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,962 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:36:17,963 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,966 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:36:17,967 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,970 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:36:17,970 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,971 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:36:17,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:17,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:36:17,974 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:36:40,472 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:36:40,534 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:36:40,536 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:36:40,595 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:36:40,643 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:36:40,680 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:36:40,682 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:36:40,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,683 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:36:40,683 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,684 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:36:40,684 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,684 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:36:40,685 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:36:40,685 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,686 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:36:40,687 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,690 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:36:40,690 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,692 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:36:40,693 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,693 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:36:40,694 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,696 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:36:40,696 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,697 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:36:40,700 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,700 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:36:40,701 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,702 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:36:40,702 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:36:40,704 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,705 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:36:40,705 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:36:40,707 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:36:40,708 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:36:41,077 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:36:41,077 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:36:41,077 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:36:41,077 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:36:41,077 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:36:41,078 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:36:41,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:36:41,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:36:41,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:36:41,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:36:41,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:36:41,078 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:36:41,078 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:36:41,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:36:41,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:36:41,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:36:41,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:36:41,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:36:41,082 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:36:41,083 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:36:41,103 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:36:41,107 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:36:41,108 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:36:41,109 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:36:41,109 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:36:41,110 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:36:41,110 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:36:41,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:36:41,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:36:41,120 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (1, 1)
2025-04-22 11:36:41,121 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:36:41,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:36:41,123 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:36:41,135 - services.enhanced_scheduler.task_persistence - ERROR - 加载待处理任务异常: type object 'TaskStatus' has no attribute 'CANCELLED'
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_persistence.py", line 151, in load_pending_tasks
    VWEDTaskRecord.status.notin_([TaskStatus.COMPLETED, TaskStatus.FAILED, TaskStatus.CANCELLED])  # 不在完成、失败、取消状态
                                                                           ^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'TaskStatus' has no attribute 'CANCELLED'. Did you mean: 'CANCELED'?
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-22 11:36:41,137 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:36:41,137 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:36:41,137 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:36:41,138 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:36:41,138 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:36:41,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:36:41,140 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:36:41,141 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 36, 41, 138879))
2025-04-22 11:36:41,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:37:41,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:37:41,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:37:41,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:37:41,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:37:41,113 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:37:41,113 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:37:41,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:37:41,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:37:41,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:37:41,115 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:37:41,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:37:41,115 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:37:41,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:37:41,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:37:41,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:37:41,117 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:37:41,117 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:37:41,117 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:37:41,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:37:41,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:37:41,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:37:41,118 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:37:41,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:37:41,118 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:37:41,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:37:41,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:37:41,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:37:41,118 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:37:41,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:37:41,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:37:41,157 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:37:41,158 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:37:41,161 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 37, 41, 157013))
2025-04-22 11:37:41,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:37:41,280 - app - INFO - 应用程序关闭中...
2025-04-22 11:37:41,282 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:37:41,283 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:37:41,283 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:37:41,283 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:37:41,283 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:37:41,284 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:37:41,284 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:37:41,284 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:37:41,284 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:37:41,284 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:37:41,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:37:41,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:37:41,285 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:37:41,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:37:41,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:37:41,285 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:37:41,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:37:41,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:37:41,286 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:37:41,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:37:41,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:37:41,286 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:37:41,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:37:41,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:37:41,286 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:37:41,286 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:37:41,286 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:37:41,286 - app - INFO - 增强版任务调度器已停止
2025-04-22 11:37:41,287 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:37:41,287 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:37:41,289 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:37:41,289 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:37:42,549 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:37:42,608 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:37:42,610 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:37:42,670 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:37:42,724 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:37:42,757 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:37:42,777 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:37:42,781 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,782 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:37:42,785 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,790 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:37:42,792 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:37:42,799 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:37:42,801 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,805 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:37:42,807 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,808 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:37:42,808 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,811 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:37:42,811 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:37:42,817 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,818 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:37:42,821 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,823 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:37:42,826 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,830 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:37:42,834 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,840 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:37:42,842 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,846 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:37:42,848 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,856 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:37:42,857 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:37:42,864 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:37:42,868 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:37:43,232 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:37:43,235 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:37:43,237 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:37:43,237 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:37:43,238 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:37:43,240 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:37:43,243 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:37:43,244 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:37:43,244 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:37:43,244 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:37:43,245 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:37:43,245 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:37:43,245 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:37:43,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:37:43,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:37:43,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:37:43,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:37:43,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:37:43,255 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:37:43,257 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:37:43,261 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:37:43,262 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:37:43,265 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:37:43,269 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:37:43,270 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:37:43,271 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:37:43,275 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:37:43,278 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:37:43,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:37:43,293 - sqlalchemy.engine.Engine - INFO - [generated in 0.00513s] (1, 1)
2025-04-22 11:37:43,295 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:37:43,296 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:37:43,298 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:37:43,300 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:37:43,302 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:37:43,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:37:43,310 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:37:43,311 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-22 11:37:43,312 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:37:43,312 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:37:43,313 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.6小时)，不使用它恢复任务
2025-04-22 11:37:43,313 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:37:43,313 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:37:43,313 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:37:43,313 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:37:43,314 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:37:43,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:37:43,315 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 37, 43, 304056))
2025-04-22 11:37:43,316 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:38:43,282 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:38:43,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:38:43,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:38:43,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:38:43,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:38:43,291 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:38:43,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:38:43,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:38:43,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:38:43,299 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:38:43,299 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:38:43,299 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:38:43,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:38:43,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:38:43,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:38:43,300 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:38:43,300 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:38:43,301 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:38:43,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:38:43,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:38:43,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:38:43,302 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:38:43,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:38:43,302 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:38:43,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:38:43,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:38:43,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:38:43,303 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:38:43,303 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:38:43,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:38:43,330 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:38:43,330 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:38:43,330 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 38, 43, 329482))
2025-04-22 11:38:43,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:39:43,334 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:39:43,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:39:43,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:39:43,336 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:39:43,336 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:39:43,336 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:39:43,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:39:43,336 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:39:43,336 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 39, 43, 334146))
2025-04-22 11:39:43,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:39:43,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:39:43,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:39:43,337 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:39:43,337 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:39:43,337 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:39:43,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:39:43,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:39:43,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:39:43,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:39:43,339 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:39:43,339 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:39:43,340 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:39:43,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:39:43,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:39:43,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:39:43,341 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:39:43,341 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:39:43,341 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:39:43,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:39:43,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:39:43,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:39:43,343 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:39:43,343 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:39:43,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:39:43,547 - app - INFO - 应用程序关闭中...
2025-04-22 11:39:43,548 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:39:43,548 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:39:43,549 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:39:43,550 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:39:43,550 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:39:43,550 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:39:43,550 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:39:43,550 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:39:43,550 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:39:43,550 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:39:43,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:39:43,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:39:43,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:39:43,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:39:43,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:39:43,553 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:39:43,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:39:43,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:39:43,554 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:39:43,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:39:43,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:39:43,554 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:39:43,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:39:43,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:39:43,554 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:39:43,554 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:39:43,554 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:39:43,554 - app - INFO - 增强版任务调度器已停止
2025-04-22 11:39:43,554 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:39:43,555 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:39:43,555 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:39:43,555 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:39:44,746 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:39:44,805 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:39:44,806 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:39:44,865 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:39:44,916 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:39:44,954 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:39:44,979 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:39:44,979 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:44,981 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:39:44,983 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:44,983 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:39:44,983 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:44,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:39:44,986 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:39:44,986 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:44,987 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:39:44,988 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:44,989 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:39:44,989 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:44,991 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:39:44,991 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:44,993 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:39:44,997 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:44,998 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:39:44,998 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:44,999 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:39:44,999 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:45,000 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:39:45,000 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:45,000 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:39:45,001 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:45,007 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:39:45,007 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:45,008 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:39:45,008 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:39:45,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:39:45,014 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:39:45,395 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:39:45,395 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:39:45,395 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:39:45,396 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:39:45,396 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:39:45,397 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:39:45,397 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:39:45,398 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:39:45,398 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:39:45,398 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:39:45,398 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:39:45,398 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:39:45,398 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:39:45,400 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:39:45,400 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:39:45,400 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:39:45,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:39:45,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:39:45,401 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:39:45,401 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:39:45,403 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:39:45,405 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:39:45,405 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:39:45,405 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:39:45,406 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:39:45,407 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:39:45,407 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:39:45,408 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:39:45,417 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:39:45,417 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (1, 1)
2025-04-22 11:39:45,418 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:39:45,418 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:39:45,419 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:39:45,420 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:39:45,420 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:39:45,421 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:39:45,423 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:39:45,423 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-22 11:39:45,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:39:45,424 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.7小时)，不使用它恢复任务
2025-04-22 11:39:45,425 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:39:45,425 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:39:45,425 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:39:45,425 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:39:45,425 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:39:45,426 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:39:45,426 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:39:45,426 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 39, 45, 420116))
2025-04-22 11:39:45,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:40:45,400 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:40:45,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:40:45,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:40:45,401 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:40:45,401 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:40:45,401 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:40:45,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:40:45,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:40:45,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:40:45,403 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:40:45,403 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:40:45,404 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:40:45,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:40:45,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:40:45,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:40:45,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:40:45,405 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:40:45,405 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:40:45,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:40:45,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:40:45,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:40:45,405 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:40:45,405 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:40:45,405 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:40:45,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:40:45,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:40:45,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:40:45,406 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:40:45,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:40:45,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:40:45,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:40:45,411 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:40:45,412 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 40, 45, 411470))
2025-04-22 11:40:45,412 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:41:45,424 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:41:45,429 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:41:45,431 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 41, 45, 424811))
2025-04-22 11:41:45,432 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:41:45,472 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:41:45,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:41:45,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:41:45,472 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:41:45,472 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:41:45,472 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:41:45,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:41:45,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:41:45,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:41:45,473 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:41:45,473 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:41:45,475 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:41:45,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:41:45,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:41:45,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:41:45,476 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:41:45,476 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:41:45,476 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:41:45,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:41:45,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:41:45,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:41:45,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:41:45,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:41:45,477 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:41:45,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:41:45,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:41:45,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:41:45,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:41:45,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:41:45,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:42:45,427 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:42:45,428 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:42:45,429 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 42, 45, 426219))
2025-04-22 11:42:45,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:42:45,488 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:42:45,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:42:45,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:42:45,489 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:42:45,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:42:45,489 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:42:45,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:42:45,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:42:45,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:42:45,490 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:42:45,490 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:42:45,490 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:42:45,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:42:45,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:42:45,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:42:45,491 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:42:45,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:42:45,491 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:42:45,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:42:45,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:42:45,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:42:45,493 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:42:45,495 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:42:45,497 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:42:45,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:42:45,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:42:45,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:42:45,503 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:42:45,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:42:45,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:43:45,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:43:45,432 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:43:45,432 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 43, 45, 428575))
2025-04-22 11:43:45,435 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:43:45,523 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:43:45,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:43:45,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:43:45,524 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:43:45,524 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:43:45,524 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:43:45,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:43:45,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:43:45,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:43:45,526 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:43:45,527 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:43:45,527 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:43:45,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:43:45,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:43:45,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:43:45,528 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:43:45,528 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:43:45,529 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:43:45,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:43:45,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:43:45,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:43:45,530 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:43:45,530 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:43:45,531 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:43:45,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:43:45,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:43:45,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:43:45,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:43:45,531 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:43:45,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:43:45,569 - app - INFO - 应用程序关闭中...
2025-04-22 11:43:45,570 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:43:45,570 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:43:45,570 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:43:45,570 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:43:45,571 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:43:45,571 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:43:45,571 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:43:45,571 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:43:45,571 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:43:45,571 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:43:45,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:43:45,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:43:45,572 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:43:45,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:43:45,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:43:45,572 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:43:45,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:43:45,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:43:45,572 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:43:45,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:43:45,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:43:45,573 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:43:45,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:43:45,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:43:45,573 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:43:45,573 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:43:45,573 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:43:45,573 - app - INFO - 增强版任务调度器已停止
2025-04-22 11:43:45,573 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:43:45,574 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:43:45,574 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:43:45,574 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:43:46,777 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:43:46,839 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:43:46,840 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:43:46,905 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:43:46,956 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:43:47,004 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:43:47,030 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:43:47,030 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,031 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:43:47,031 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,031 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:43:47,032 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:43:47,032 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:43:47,032 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,034 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:43:47,035 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,036 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:43:47,036 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,038 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:43:47,038 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,039 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:43:47,039 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,040 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:43:47,040 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,041 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:43:47,041 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,050 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:43:47,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,058 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:43:47,061 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:43:47,064 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,065 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:43:47,067 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:43:47,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:43:47,071 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:43:47,460 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:43:47,461 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:43:47,462 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:43:47,464 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:43:47,465 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:43:47,466 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:43:47,467 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:43:47,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:43:47,471 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:43:47,473 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:43:47,474 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:43:47,476 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:43:47,478 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:43:47,479 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:43:47,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:43:47,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:43:47,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:43:47,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:43:47,489 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:43:47,490 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:43:47,511 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:43:47,513 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:43:47,513 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:43:47,514 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:43:47,514 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:43:47,515 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:43:47,515 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:43:47,516 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:43:47,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:43:47,527 - sqlalchemy.engine.Engine - INFO - [generated in 0.00139s] (1, 1)
2025-04-22 11:43:47,531 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:43:47,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:43:47,535 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:43:47,537 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:43:47,539 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:43:47,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:43:47,542 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:43:47,545 - sqlalchemy.engine.Engine - INFO - [generated in 0.00201s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-22 11:43:47,548 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:43:47,549 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:43:47,551 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:43:47,552 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:43:47,553 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:43:47,556 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:43:47,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:43:47,562 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:43:47,566 - sqlalchemy.engine.Engine - INFO - [generated in 0.00401s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 43, 47, 541085))
2025-04-22 11:43:47,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:44:47,530 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:44:47,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:44:47,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:44:47,533 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:44:47,533 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:44:47,533 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:44:47,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:44:47,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:44:47,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:44:47,543 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:44:47,545 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:44:47,548 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:44:47,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:44:47,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:44:47,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:44:47,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:44:47,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:44:47,549 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:44:47,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:44:47,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:44:47,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:44:47,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:44:47,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:44:47,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:44:47,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:44:47,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:44:47,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:44:47,551 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:44:47,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:44:47,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:44:47,577 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:44:47,583 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:44:47,588 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 44, 47, 577920))
2025-04-22 11:44:47,594 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:44:47,734 - app - INFO - 应用程序关闭中...
2025-04-22 11:44:47,734 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:44:47,735 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:44:47,736 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:44:47,736 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:44:47,737 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:44:47,738 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:44:47,738 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:44:47,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:44:47,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:44:47,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:44:47,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:44:47,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:44:47,746 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:44:47,747 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:44:47,747 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:44:47,748 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:44:47,748 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:44:47,750 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:44:47,750 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:44:47,750 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:44:47,750 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:44:47,750 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:44:47,750 - app - INFO - 增强版任务调度器已停止
2025-04-22 11:44:47,752 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:44:47,754 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:44:47,755 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:44:47,755 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:44:48,970 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:44:49,028 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:44:49,029 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:44:49,088 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:44:49,133 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:44:49,164 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:44:49,166 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:44:49,168 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,168 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:44:49,169 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,169 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:44:49,169 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:44:49,170 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:44:49,170 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,172 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:44:49,172 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,173 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:44:49,173 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,175 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:44:49,175 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,176 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:44:49,176 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,178 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:44:49,178 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,179 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:44:49,179 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,181 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:44:49,181 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,182 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:44:49,182 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,184 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:44:49,184 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,185 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:44:49,185 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:44:49,186 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:44:49,187 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:44:49,536 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:44:49,536 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:44:49,536 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:44:49,536 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:44:49,536 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:44:49,537 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:44:49,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:44:49,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:44:49,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:44:49,538 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:44:49,538 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:44:49,538 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:44:49,539 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:44:49,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:44:49,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:44:49,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:44:49,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:44:49,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:44:49,542 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:44:49,542 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:44:49,543 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:44:49,543 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:44:49,543 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:44:49,544 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:44:49,544 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:44:49,545 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:44:49,545 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:44:49,546 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:44:49,555 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:44:49,555 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (1, 1)
2025-04-22 11:44:49,556 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:44:49,556 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:44:49,557 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:44:49,558 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:44:49,558 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:44:49,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:44:49,560 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:44:49,560 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-22 11:44:49,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:44:49,562 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:44:49,562 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:44:49,562 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:44:49,563 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:44:49,563 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:44:49,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:44:49,565 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:44:49,566 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 44, 49, 558752))
2025-04-22 11:44:49,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:45:49,566 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:45:49,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:45:49,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:45:49,567 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:45:49,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:45:49,567 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:45:49,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:45:49,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:45:49,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:45:49,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:45:49,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:45:49,569 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:45:49,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:45:49,569 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:45:49,569 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 45, 49, 567306))
2025-04-22 11:45:49,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:45:49,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:45:49,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:45:49,570 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:45:49,571 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:45:49,571 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:45:49,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:45:49,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:45:49,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:45:49,572 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:45:49,573 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:45:49,573 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:45:49,573 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:45:49,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:45:49,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:45:49,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:45:49,574 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:45:49,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:45:49,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:46:49,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:46:49,609 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:46:49,610 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 46, 49, 608229))
2025-04-22 11:46:49,611 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:46:49,639 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:46:49,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:46:49,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:46:49,639 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:46:49,639 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:46:49,639 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:46:49,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:46:49,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:46:49,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:46:49,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:46:49,641 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:46:49,641 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:46:49,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:46:49,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:46:49,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:46:49,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:46:49,641 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:46:49,641 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:46:49,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:46:49,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:46:49,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:46:49,642 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:46:49,642 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:46:49,642 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:46:49,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:46:49,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:46:49,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:46:49,643 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:46:49,643 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:46:49,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:47:49,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:47:49,626 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:47:49,627 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 47, 49, 624156))
2025-04-22 11:47:49,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:47:49,671 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:47:49,673 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:47:49,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:47:49,674 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:47:49,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:47:49,675 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:47:49,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:47:49,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:47:49,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:47:49,677 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:47:49,677 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:47:49,677 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:47:49,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:47:49,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:47:49,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:47:49,682 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:47:49,683 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:47:49,686 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:47:49,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:47:49,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:47:49,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:47:49,688 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:47:49,688 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:47:49,689 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:47:49,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:47:49,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:47:49,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:47:49,692 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:47:49,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:47:49,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:48:49,636 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:48:49,638 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:48:49,638 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 48, 49, 635669))
2025-04-22 11:48:49,640 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:48:49,711 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:48:49,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:48:49,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:48:49,714 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:48:49,717 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:48:49,719 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:48:49,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:48:49,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:48:49,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:48:49,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:48:49,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:48:49,727 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:48:49,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:48:49,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:48:49,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:48:49,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:48:49,742 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:48:49,742 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:48:49,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:48:49,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:48:49,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:48:49,753 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:48:49,756 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:48:49,757 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:48:49,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:48:49,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:48:49,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:48:49,764 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:48:49,766 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:48:49,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:49:48,352 - app - INFO - 应用程序关闭中...
2025-04-22 11:49:48,352 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:49:48,353 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:49:48,354 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:49:48,356 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:49:48,357 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:49:48,357 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:49:48,357 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:49:48,357 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:49:48,358 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:49:48,358 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:49:48,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:49:48,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:49:48,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:49:48,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:49:48,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:49:48,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:49:48,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:49:48,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:49:48,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:49:48,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:49:48,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:49:48,361 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:49:48,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:49:48,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:49:48,361 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:49:48,361 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:49:48,361 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:49:48,362 - app - INFO - 增强版任务调度器已停止
2025-04-22 11:49:48,362 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:49:48,362 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:49:48,362 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:49:48,363 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:49:49,555 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:49:49,616 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:49:49,617 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:49:49,679 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:49:49,731 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:49:49,769 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:49:49,787 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:49:49,789 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,790 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:49:49,792 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,792 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:49:49,797 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:49:49,802 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:49:49,803 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,807 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:49:49,808 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:49:49,819 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,820 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:49:49,820 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,821 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:49:49,821 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,823 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:49:49,823 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,824 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:49:49,824 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,827 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:49:49,827 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,831 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:49:49,834 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,837 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:49:49,840 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,842 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:49:49,845 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:49:49,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:49:49,849 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:49:50,208 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:49:50,209 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:49:50,211 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:49:50,211 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:49:50,213 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:49:50,215 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:49:50,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:49:50,219 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:49:50,221 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:49:50,222 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:49:50,222 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:49:50,222 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:49:50,222 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:49:50,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:49:50,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:49:50,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:49:50,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:49:50,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:49:50,228 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:49:50,231 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:49:50,258 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:49:50,259 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:49:50,260 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:49:50,261 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:49:50,262 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:49:50,262 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:49:50,262 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:49:50,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:49:50,271 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:49:50,273 - sqlalchemy.engine.Engine - INFO - [generated in 0.00141s] (1, 1)
2025-04-22 11:49:50,275 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:49:50,276 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:49:50,279 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:49:50,279 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:49:50,279 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:49:50,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:49:50,282 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:49:50,282 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-22 11:49:50,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:49:50,307 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:49:50,309 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:49:50,309 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:49:50,310 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:49:50,311 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:49:50,312 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:49:50,314 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:49:50,315 - sqlalchemy.engine.Engine - INFO - [generated in 0.00105s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 49, 50, 280713))
2025-04-22 11:49:50,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:50:50,266 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:50:50,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:50:50,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:50:50,270 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:50:50,270 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:50:50,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:50:50,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:50:50,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:50:50,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:50:50,271 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:50:50,271 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:50:50,272 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:50:50,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:50:50,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:50:50,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:50:50,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:50:50,272 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:50:50,272 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:50:50,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:50:50,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:50:50,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:50:50,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:50:50,273 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:50:50,273 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:50:50,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:50:50,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:50:50,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:50:50,274 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:50:50,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:50:50,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:50:50,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:50:50,328 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:50:50,328 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 50, 50, 327711))
2025-04-22 11:50:50,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:50:50,373 - app - INFO - 应用程序关闭中...
2025-04-22 11:50:50,374 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:50:50,376 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:50:50,376 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:50:50,376 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:50:50,376 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:50:50,376 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-22 11:50:50,377 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:50:50,377 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:50:50,377 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-22 11:50:50,377 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:50:50,378 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:50:50,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:50:50,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:50:50,378 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:50:50,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:50:50,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:50:50,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-22 11:50:50,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:50:50,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:50:50,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-22 11:50:50,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:50:50,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:50:50,380 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-22 11:50:50,380 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-22 11:50:50,380 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-22 11:50:50,380 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-22 11:50:50,380 - app - INFO - 增强版任务调度器已停止
2025-04-22 11:50:50,380 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-22 11:50:50,381 - data.session - INFO - 异步数据库连接已关闭
2025-04-22 11:50:50,381 - data.session - INFO - 正在关闭数据库连接...
2025-04-22 11:50:50,381 - data.session - INFO - 数据库连接已关闭
2025-04-22 11:50:51,501 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:50:52,304 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:50:52,366 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:50:52,372 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:50:52,438 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:50:52,485 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:50:52,503 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:50:52,508 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:50:52,508 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,509 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:50:52,509 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,510 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:50:52,510 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,510 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:50:52,510 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:50:52,510 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,512 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:50:52,512 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,514 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:50:52,514 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,515 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:50:52,515 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,517 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:50:52,518 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,519 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:50:52,519 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,521 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:50:52,522 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,523 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:50:52,523 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,525 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:50:52,525 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,526 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:50:52,526 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,529 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:50:52,529 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:50:52,530 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:50:52,530 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:50:52,883 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:50:52,883 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:50:52,884 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:50:52,884 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:50:52,884 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:50:52,884 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:50:52,885 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:50:52,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:50:52,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:50:52,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:50:52,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:50:52,886 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:50:52,887 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:50:52,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:50:52,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:50:52,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:50:52,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:50:52,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:50:52,888 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:50:52,888 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:50:52,889 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:50:52,890 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:50:52,890 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:50:52,891 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:50:52,891 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:50:52,892 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:50:52,892 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:50:52,893 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:50:52,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.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:50:52,901 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (1, 1)
2025-04-22 11:50:52,901 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:50:52,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:50:52,902 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:50:52,902 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:50:52,902 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:50:52,902 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:50:52,905 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:50:52,905 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-22 11:50:52,922 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:50:52,927 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:50:52,928 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.9小时)，不使用它恢复任务
2025-04-22 11:50:52,928 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:50:52,928 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:50:52,928 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:50:52,928 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:50:52,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:50:52,930 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:50:52,931 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 50, 52, 902837))
2025-04-22 11:50:52,932 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:50:59,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:50:59,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:50:59,867 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-22 11:50:59,869 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-22 11:50:59,871 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-22 11:50:59,871 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-22 11:50:59,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:50:59,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:50:59,874 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-22 11:50:59,875 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-22 11:50:59,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:50:59,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:50:59,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:50:59,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:50:59,876 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-22 11:50:59,876 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-22 11:50:59,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:50:59,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:51:01,451 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:51:01,523 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:51:01,525 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:51:02,195 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-22 11:51:02,258 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 50 column 1 (char 1514)
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 50 column 1 (char 1514)
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-22 11:51:02,259 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-22 11:51:02,328 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-22 11:51:02,375 - data.session - INFO - 正在初始化数据库...
2025-04-22 11:51:02,404 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-22 11:51:02,430 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:51:02,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,431 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:51:02,432 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,432 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:51:02,433 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,434 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:51:02,434 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-22 11:51:02,434 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,439 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-22 11:51:02,440 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,441 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-22 11:51:02,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,442 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-22 11:51:02,443 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,444 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-22 11:51:02,444 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,446 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-22 11:51:02,447 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,448 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-22 11:51:02,448 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,449 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-22 11:51:02,449 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,450 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-22 11:51:02,450 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,451 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-22 11:51:02,451 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,457 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-22 11:51:02,458 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-22 11:51:02,458 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:51:02,459 - data.session - INFO - 数据库表初始化完成
2025-04-22 11:51:02,834 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-22 11:51:02,834 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-22 11:51:02,834 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-22 11:51:02,834 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-22 11:51:02,835 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-22 11:51:02,836 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-22 11:51:02,836 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-22 11:51:02,836 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-22 11:51:02,836 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-22 11:51:02,836 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-22 11:51:02,836 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:51:02,837 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-22 11:51:02,837 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-22 11:51:02,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:51:02,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:51:02,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:51:02,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:51:02,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:51:02,839 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-22 11:51:02,839 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-22 11:51:02,841 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:51:02,842 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-22 11:51:02,842 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:51:02,842 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-22 11:51:02,843 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:51:02,843 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-22 11:51:02,843 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-22 11:51:02,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:51:02,856 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.create_date, vwed_taskdef.remark, vwed_taskdef.tenant_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-22 11:51:02,857 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (1, 1)
2025-04-22 11:51:02,858 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-22 11:51:02,858 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:51:02,858 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-22 11:51:02,859 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-22 11:51:02,859 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-22 11:51:02,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:51:02,860 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_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-22 11:51:02,863 - sqlalchemy.engine.Engine - INFO - [generated in 0.00245s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-22 11:51:02,865 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:51:02,865 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 11:51:02,865 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (19.9小时)，不使用它恢复任务
2025-04-22 11:51:02,865 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-22 11:51:02,865 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-22 11:51:02,865 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-22 11:51:02,866 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-22 11:51:02,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:51:02,871 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:51:02,871 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 51, 2, 859769))
2025-04-22 11:51:02,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:52:02,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:52:02,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:52:02,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:52:02,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:52:02,881 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:52:02,881 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:52:02,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:52:02,881 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:52:02,881 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 52, 2, 879676))
2025-04-22 11:52:02,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:52:02,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:52:02,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:52:02,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:52:02,882 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:52:02,882 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:52:02,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:52:02,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:52:02,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:52:02,883 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:52:02,883 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:52:02,883 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:52:02,884 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:52:02,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:52:02,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:52:02,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:52:02,886 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:52:02,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:52:02,886 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:52:02,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:52:02,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:52:02,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:52:02,889 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:52:02,889 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:52:02,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:53:02,908 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:53:02,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:53:02,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:53:02,909 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:53:02,909 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:53:02,909 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:53:02,910 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:53:02,910 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:53:02,911 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 53, 2, 907460))
2025-04-22 11:53:02,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:53:02,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:53:02,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:53:02,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:53:02,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:53:02,912 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:53:02,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:53:02,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:53:02,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:53:02,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:53:02,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:53:02,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:53:02,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:53:02,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:53:02,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:53:02,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:53:02,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:53:02,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:53:02,917 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:53:02,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:53:02,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:53:02,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:53:02,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:53:02,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:53:02,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:54:02,923 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:54:02,925 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:54:02,925 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 54, 2, 923815))
2025-04-22 11:54:02,926 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:54:02,955 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:54:02,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:54:02,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:54:02,956 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:54:02,956 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:54:02,956 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:54:02,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:54:02,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:54:02,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:54:02,958 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:54:02,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:54:02,959 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:54:02,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:54:02,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:54:02,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:54:02,960 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:54:02,960 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:54:02,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:54:02,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:54:02,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:54:02,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:54:02,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:54:02,962 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:54:02,962 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:54:02,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:54:02,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:54:02,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:54:02,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:54:02,963 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:54:02,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:55:02,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:55:02,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:55:02,953 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 55, 2, 950967))
2025-04-22 11:55:02,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:55:02,997 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:55:02,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:55:02,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:55:02,998 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:55:02,998 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:55:02,998 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:55:02,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:55:02,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:55:02,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:55:02,998 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:55:02,998 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:55:02,999 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:55:02,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:55:02,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:55:02,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:55:02,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:55:02,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:55:02,999 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:55:03,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:55:03,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:55:03,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:55:03,001 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:55:03,003 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:55:03,004 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:55:03,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:55:03,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:55:03,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:55:03,005 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:55:03,005 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:55:03,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:56:02,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:56:02,960 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:56:02,961 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 56, 2, 958588))
2025-04-22 11:56:02,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:56:03,051 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:56:03,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:56:03,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:56:03,052 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:56:03,052 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:56:03,052 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:56:03,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:56:03,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:56:03,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:56:03,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:56:03,053 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:56:03,053 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:56:03,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:56:03,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:56:03,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:56:03,054 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:56:03,054 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:56:03,054 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:56:03,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:56:03,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:56:03,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:56:03,055 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:56:03,055 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:56:03,055 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:56:03,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:56:03,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:56:03,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:56:03,055 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:56:03,055 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:56:03,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:57:02,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:57:02,961 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:57:02,962 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 57, 2, 960352))
2025-04-22 11:57:02,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:57:03,068 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:57:03,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:57:03,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:57:03,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:57:03,069 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:57:03,069 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:57:03,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:57:03,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:57:03,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:57:03,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:57:03,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:57:03,070 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:57:03,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:57:03,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:57:03,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:57:03,070 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:57:03,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:57:03,070 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:57:03,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:57:03,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:57:03,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:57:03,071 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:57:03,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:57:03,072 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:57:03,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:57:03,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:57:03,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:57:03,072 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:57:03,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:57:03,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:58:02,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:58:02,985 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:58:02,986 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 58, 2, 979537))
2025-04-22 11:58:02,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:58:03,087 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:58:03,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:58:03,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:58:03,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:58:03,088 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:58:03,089 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:58:03,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:58:03,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:58:03,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:58:03,090 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:58:03,090 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:58:03,090 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:58:03,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:58:03,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:58:03,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:58:03,091 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:58:03,091 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:58:03,091 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:58:03,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:58:03,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:58:03,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:58:03,091 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:58:03,091 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:58:03,092 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:58:03,093 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:58:03,093 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:58:03,093 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:58:03,093 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:58:03,093 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:58:03,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 11:59:03,009 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 11:59:03,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 11:59:03,010 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 10, 59, 3, 6731))
2025-04-22 11:59:03,011 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 11:59:18,110 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 11:59:18,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 11:59:18,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 11:59:18,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 11:59:18,111 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 11:59:18,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 11:59:18,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 11:59:18,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 11:59:18,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 11:59:18,112 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 11:59:18,113 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 11:59:18,113 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 11:59:18,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 11:59:18,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 11:59:18,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 11:59:18,114 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 11:59:18,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 11:59:18,114 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 11:59:18,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 11:59:18,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 11:59:18,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 11:59:18,116 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 11:59:18,117 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 11:59:18,117 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 11:59:18,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 11:59:18,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 11:59:18,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 11:59:18,118 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 11:59:18,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 11:59:18,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:00:03,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:00:03,012 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:00:03,012 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 0, 3, 9601))
2025-04-22 12:00:03,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:00:18,127 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:00:18,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:00:18,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:00:18,129 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:00:18,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:00:18,129 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:00:18,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:00:18,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:00:18,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:00:18,130 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:00:18,130 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:00:18,130 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:00:18,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:00:18,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:00:18,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:00:18,132 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:00:18,132 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:00:18,132 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:00:18,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:00:18,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:00:18,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:00:18,133 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:00:18,133 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:00:18,133 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:00:18,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:00:18,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:00:18,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:00:18,133 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:00:18,136 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:00:18,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:01:03,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:01:03,030 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:01:03,031 - sqlalchemy.engine.Engine - INFO - [cached since 600.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 1, 3, 29409))
2025-04-22 12:01:03,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:01:18,173 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:01:18,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:01:18,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:01:18,179 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:01:18,181 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:01:18,181 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:01:18,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:01:18,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:01:18,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:01:18,187 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:01:18,188 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:01:18,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:01:18,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:01:18,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:01:18,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:01:18,192 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:01:18,192 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:01:18,194 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:01:18,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:01:18,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:01:18,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:01:18,200 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:01:18,202 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:01:18,204 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:01:18,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:01:18,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:01:18,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:01:18,206 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:01:18,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:01:18,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:02:03,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:02:03,040 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:02:03,041 - sqlalchemy.engine.Engine - INFO - [cached since 660.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 2, 3, 38604))
2025-04-22 12:02:03,042 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:02:18,279 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:02:18,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:02:18,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:02:18,280 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:02:18,280 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:02:18,280 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:02:18,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:02:18,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:02:18,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:02:18,282 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:02:18,282 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:02:18,282 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:02:18,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:02:18,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:02:18,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:02:18,283 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:02:18,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:02:18,283 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:02:18,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:02:18,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:02:18,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:02:18,283 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:02:18,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:02:18,283 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:02:18,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:02:18,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:02:18,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:02:18,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:02:18,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:02:18,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:03:03,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:03:03,056 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:03:03,058 - sqlalchemy.engine.Engine - INFO - [cached since 720.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 3, 3, 51207))
2025-04-22 12:03:03,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:03:18,342 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:03:18,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:03:18,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:03:18,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:03:18,346 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:03:18,346 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:03:18,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:03:18,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:03:18,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:03:18,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:03:18,348 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:03:18,349 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:03:18,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:03:18,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:03:18,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:03:18,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:03:18,352 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:03:18,352 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:03:18,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:03:18,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:03:18,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:03:18,353 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:03:18,353 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:03:18,354 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:03:18,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:03:18,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:03:18,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:03:18,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:03:18,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:03:18,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:04:03,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:04:03,095 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:04:03,095 - sqlalchemy.engine.Engine - INFO - [cached since 780.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 4, 3, 91995))
2025-04-22 12:04:03,098 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:04:18,379 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:04:18,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:04:18,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:04:18,381 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:04:18,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:04:18,382 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:04:18,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:04:18,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:04:18,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:04:18,383 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:04:18,384 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:04:18,384 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:04:18,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:04:18,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:04:18,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:04:18,386 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:04:18,386 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:04:18,387 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:04:18,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:04:18,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:04:18,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:04:18,388 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:04:18,388 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:04:18,388 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:04:18,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:04:18,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:04:18,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:04:18,388 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:04:18,388 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:04:18,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:05:03,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:05:03,107 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:05:03,107 - sqlalchemy.engine.Engine - INFO - [cached since 840.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 5, 3, 105122))
2025-04-22 12:05:03,109 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:05:18,414 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:05:18,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:05:18,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:05:18,415 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:05:18,415 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:05:18,416 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:05:18,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:05:18,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:05:18,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:05:18,417 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:05:18,417 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:05:18,417 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:05:18,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:05:18,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:05:18,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:05:18,421 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:05:18,421 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:05:18,421 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:05:18,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:05:18,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:05:18,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:05:18,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:05:18,423 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:05:18,425 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:05:18,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:05:18,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:05:18,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:05:18,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:05:18,428 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:05:18,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:06:03,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:06:03,107 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:06:03,107 - sqlalchemy.engine.Engine - INFO - [cached since 900.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 6, 3, 105857))
2025-04-22 12:06:03,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:06:18,444 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:06:18,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:06:18,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:06:18,446 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:06:18,447 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:06:18,447 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:06:18,452 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:06:18,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:06:18,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:06:18,458 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:06:18,459 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:06:18,460 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:06:18,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:06:18,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:06:18,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:06:18,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:06:18,471 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:06:18,472 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:06:18,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:06:18,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:06:18,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:06:18,478 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:06:18,480 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:06:18,482 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:06:18,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:06:18,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:06:18,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:06:18,492 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:06:18,494 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:06:18,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:07:03,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:07:03,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:07:03,113 - sqlalchemy.engine.Engine - INFO - [cached since 960.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 7, 3, 111816))
2025-04-22 12:07:03,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:07:18,518 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:07:18,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:07:18,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:07:18,519 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:07:18,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:07:18,519 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:07:18,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:07:18,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:07:18,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:07:18,521 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:07:18,521 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:07:18,521 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:07:18,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:07:18,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:07:18,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:07:18,522 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:07:18,522 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:07:18,522 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:07:18,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:07:18,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:07:18,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:07:18,523 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:07:18,523 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:07:18,523 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:07:18,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:07:18,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:07:18,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:07:18,524 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:07:18,524 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:07:18,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:08:03,121 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:08:03,124 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:08:03,128 - sqlalchemy.engine.Engine - INFO - [cached since 1020s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 8, 3, 120498))
2025-04-22 12:08:03,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:08:18,560 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:08:18,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:08:18,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:08:18,563 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:08:18,564 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:08:18,564 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:08:18,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:08:18,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:08:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:08:18,566 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:08:18,566 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:08:18,566 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:08:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:08:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:08:18,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:08:18,566 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:08:18,566 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:08:18,566 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:08:18,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:08:18,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:08:18,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:08:18,567 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:08:18,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:08:18,567 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:08:18,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:08:18,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:08:18,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:08:18,567 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:08:18,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:08:18,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:09:03,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:09:03,156 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:09:03,157 - sqlalchemy.engine.Engine - INFO - [cached since 1080s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 9, 3, 153976))
2025-04-22 12:09:03,160 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:09:18,611 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:09:18,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:09:18,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:09:18,617 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:09:18,618 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:09:18,620 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:09:18,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:09:18,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:09:18,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:09:18,627 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:09:18,627 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:09:18,627 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:09:18,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:09:18,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:09:18,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:09:18,632 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:09:18,634 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:09:18,636 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:09:18,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:09:18,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:09:18,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:09:18,637 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:09:18,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:09:18,637 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:09:18,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:09:18,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:09:18,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:09:18,638 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:09:18,638 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:09:18,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:10:03,164 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:10:03,165 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:10:03,165 - sqlalchemy.engine.Engine - INFO - [cached since 1140s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 10, 3, 163383))
2025-04-22 12:10:03,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:10:18,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:10:18,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:10:18,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:10:18,665 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:10:18,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:10:18,666 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:10:18,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:10:18,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:10:18,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:10:18,666 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:10:18,667 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:10:18,667 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:10:18,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:10:18,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:10:18,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:10:18,667 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:10:18,668 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:10:18,668 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:10:18,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:10:18,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:10:18,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:10:18,670 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:10:18,670 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:10:18,670 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:10:18,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:10:18,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:10:18,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:10:18,670 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:10:18,670 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:10:18,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:11:03,185 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:11:03,189 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:11:03,193 - sqlalchemy.engine.Engine - INFO - [cached since 1200s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 11, 3, 185752))
2025-04-22 12:11:03,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:11:18,685 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:11:18,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:11:18,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:11:18,687 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:11:18,687 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:11:18,687 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:11:18,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:11:18,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:11:18,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:11:18,688 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:11:18,689 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:11:18,689 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:11:18,689 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:11:18,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:11:18,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:11:18,690 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:11:18,690 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:11:18,690 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:11:18,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:11:18,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:11:18,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:11:18,692 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:11:18,692 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:11:18,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:11:18,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:11:18,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:11:18,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:11:18,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:11:18,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:11:18,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:12:03,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:12:03,219 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:12:03,220 - sqlalchemy.engine.Engine - INFO - [cached since 1260s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 12, 3, 218185))
2025-04-22 12:12:03,221 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:12:18,731 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:12:18,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:12:18,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:12:18,732 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:12:18,732 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:12:18,734 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:12:18,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:12:18,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:12:18,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:12:18,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:12:18,735 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:12:18,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:12:18,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:12:18,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:12:18,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:12:18,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:12:18,736 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:12:18,736 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:12:18,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:12:18,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:12:18,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:12:18,737 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:12:18,738 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:12:18,738 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:12:18,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:12:18,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:12:18,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:12:18,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:12:18,738 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:12:18,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:13:03,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:13:03,237 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:13:03,237 - sqlalchemy.engine.Engine - INFO - [cached since 1320s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 13, 3, 235710))
2025-04-22 12:13:03,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:13:18,811 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:13:18,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:13:18,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:13:18,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:13:18,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:13:18,813 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:13:18,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:13:18,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:13:18,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:13:18,813 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:13:18,813 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:13:18,813 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:13:18,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:13:18,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:13:18,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:13:18,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:13:18,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:13:18,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:13:18,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:13:18,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:13:18,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:13:18,816 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:13:18,816 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:13:18,816 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:13:18,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:13:18,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:13:18,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:13:18,817 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:13:18,817 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:13:18,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:14:03,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:14:03,239 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:14:03,239 - sqlalchemy.engine.Engine - INFO - [cached since 1380s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 14, 3, 237693))
2025-04-22 12:14:03,240 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:14:18,841 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:14:18,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:14:18,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:14:18,842 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:14:18,842 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:14:18,842 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:14:18,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:14:18,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:14:18,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:14:18,842 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:14:18,842 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:14:18,842 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:14:18,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:14:18,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:14:18,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:14:18,843 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:14:18,843 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:14:18,844 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:14:18,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:14:18,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:14:18,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:14:18,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:14:18,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:14:18,844 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:14:18,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:14:18,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:14:18,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:14:18,845 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:14:18,845 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:14:18,849 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:15:03,249 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:15:03,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:15:03,251 - sqlalchemy.engine.Engine - INFO - [cached since 1440s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 15, 3, 248247))
2025-04-22 12:15:03,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:15:18,884 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:15:18,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:15:18,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:15:18,885 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:15:18,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:15:18,886 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:15:18,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:15:18,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:15:18,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:15:18,886 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:15:18,887 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:15:18,887 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:15:18,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:15:18,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:15:18,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:15:18,887 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:15:18,887 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:15:18,887 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:15:18,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:15:18,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:15:18,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:15:18,888 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:15:18,888 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:15:18,888 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:15:18,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:15:18,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:15:18,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:15:18,888 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:15:18,889 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:15:18,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:16:03,262 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:16:03,263 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:16:03,263 - sqlalchemy.engine.Engine - INFO - [cached since 1500s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 16, 3, 261227))
2025-04-22 12:16:03,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:16:18,926 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:16:18,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:16:18,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:16:18,926 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:16:18,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:16:18,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:16:18,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:16:18,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:16:18,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:16:18,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:16:18,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:16:18,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:16:18,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:16:18,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:16:18,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:16:18,928 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:16:18,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:16:18,928 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:16:18,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:16:18,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:16:18,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:16:18,929 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:16:18,929 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:16:18,929 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:16:18,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:16:18,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:16:18,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:16:18,929 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:16:18,929 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:16:18,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:17:03,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:17:03,268 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:17:03,270 - sqlalchemy.engine.Engine - INFO - [cached since 1560s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 17, 3, 265392))
2025-04-22 12:17:03,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:17:18,979 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:17:18,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:17:18,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:17:18,983 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:17:18,984 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:17:18,984 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:17:18,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:17:18,986 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:17:18,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:17:18,987 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:17:18,988 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:17:18,988 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:17:18,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:17:18,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:17:18,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:17:18,990 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:17:18,990 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:17:18,991 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:17:18,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:17:18,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:17:18,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:17:18,992 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:17:18,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:17:18,992 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:17:18,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:17:18,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:17:18,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:17:18,992 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:17:18,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:17:18,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:18:03,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:18:03,287 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:18:03,287 - sqlalchemy.engine.Engine - INFO - [cached since 1620s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 18, 3, 285229))
2025-04-22 12:18:03,289 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:18:19,012 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:18:19,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:18:19,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:18:19,016 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:18:19,019 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:18:19,020 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:18:19,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:18:19,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:18:19,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:18:19,027 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:18:19,027 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:18:19,027 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:18:19,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:18:19,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:18:19,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:18:19,030 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:18:19,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:18:19,031 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:18:19,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:18:19,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:18:19,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:18:19,033 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:18:19,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:18:19,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:18:19,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:18:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:18:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:18:19,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:18:19,036 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:18:19,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:19:03,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:19:03,296 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:19:03,296 - sqlalchemy.engine.Engine - INFO - [cached since 1680s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 19, 3, 293856))
2025-04-22 12:19:03,298 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:19:19,063 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:19:19,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:19:19,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:19:19,065 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:19:19,065 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:19:19,067 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:19:19,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:19:19,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:19:19,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:19:19,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:19:19,068 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:19:19,068 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:19:19,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:19:19,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:19:19,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:19:19,070 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:19:19,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:19:19,070 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:19:19,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:19:19,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:19:19,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:19:19,071 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:19:19,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:19:19,071 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:19:19,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:19:19,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:19:19,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:19:19,071 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:19:19,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:19:19,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:20:03,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:20:03,304 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:20:03,304 - sqlalchemy.engine.Engine - INFO - [cached since 1740s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 20, 3, 301414))
2025-04-22 12:20:03,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:20:19,095 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:20:19,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:20:19,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:20:19,097 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:20:19,098 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:20:19,098 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:20:19,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:20:19,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:20:19,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:20:19,099 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:20:19,099 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:20:19,099 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:20:19,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:20:19,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:20:19,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:20:19,102 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:20:19,102 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:20:19,102 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:20:19,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:20:19,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:20:19,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:20:19,103 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:20:19,104 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:20:19,104 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:20:19,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:20:19,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:20:19,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:20:19,104 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:20:19,104 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:20:19,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:21:03,283 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:21:03,284 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:21:03,284 - sqlalchemy.engine.Engine - INFO - [cached since 1800s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 21, 3, 282878))
2025-04-22 12:21:03,286 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:21:19,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:21:19,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:21:19,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:21:19,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:21:19,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:21:19,170 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:21:19,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:21:19,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:21:19,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:21:19,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:21:19,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:21:19,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:21:19,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:21:19,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:21:19,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:21:19,173 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:21:19,175 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:21:19,175 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:21:19,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:21:19,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:21:19,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:21:19,175 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:21:19,175 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:21:19,176 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:21:19,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:21:19,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:21:19,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:21:19,177 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:21:19,178 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:21:19,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:22:03,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:22:03,314 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:22:03,315 - sqlalchemy.engine.Engine - INFO - [cached since 1860s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 22, 3, 310326))
2025-04-22 12:22:03,315 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:22:34,166 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:22:34,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:22:34,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:22:34,168 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:22:34,168 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:22:34,169 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:22:34,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:22:34,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:22:34,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:22:34,171 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:22:34,171 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:22:34,171 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:22:34,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:22:34,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:22:34,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:22:34,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:22:34,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:22:34,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:22:34,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:22:34,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:22:34,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:22:34,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:22:34,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:22:34,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:22:34,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:22:34,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:22:34,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:22:34,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:22:34,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:22:34,179 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:23:03,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:23:03,345 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:23:03,349 - sqlalchemy.engine.Engine - INFO - [cached since 1920s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 23, 3, 341987))
2025-04-22 12:23:03,354 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:23:34,169 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:23:34,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:23:34,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:23:34,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:23:34,171 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:23:34,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:23:49,176 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:23:49,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:23:49,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:23:49,179 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:23:49,179 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:23:49,179 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:23:49,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:23:49,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:23:49,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:23:49,185 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:23:49,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:23:49,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:23:49,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:23:49,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:23:49,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:23:49,195 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:23:49,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:23:49,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:23:49,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:23:49,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:23:49,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:23:49,205 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:23:49,205 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:23:49,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:24:03,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:24:03,362 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:24:03,362 - sqlalchemy.engine.Engine - INFO - [cached since 1980s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 24, 3, 360420))
2025-04-22 12:24:03,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:24:34,221 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:24:34,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:24:34,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:24:34,224 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:24:34,225 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:24:34,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:24:49,229 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:24:49,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:24:49,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:24:49,235 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:24:49,236 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:24:49,238 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:24:49,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:24:49,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:24:49,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:24:49,245 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:24:49,247 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:24:49,249 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:24:49,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:24:49,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:24:49,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:24:49,259 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:24:49,261 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:24:49,261 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:24:49,262 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:24:49,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:24:49,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:24:49,268 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:24:49,270 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:24:49,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:25:03,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:25:03,382 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:25:03,382 - sqlalchemy.engine.Engine - INFO - [cached since 2041s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 25, 3, 378517))
2025-04-22 12:25:03,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:25:34,284 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:25:34,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:25:34,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:25:34,292 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:25:34,294 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:25:34,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:25:49,303 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:25:49,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:25:49,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:25:49,308 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:25:49,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:25:49,311 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:25:49,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:25:49,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:25:49,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:25:49,319 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:25:49,319 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:25:49,319 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:25:49,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:25:49,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:25:49,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:25:49,320 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:25:49,320 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:25:49,320 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:25:49,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:25:49,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:25:49,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:25:49,325 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:25:49,326 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:25:49,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:26:03,386 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:26:03,386 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:26:03,387 - sqlalchemy.engine.Engine - INFO - [cached since 2101s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 26, 3, 385450))
2025-04-22 12:26:03,388 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:26:34,356 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:26:34,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:26:34,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:26:34,360 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:26:34,360 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:26:34,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:26:49,368 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:26:49,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:26:49,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:26:49,369 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:26:49,369 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:26:49,369 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:26:49,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:26:49,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:26:49,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:26:49,370 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:26:49,370 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:26:49,370 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:26:49,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:26:49,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:26:49,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:26:49,372 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:26:49,372 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:26:49,372 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:26:49,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:26:49,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:26:49,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:26:49,374 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:26:49,374 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:26:49,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:27:03,393 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:27:03,394 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:27:03,394 - sqlalchemy.engine.Engine - INFO - [cached since 2161s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 27, 3, 392665))
2025-04-22 12:27:03,395 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:27:34,400 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:27:34,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:27:34,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:27:34,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:27:34,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:27:34,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:27:49,417 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:27:49,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:27:49,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:27:49,417 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:27:49,417 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:27:49,418 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:27:49,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:27:49,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:27:49,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:27:49,418 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:27:49,419 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:27:49,419 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:27:49,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:27:49,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:27:49,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:27:49,419 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:27:49,419 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:27:49,419 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:27:49,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:27:49,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:27:49,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:27:49,420 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:27:49,420 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:27:49,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:28:03,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:28:03,421 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:28:03,421 - sqlalchemy.engine.Engine - INFO - [cached since 2221s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 28, 3, 418755))
2025-04-22 12:28:03,422 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:28:34,429 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:28:34,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:28:34,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:28:34,430 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:28:34,430 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:28:34,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:28:49,426 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:28:49,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:28:49,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:28:49,435 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:28:49,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:28:49,439 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:28:49,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:28:49,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:28:49,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:28:49,447 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:28:49,449 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:28:49,450 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:28:49,452 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:28:49,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:28:49,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:28:49,458 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:28:49,458 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:28:49,460 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:28:49,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:28:49,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:28:49,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:28:49,468 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:28:49,470 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:28:49,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:29:03,407 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:29:03,409 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:29:03,409 - sqlalchemy.engine.Engine - INFO - [cached since 2281s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 29, 3, 407861))
2025-04-22 12:29:03,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:29:34,497 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:29:34,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:29:34,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:29:34,499 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:29:34,499 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:29:34,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:29:49,525 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:29:49,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:29:49,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:29:49,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:29:49,526 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:29:49,526 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:29:49,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:29:49,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:29:49,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:29:49,527 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:29:49,527 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:29:49,527 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:29:49,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:29:49,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:29:49,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:29:49,528 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:29:49,528 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:29:49,528 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:29:49,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:29:49,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:29:49,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:29:49,528 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:29:49,528 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:29:49,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:30:03,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:30:03,412 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:30:03,413 - sqlalchemy.engine.Engine - INFO - [cached since 2341s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 30, 3, 411251))
2025-04-22 12:30:03,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:30:34,525 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:30:34,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:30:34,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:30:34,527 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:30:34,527 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:30:34,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:30:49,541 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:30:49,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:30:49,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:30:49,543 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:30:49,543 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:30:49,543 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:30:49,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:30:49,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:30:49,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:30:49,544 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:30:49,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:30:49,545 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:30:49,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:30:49,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:30:49,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:30:49,546 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:30:49,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:30:49,546 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:30:49,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:30:49,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:30:49,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:30:49,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:30:49,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:30:49,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:31:03,433 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:31:03,434 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:31:03,435 - sqlalchemy.engine.Engine - INFO - [cached since 2401s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 31, 3, 432857))
2025-04-22 12:31:03,436 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:31:34,561 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:31:34,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:31:34,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:31:34,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:31:34,570 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:31:34,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:31:49,589 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:31:49,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:31:49,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:31:49,592 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:31:49,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:31:49,592 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:31:49,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:31:49,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:31:49,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:31:49,593 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:31:49,593 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:31:49,593 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:31:49,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:31:49,595 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:31:49,595 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:31:49,595 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:31:49,595 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:31:49,596 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:31:49,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:31:49,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:31:49,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:31:49,597 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:31:49,597 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:31:49,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:32:03,447 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:32:03,447 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:32:03,447 - sqlalchemy.engine.Engine - INFO - [cached since 2461s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 32, 3, 446980))
2025-04-22 12:32:03,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:32:34,599 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:32:34,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:32:34,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:32:34,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:32:34,606 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:32:34,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:32:49,633 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:32:49,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:32:49,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:32:49,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:32:49,634 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:32:49,635 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:32:49,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:32:49,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:32:49,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:32:49,636 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:32:49,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:32:49,637 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:32:49,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:32:49,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:32:49,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:32:49,638 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:32:49,638 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:32:49,638 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:32:49,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:32:49,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:32:49,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:32:49,640 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:32:49,640 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:32:49,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:33:03,449 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:33:03,451 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:33:03,451 - sqlalchemy.engine.Engine - INFO - [cached since 2521s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 33, 3, 449633))
2025-04-22 12:33:03,452 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:33:34,683 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:33:34,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:33:34,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:33:34,685 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:33:34,685 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:33:34,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:33:49,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:33:49,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:33:49,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:33:49,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:33:49,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:33:49,713 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:33:49,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:33:49,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:33:49,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:33:49,715 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:33:49,715 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:33:49,715 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:33:49,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:33:49,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:33:49,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:33:49,715 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:33:49,715 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:33:49,715 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:33:49,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:33:49,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:33:49,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:33:49,717 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:33:49,717 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:33:49,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:34:03,447 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:34:03,451 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:34:03,452 - sqlalchemy.engine.Engine - INFO - [cached since 2581s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 34, 3, 446556))
2025-04-22 12:34:03,457 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:34:34,726 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:34:34,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:34:34,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:34:34,728 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:34:34,728 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:34:34,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:34:49,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:34:49,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:34:49,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:34:49,737 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:34:49,737 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:34:49,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:34:49,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:34:49,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:34:49,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:34:49,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:34:49,738 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:34:49,738 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:34:49,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:34:49,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:34:49,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:34:49,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:34:49,740 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:34:49,740 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:34:49,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:34:49,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:34:49,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:34:49,741 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:34:49,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:34:49,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:35:03,460 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:35:03,461 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:35:03,461 - sqlalchemy.engine.Engine - INFO - [cached since 2641s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 35, 3, 459351))
2025-04-22 12:35:03,462 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:35:34,788 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:35:34,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:35:34,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:35:34,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:35:34,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:35:34,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:35:49,800 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:35:49,801 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:35:49,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:35:49,803 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:35:49,805 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:35:49,807 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:35:49,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:35:49,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:35:49,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:35:49,813 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:35:49,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:35:49,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:35:49,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:35:49,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:35:49,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:35:49,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:35:49,815 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:35:49,815 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:35:49,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:35:49,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:35:49,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:35:49,817 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:35:49,817 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:35:49,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:36:03,469 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:36:03,471 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:36:03,476 - sqlalchemy.engine.Engine - INFO - [cached since 2701s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 36, 3, 468474))
2025-04-22 12:36:03,480 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:36:34,833 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:36:34,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:36:34,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:36:34,837 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:36:34,839 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:36:34,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:36:49,858 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:36:49,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:36:49,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:36:49,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:36:49,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:36:49,860 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:36:49,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:36:49,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:36:49,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:36:49,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:36:49,862 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:36:49,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:36:49,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:36:49,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:36:49,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:36:49,864 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:36:49,865 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:36:49,865 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:36:49,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:36:49,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:36:49,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:36:49,867 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:36:49,867 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:36:49,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:37:03,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:37:03,487 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:37:03,488 - sqlalchemy.engine.Engine - INFO - [cached since 2761s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 37, 3, 484825))
2025-04-22 12:37:03,491 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:37:34,917 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:37:34,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:37:34,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:37:34,923 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:37:34,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:37:34,935 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:37:49,936 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:37:49,937 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:37:49,937 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:37:49,938 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:37:49,941 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:37:49,942 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:37:49,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:37:49,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:37:49,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:37:49,949 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:37:49,951 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:37:49,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:37:49,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:37:49,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:37:49,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:37:49,959 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:37:49,962 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:37:49,963 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:37:49,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:37:49,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:37:49,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:37:49,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:37:49,964 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:37:49,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:38:03,502 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:38:03,503 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:38:03,504 - sqlalchemy.engine.Engine - INFO - [cached since 2821s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 38, 3, 501823))
2025-04-22 12:38:03,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:38:35,012 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:38:35,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:38:35,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:38:35,015 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:38:35,015 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:38:35,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:38:50,027 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:38:50,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:38:50,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:38:50,030 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:38:50,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:38:50,031 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:38:50,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:38:50,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:38:50,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:38:50,032 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:38:50,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:38:50,033 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:38:50,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:38:50,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:38:50,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:38:50,033 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:38:50,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:38:50,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:38:50,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:38:50,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:38:50,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:38:50,034 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:38:50,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:38:50,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:39:03,502 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:39:03,503 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:39:03,504 - sqlalchemy.engine.Engine - INFO - [cached since 2881s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 39, 3, 501762))
2025-04-22 12:39:03,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:39:35,061 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:39:35,062 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:39:35,062 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:39:35,062 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:39:35,062 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:39:35,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:39:50,082 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:39:50,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:39:50,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:39:50,089 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:39:50,091 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:39:50,093 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:39:50,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:39:50,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:39:50,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:39:50,096 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:39:50,096 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:39:50,097 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:39:50,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:39:50,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:39:50,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:39:50,099 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:39:50,101 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:39:50,101 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:39:50,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:39:50,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:39:50,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:39:50,111 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:39:50,113 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:39:50,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:40:03,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:40:03,535 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:40:03,535 - sqlalchemy.engine.Engine - INFO - [cached since 2941s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 40, 3, 532127))
2025-04-22 12:40:03,537 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:40:35,139 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:40:35,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:40:35,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:40:35,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:40:35,142 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:40:35,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:40:50,156 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:40:50,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:40:50,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:40:50,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:40:50,157 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:40:50,157 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:40:50,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:40:50,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:40:50,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:40:50,158 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:40:50,158 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:40:50,158 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:40:50,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:40:50,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:40:50,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:40:50,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:40:50,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:40:50,159 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:40:50,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:40:50,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:40:50,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:40:50,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:40:50,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:40:50,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:41:03,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:41:03,539 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:41:03,539 - sqlalchemy.engine.Engine - INFO - [cached since 3001s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 41, 3, 538151))
2025-04-22 12:41:03,540 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:41:35,188 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:41:35,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:41:35,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:41:35,191 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:41:35,191 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:41:35,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:41:50,198 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:41:50,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:41:50,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:41:50,200 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:41:50,201 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:41:50,201 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:41:50,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:41:50,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:41:50,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:41:50,201 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:41:50,202 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:41:50,202 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:41:50,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:41:50,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:41:50,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:41:50,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:41:50,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:41:50,203 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:41:50,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:41:50,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:41:50,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:41:50,205 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:41:50,205 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:41:50,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:42:03,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:42:03,542 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:42:03,544 - sqlalchemy.engine.Engine - INFO - [cached since 3061s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 42, 3, 540514))
2025-04-22 12:42:03,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:42:35,241 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:42:35,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:42:35,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:42:35,242 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:42:35,244 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:42:35,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:42:50,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:42:50,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:42:50,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:42:50,248 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:42:50,248 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:42:50,249 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:42:50,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:42:50,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:42:50,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:42:50,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:42:50,250 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:42:50,251 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:42:50,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:42:50,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:42:50,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:42:50,251 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:42:50,252 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:42:50,252 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:42:50,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:42:50,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:42:50,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:42:50,252 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:42:50,253 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:42:50,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:43:03,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:43:03,553 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:43:03,554 - sqlalchemy.engine.Engine - INFO - [cached since 3121s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 43, 3, 550867))
2025-04-22 12:43:03,555 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:43:35,274 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:43:35,275 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:43:35,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:43:35,276 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:43:35,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:43:35,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:43:50,296 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:43:50,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:43:50,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:43:50,298 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:43:50,299 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:43:50,299 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:43:50,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:43:50,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:43:50,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:43:50,301 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:43:50,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:43:50,302 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:43:50,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:43:50,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:43:50,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:43:50,302 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:43:50,303 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:43:50,303 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:43:50,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:43:50,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:43:50,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:43:50,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:43:50,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:43:50,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:44:03,554 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:44:03,557 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:44:03,561 - sqlalchemy.engine.Engine - INFO - [cached since 3181s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 44, 3, 553357))
2025-04-22 12:44:03,563 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:44:35,303 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:44:35,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:44:35,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:44:35,306 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:44:35,306 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:44:35,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:44:50,306 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:44:50,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:44:50,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:44:50,309 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:44:50,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:44:50,321 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:44:50,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:44:50,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:44:50,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:44:50,322 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:44:50,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:44:50,322 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:44:50,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:44:50,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:44:50,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:44:50,323 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:44:50,323 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:44:50,323 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:44:50,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:44:50,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:44:50,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:44:50,324 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:44:50,324 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:44:50,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:45:03,591 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:45:03,592 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:45:03,593 - sqlalchemy.engine.Engine - INFO - [cached since 3241s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 45, 3, 590516))
2025-04-22 12:45:03,595 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:45:35,333 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:45:35,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:45:35,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:45:35,340 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:45:35,342 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:45:35,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:45:50,354 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:45:50,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:45:50,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:45:50,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:45:50,359 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:45:50,360 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:45:50,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:45:50,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:45:50,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:45:50,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:45:50,363 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:45:50,363 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:45:50,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:45:50,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:45:50,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:45:50,365 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:45:50,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:45:50,365 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:45:50,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:45:50,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:45:50,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:45:50,365 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:45:50,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:45:50,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:46:03,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:46:03,609 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:46:03,610 - sqlalchemy.engine.Engine - INFO - [cached since 3301s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 46, 3, 608305))
2025-04-22 12:46:03,611 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:46:35,393 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:46:35,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:46:35,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:46:35,394 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:46:35,398 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:46:35,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:46:50,402 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:46:50,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:46:50,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:46:50,403 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:46:50,403 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:46:50,403 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:46:50,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:46:50,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:46:50,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:46:50,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:46:50,405 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:46:50,405 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:46:50,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:46:50,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:46:50,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:46:50,405 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:46:50,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:46:50,406 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:46:50,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:46:50,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:46:50,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:46:50,406 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:46:50,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:46:50,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:47:03,637 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:47:03,638 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:47:03,639 - sqlalchemy.engine.Engine - INFO - [cached since 3361s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 47, 3, 635774))
2025-04-22 12:47:03,641 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:47:35,434 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:47:35,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:47:35,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:47:35,435 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:47:35,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:47:35,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:47:50,467 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:47:50,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:47:50,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:47:50,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:47:50,472 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:47:50,472 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:47:50,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:47:50,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:47:50,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:47:50,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:47:50,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:47:50,484 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:47:50,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:47:50,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:47:50,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:47:50,492 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:47:50,494 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:47:50,494 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:47:50,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:47:50,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:47:50,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:47:50,495 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:47:50,495 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:47:50,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:48:03,640 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:48:03,644 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:48:03,648 - sqlalchemy.engine.Engine - INFO - [cached since 3421s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 48, 3, 639858))
2025-04-22 12:48:03,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:48:35,510 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:48:35,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:48:35,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:48:35,512 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:48:35,513 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:48:35,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:48:50,529 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:48:50,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:48:50,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:48:50,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:48:50,533 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:48:50,543 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:48:50,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:48:50,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:48:50,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:48:50,544 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:48:50,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:48:50,544 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:48:50,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:48:50,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:48:50,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:48:50,545 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:48:50,545 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:48:50,545 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:48:50,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:48:50,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:48:50,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:48:50,546 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:48:50,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:48:50,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:49:03,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:49:03,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:49:03,650 - sqlalchemy.engine.Engine - INFO - [cached since 3481s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 49, 3, 648113))
2025-04-22 12:49:03,651 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:49:35,545 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:49:35,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:49:35,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:49:35,548 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:49:35,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:49:35,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:49:50,566 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:49:50,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:49:50,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:49:50,567 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:49:50,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:49:50,567 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:49:50,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:49:50,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:49:50,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:49:50,569 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:49:50,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:49:50,569 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:49:50,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:49:50,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:49:50,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:49:50,570 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:49:50,570 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:49:50,570 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:49:50,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:49:50,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:49:50,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:49:50,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:49:50,571 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:49:50,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:50:03,639 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:50:03,640 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:50:03,641 - sqlalchemy.engine.Engine - INFO - [cached since 3541s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 50, 3, 636167))
2025-04-22 12:50:03,642 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:50:35,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:50:35,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:50:35,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:50:35,606 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:50:35,606 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:50:35,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:50:50,639 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:50:50,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:50:50,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:50:50,640 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:50:50,640 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:50:50,640 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:50:50,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:50:50,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:50:50,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:50:50,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:50:50,641 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:50:50,641 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:50:50,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:50:50,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:50:50,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:50:50,643 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:50:50,643 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:50:50,643 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:50:50,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:50:50,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:50:50,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:50:50,644 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:50:50,644 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:50:50,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:51:03,650 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 12:51:03,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:51:03,652 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:51:03,652 - sqlalchemy.engine.Engine - INFO - [cached since 3601s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 51, 3, 645265))
2025-04-22 12:51:03,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:51:35,649 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:51:35,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:51:35,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:51:35,651 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:51:35,651 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:51:35,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:51:50,646 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:51:50,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:51:50,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:51:50,650 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:51:50,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:51:50,654 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:51:50,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:51:50,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:51:50,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:51:50,662 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:51:50,663 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:51:50,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-22 12:51:50,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-22 12:51:50,669 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-22 12:51:50,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-22 12:51:50,672 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-22 12:51:50,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-22 12:51:50,675 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-22 12:51:50,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-22 12:51:50,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-22 12:51:50,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-22 12:51:50,680 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-22 12:51:50,681 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-22 12:51:50,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-22 12:52:03,657 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-22 12:52:03,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-22 12:52:03,660 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.created_on, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-22 12:52:03,661 - sqlalchemy.engine.Engine - INFO - [cached since 3661s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 22, 11, 52, 3, 653076))
2025-04-22 12:52:03,662 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-22 12:52:35,713 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-22 12:52:35,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-22 12:52:35,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-22 12:52:35,719 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-22 12:52:35,721 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-22 12:52:35,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-22 12:52:50,721 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-22 12:52:50,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-22 12:52:50,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-22 12:52:50,723 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-22 12:52:50,723 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-22 12:52:50,723 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-22 12:52:50,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-22 12:52:50,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-22 12:52:50,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-22 12:52:50,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-22 12:52:50,726 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-22 12:52:50,727 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
